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