[521] | 1 | %define name medit |
---|
[949] | 2 | %define version 0.10.4 |
---|
[521] | 3 | |
---|
| 4 | Name: %{name} |
---|
| 5 | Version: %{version} |
---|
[1269] | 6 | Release: 2%{?_dist_release} |
---|
[521] | 7 | Summary: Multiplatform GTK+2 text editor |
---|
| 8 | Summary(ja): マルチプラットフォームな GTK+2 テキストエディタ |
---|
| 9 | Group: Applications/Editors |
---|
| 10 | License: GPLv2+ |
---|
| 11 | URL: http://mooedit.sourceforge.net/ |
---|
| 12 | Source0: http://prdownloads.sourceforge.net/mooedit/%{name}-%{version}.tar.bz2 |
---|
[949] | 13 | Source1: medit_ja.po |
---|
| 14 | |
---|
[521] | 15 | #Patch1: medit-0.9.2-do-not-update-system-files.patch |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | |
---|
[1269] | 18 | Buildrequires: cairo-devel |
---|
| 19 | BuildRequires: cmake >= 2.6 |
---|
[521] | 20 | BuildRequires: desktop-file-utils |
---|
[1269] | 21 | BuildRequires: gettext |
---|
[521] | 22 | BuildRequires: gtk2-devel glib2-devel |
---|
| 23 | BuildRequires: intltool |
---|
| 24 | BuildRequires: libxml2-devel |
---|
[1269] | 25 | BuildRequires: libX11-devel libXext-devel libICE-devel |
---|
| 26 | Buildrequires: perl-XML-Parser pango-devel |
---|
[521] | 27 | BuildRequires: pcre-devel |
---|
| 28 | BuildRequires: python-devel |
---|
| 29 | BuildRequires: pygtk2-devel |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | Medit is a multiplatform GTK+2 text editor. |
---|
| 33 | |
---|
| 34 | Features: |
---|
| 35 | * Configurable syntax highlighting. |
---|
| 36 | * Configurable keyboard accelerators. |
---|
| 37 | * Multiplatform - works both on unix and windows. |
---|
| 38 | * Plugins: can be written in C or Python. |
---|
| 39 | * Configurable tools available from the main and context menus. |
---|
| 40 | They can be written in Python or Lua, or it can be a shell script. |
---|
| 41 | * Regular expression search/replace, grep and find frontends, builtin file selector, etc. |
---|
| 42 | |
---|
| 43 | %description -l ja |
---|
| 44 | Medit はマルチプラットフォームな GTK+2 テキストエディタです。 |
---|
| 45 | |
---|
| 46 | 機能一覧: |
---|
| 47 | * 設定可能な構文強調機能。 |
---|
| 48 | * 設定可能なキーボードアクセラレータ。 |
---|
| 49 | * マルチプラットフォーム - unix と windows の両者で動作。 |
---|
| 50 | * プラグイン: C あるいは Python で作成可能。 |
---|
| 51 | * メインメニューおよびコンテキストメニューから設定可能なツールを利用可能。 |
---|
| 52 | Python あるいは lua 、シェルスクリプトで作成可能。 |
---|
| 53 | * 正規表現による検索/置換、grep と find のフロントエンド、組み込みファイルセレクタなどなど。 |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %prep |
---|
| 57 | %setup -q |
---|
| 58 | #%patch1 -p1 |
---|
[949] | 59 | sed -i 's|fr|fr\nja|g' po/LINGUAS |
---|
[521] | 60 | |
---|
[949] | 61 | %__cp -f %{SOURCE1} po/ja.po |
---|
| 62 | |
---|
[521] | 63 | %build |
---|
| 64 | cmake -D CMAKE_INSTALL_PREFIX=/usr . |
---|
| 65 | make %{?_smp_mflags} |
---|
| 66 | |
---|
| 67 | %install |
---|
| 68 | rm -rf %buildroot |
---|
| 69 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 70 | |
---|
| 71 | desktop-file-install --vendor="" \ |
---|
| 72 | --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ |
---|
| 73 | --mode 0644 \ |
---|
| 74 | $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop |
---|
| 75 | |
---|
| 76 | %post |
---|
| 77 | update-desktop-database %{_datadir}/applications |
---|
| 78 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 79 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 80 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||: |
---|
| 81 | fi |
---|
| 82 | |
---|
| 83 | %postun |
---|
| 84 | update-desktop-database %{_datadir}/applications |
---|
| 85 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 86 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 87 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||: |
---|
| 88 | fi |
---|
| 89 | |
---|
| 90 | %clean |
---|
| 91 | rm -rf %buildroot |
---|
| 92 | |
---|
| 93 | %files |
---|
| 94 | %defattr(-,root,root) |
---|
| 95 | %doc COPYING README |
---|
| 96 | %{_bindir}/* |
---|
| 97 | %{_datadir}/applications/%{name}.desktop |
---|
| 98 | %{_datadir}/moo |
---|
| 99 | %{_datadir}/pixmaps/* |
---|
| 100 | %{_datadir}/icons/hicolor/* |
---|
| 101 | %{_datadir}/locale/* |
---|
| 102 | %{_docdir}/%{name}/* |
---|
[949] | 103 | %{_mandir}/man?/ |
---|
[521] | 104 | |
---|
| 105 | %changelog |
---|
[1269] | 106 | * Sat Jul 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.10.4-2 |
---|
| 107 | - updated Source1 |
---|
| 108 | - added BuildRequires: cairo-devel, gettext, libX11-devel, perl-XML-Parser, pango-devel |
---|
| 109 | - changed BuildRequires: cmake >= 2.6 |
---|
| 110 | |
---|
[949] | 111 | * Wed May 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.10.4-1 |
---|
| 112 | - new upstream release |
---|
| 113 | - added Japanese language file |
---|
| 114 | - added man directory in %files |
---|
| 115 | |
---|
[634] | 116 | * Sun Mar 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.10.1-1 |
---|
| 117 | - new upstream release |
---|
| 118 | - applied new naming policy to spec |
---|
| 119 | |
---|
| 120 | * Fri Mar 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.10.0-1 |
---|
[521] | 121 | - initial build for VineSeed |
---|
| 122 | |
---|
| 123 | * Mon Jan 21 2008 Funda Wang <fundawang@mandriva.org> 0.9.2-1mdv2008.1 |
---|
| 124 | + Revision: 155675 |
---|
| 125 | - New version 0.9.2 |
---|
| 126 | - rediff patch0 |
---|
| 127 | |
---|
| 128 | + Olivier Blin <oblin@mandriva.com> |
---|
| 129 | - restore BuildRoot |
---|
| 130 | |
---|
| 131 | + Thierry Vignaud <tvignaud@mandriva.com> |
---|
| 132 | - kill re-definition of %%buildroot on Pixel's request |
---|
| 133 | |
---|
| 134 | * Sat Dec 01 2007 Funda Wang <fundawang@mandriva.org> 0.9.0-1mdv2008.1 |
---|
| 135 | + Revision: 114221 |
---|
| 136 | - New version 0.9.0 |
---|
| 137 | |
---|
| 138 | * Sat Nov 17 2007 Jérôme Soyer <saispo@mandriva.org> 0.8.11-1mdv2008.1 |
---|
| 139 | + Revision: 109208 |
---|
| 140 | - New release 0.8.11 |
---|
| 141 | |
---|
| 142 | * Tue Aug 07 2007 Funda Wang <fundawang@mandriva.org> 0.8.10-1mdv2008.0 |
---|
| 143 | + Revision: 59667 |
---|
| 144 | - New version 0.8.10 |
---|
| 145 | |
---|
| 146 | * Wed Aug 01 2007 Funda Wang <fundawang@mandriva.org> 0.8.9-1mdv2008.0 |
---|
| 147 | + Revision: 57568 |
---|
| 148 | - New version 0.8.9 |
---|
| 149 | |
---|
| 150 | * Thu Jul 12 2007 Funda Wang <fundawang@mandriva.org> 0.8.8-1mdv2008.0 |
---|
| 151 | + Revision: 51500 |
---|
| 152 | - Fix file list |
---|
| 153 | - New version |
---|
| 154 | |
---|
| 155 | * Thu Jun 14 2007 Funda Wang <fundawang@mandriva.org> 0.8.6-1mdv2008.0 |
---|
| 156 | + Revision: 39539 |
---|
| 157 | - SILent renew tarball |
---|
| 158 | - New version |
---|
| 159 | - New version |
---|
| 160 | add dirty patch that skips update-icon-cache and mime database when building |
---|
| 161 | |
---|
| 162 | + Jérôme Soyer <saispo@mandriva.org> |
---|
| 163 | - Import medit |
---|
| 164 | |
---|
| 165 | |
---|
| 166 | |
---|
| 167 | |
---|
| 168 | * Tue May 09 2006 UTUMI Hirosi <utuhiro78@dummy.org> 0.6.98-1mdk |
---|
| 169 | - new release |
---|
| 170 | |
---|
| 171 | * Mon May 08 2006 UTUMI Hirosi <utuhiro78@dummy.org> 0.6.97-1mdk |
---|
| 172 | - first spec for Mandriva |
---|