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