1 | Name: gtranslator |
---|
2 | Version: 2.91.6 |
---|
3 | Release: 3%{?_dist_release} |
---|
4 | Summary: Gettext po file editor for GNOME |
---|
5 | Summary(ja): GNOME 用の po ファイルエディタ |
---|
6 | |
---|
7 | License: GPLv2+ and GPLv3+ |
---|
8 | Group: Applications/Development |
---|
9 | URL: http://www.gtranslator.org/ |
---|
10 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtranslator/2.91/%{name}-%{version}.tar.xz |
---|
11 | Source1: gtranslator.master.ja.po |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | |
---|
15 | BuildRequires: glib2-devel >= 2.25.10 |
---|
16 | BuildRequires: gtk3-devel >= 3.0.3 |
---|
17 | BuildRequires: gtksourceview3-devel >= 3.0.0 |
---|
18 | BuildRequires: gdl-devel >= 2.91.1 |
---|
19 | BuildRequires: libxml2-devel >= 2.4.12 |
---|
20 | BuildRequires: libgda-devel >= 5.0.0 |
---|
21 | BuildRequires: libpeas-devel >= 1.0.0 |
---|
22 | BuildRequires: gobject-introspection-devel |
---|
23 | BuildRequires: gsettings-desktop-schemas-devel |
---|
24 | BuildRequires: iso-codes |
---|
25 | BuildRequires: itstool |
---|
26 | BuildRequires: intltool desktop-file-utils |
---|
27 | |
---|
28 | # for documentation |
---|
29 | BuildRequires: gtk-doc |
---|
30 | BuildRequires: gnome-doc-utils >= 0.20.2 |
---|
31 | |
---|
32 | # for open-tran plugin |
---|
33 | BuildRequires: json-glib-devel >= 0.12.0 |
---|
34 | |
---|
35 | # for dictionary plugin |
---|
36 | #BuildRequires: gnome-utils-devel |
---|
37 | BuildRequires: gnome-dictionary-devel |
---|
38 | |
---|
39 | # for spell support |
---|
40 | #Requires: gtkspell >= 2.0.16 |
---|
41 | #BuildRequires: gtkspell-devel >= 2.0.16 |
---|
42 | |
---|
43 | Requires: gda-sqlite |
---|
44 | Requires: gsettings-desktop-schemas |
---|
45 | Requires: hicolor-icon-theme |
---|
46 | |
---|
47 | |
---|
48 | Vendor: Project Vine |
---|
49 | Distribution: Vine Linux |
---|
50 | Packager: inagaki, yasumichi |
---|
51 | |
---|
52 | |
---|
53 | %description |
---|
54 | gtranslator is an enhanced gettext po file editor for the GNOME |
---|
55 | desktop environment. It handles all forms of gettext po files and |
---|
56 | features many comfortable everyday usage features like find and |
---|
57 | replace functions, auto translation, and translation learning, |
---|
58 | |
---|
59 | |
---|
60 | %package devel |
---|
61 | Summary: Development files for %{name} |
---|
62 | Summary(ja): %{name} の開発用ファイル |
---|
63 | Group: Development/Libraries |
---|
64 | Requires: %{name} = %{version}-%{release} |
---|
65 | Requires: gettext-devel |
---|
66 | Requires: gtksourceview3-devel |
---|
67 | |
---|
68 | %description devel |
---|
69 | This package contains the headers that programmers will need to develop |
---|
70 | applications which will use %{name}. |
---|
71 | |
---|
72 | %prep |
---|
73 | %setup -q |
---|
74 | cp %{SOURCE1} po/ja.po |
---|
75 | |
---|
76 | |
---|
77 | %build |
---|
78 | %configure \ |
---|
79 | --disable-static \ |
---|
80 | --disable-scrollkeeper \ |
---|
81 | --enable-debug=no \ |
---|
82 | --enable-introspection=yes \ |
---|
83 | --with-gda=5.0 |
---|
84 | |
---|
85 | make %{?_smp_mflags} CFLAGS="%{optflags}" |
---|
86 | |
---|
87 | %install |
---|
88 | rm -rf $RPM_BUILD_ROOT |
---|
89 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
90 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
91 | |
---|
92 | desktop-file-install --delete-original \ |
---|
93 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
94 | $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop |
---|
95 | |
---|
96 | %find_lang %{name} --with-gnome |
---|
97 | # Convert to utf-8 |
---|
98 | for file in doc/UMTF/*.UMTF; do |
---|
99 | iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \ |
---|
100 | touch -r $file $file.new && \ |
---|
101 | mv $file.new $file |
---|
102 | done |
---|
103 | rm -rf UMTF |
---|
104 | mkdir -p UMTF |
---|
105 | cp -p doc/UMTF/{README.UMTF,ChangeLog,example.xml} UMTF |
---|
106 | |
---|
107 | %clean |
---|
108 | rm -rf $RPM_BUILD_ROOT |
---|
109 | |
---|
110 | |
---|
111 | %post |
---|
112 | update-desktop-database &>/dev/null || : |
---|
113 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
114 | /sbin/ldconfig |
---|
115 | |
---|
116 | %posttrans |
---|
117 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
118 | glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : |
---|
119 | |
---|
120 | %postun |
---|
121 | update-desktop-database &>/dev/null || : |
---|
122 | if [ $1 -eq 0 ] ; then |
---|
123 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
124 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
125 | glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : |
---|
126 | fi |
---|
127 | /sbin/ldconfig |
---|
128 | |
---|
129 | |
---|
130 | %files -f %{name}.lang |
---|
131 | %defattr(-, root, root, 0755) |
---|
132 | %doc AUTHORS ChangeLog COPYING NEWS README THANKS |
---|
133 | %doc UMTF |
---|
134 | %{_bindir}/gtranslator |
---|
135 | %{_libdir}/gtranslator |
---|
136 | %{_datadir}/applications/*.desktop |
---|
137 | %{_datadir}/glib-2.0/schemas/org.gnome.gtranslator.*gschema.xml |
---|
138 | %{_datadir}/gtranslator |
---|
139 | %{_datadir}/icons/hicolor/*/apps/gtranslator.* |
---|
140 | %{_mandir}/man?/* |
---|
141 | |
---|
142 | %files devel |
---|
143 | %defattr(-, root, root, -) |
---|
144 | %{_includedir}/gtranslator-3.0 |
---|
145 | %{_libdir}/pkgconfig/*.pc |
---|
146 | %{_datadir}/gtk-doc/html/gtranslator |
---|
147 | |
---|
148 | %changelog |
---|
149 | * Fri Feb 20 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.91.6-3 |
---|
150 | - rebuilt on current VineSeed |
---|
151 | - changed BR: gnome-dictionary-devel instead of gnome-utils-devel |
---|
152 | - added BR: desktop-file-utils |
---|
153 | |
---|
154 | * Wed May 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.6-2 |
---|
155 | - add Source1 (gtranslator.master.ja.po) |
---|
156 | |
---|
157 | * Mon May 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.6-1 |
---|
158 | - new upstream release |
---|
159 | - remove Patch0 (gtranslator-2.91.5-gdl.patch) |
---|
160 | - add BuildRequires: yelp-tools |
---|
161 | |
---|
162 | * Thu Nov 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.5-3 |
---|
163 | - add Patch0 (gtranslator-2.91.5-gdl.patch) |
---|
164 | |
---|
165 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.5-2 |
---|
166 | - rebuild with gdl-3.6.0 |
---|
167 | |
---|
168 | * Sun Aug 05 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.5-1 |
---|
169 | - new upstream release |
---|
170 | |
---|
171 | * Sun May 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.4-1 |
---|
172 | - new upstream release |
---|
173 | |
---|
174 | * Mon Apr 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.3-1 |
---|
175 | - new upstream release |
---|
176 | |
---|
177 | * Sat Apr 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.2-1 |
---|
178 | - new upstream release |
---|
179 | |
---|
180 | * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.90.7-1 |
---|
181 | - new upstream release |
---|
182 | - change BuildRequires: gtk3-devel instead of gtk2-devel |
---|
183 | - change BuildRequires: gtksourceview3-devel instead of gtksourceview2-devel |
---|
184 | - add BuildRequires: libpeas-devel, iso-codes, json-glib-devel |
---|
185 | |
---|
186 | * Wed Oct 20 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.9.12-2 |
---|
187 | - add (Build)Requires gsettings-desktop-schemas. |
---|
188 | - add Requires gda-sqlite instead of libgda. |
---|
189 | |
---|
190 | * Wed Oct 13 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.9.12-1 |
---|
191 | - new upstream release |
---|
192 | - rebuild dependency |
---|
193 | - replace GConf2 by glib-compile-schemas |
---|
194 | - care desktop-files |
---|
195 | |
---|
196 | * Thu Mar 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.9.9-1 |
---|
197 | - new upstream release |
---|
198 | - add BuildRequires: unique-devel |
---|
199 | - drop Patch0 |
---|
200 | |
---|
201 | * Thu Nov 19 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.9.6-2 |
---|
202 | - add libuuid to Requires. |
---|
203 | - add libuuid-devel and gnome-doc-utils to BR. |
---|
204 | - add Patch0 (https://bugzilla.gnome.org/show_bug.cgi?id=591587) |
---|
205 | - export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 when install. |
---|
206 | |
---|
207 | * Thu Nov 19 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.9.6-1 |
---|
208 | - new upstream release |
---|
209 | - add Requires glib2,gtksourceview2,gdl,gtkspell,gucharmap,apr,apr-util,neon,subversion |
---|
210 | |
---|
211 | * Sat May 16 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.5-1 |
---|
212 | - applied new versioning policy, spec in UTF-8 |
---|
213 | - new upstream release |
---|
214 | - updated BuildRequires: |
---|
215 | - split devel subpackage |
---|
216 | - changed Group to Applications/Development |
---|
217 | |
---|
218 | * Sat Oct 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.6-0vl1 |
---|
219 | - new upstream release |
---|
220 | - added BuildRequires: gtkspell-devel |
---|
221 | |
---|
222 | * Thu Jan 29 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.4-0vl1 |
---|
223 | - new upstream snapshot, tarball is taken from debian pool |
---|
224 | - add Patch10 from debian package |
---|
225 | |
---|
226 | * Tue Sep 09 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0-1vl1 |
---|
227 | - build for VineSeedPlus |
---|
228 | |
---|
229 | * Thu Sep 04 2003 Dag Wieers <dag@wieers.com> - 1.0-1 |
---|
230 | - Updated to release 1.0. |
---|
231 | |
---|
232 | * Tue Sep 02 2003 Dag Wieers <dag@wieers.com> - 1.0-0.pre1 |
---|
233 | - Updated to release 1.0pre1. |
---|
234 | |
---|
235 | * Fri Jun 27 2003 Dag Wieers <dag@wieers.com> - 1.0-0.cvs20030626 |
---|
236 | - Updated to release 1.0CVS-20030626. |
---|
237 | |
---|
238 | * Sat Jun 14 2003 Dag Wieers <dag@wieers.com> - 0.99-0 |
---|
239 | - Updated to release 0.99. |
---|
240 | |
---|
241 | * Tue Mar 18 2003 Dag Wieers <dag@wieers.com> - 0.43-0 |
---|
242 | - Initial package. (using DAR) |
---|