1 | %define libtoolize : |
---|
2 | |
---|
3 | %define src_ver 0.19.8.1 |
---|
4 | %define so_ver 0.19.8.1 |
---|
5 | |
---|
6 | Summary: GNU libraries and utilities for producing multi-lingual messages. |
---|
7 | Summary(ja): マルチリンガルメッセージを生成するためのGNU ライブラリ/ユーティリティ |
---|
8 | Name: gettext |
---|
9 | Version: %{src_ver} |
---|
10 | Release: 2%{?_dist_release} |
---|
11 | License: GPLv3 and LGPLv2+ |
---|
12 | Group: Development/Tools |
---|
13 | Source: ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.xz |
---|
14 | URL: http://www.gnu.org/software/gettext/ |
---|
15 | Source2: msghack.py |
---|
16 | Source3: msghack.1 |
---|
17 | |
---|
18 | # Patch5: gettext-0.17-open-args.patch |
---|
19 | # Patch6: gettext-0.17-autopoint-CVS-441481.patch |
---|
20 | # Patch7: gettext-0.17-rpathFix.patch |
---|
21 | # Patch8: gettext-xgettext-python-unicode-surrogate-473946.patch |
---|
22 | |
---|
23 | BuildRequires: libtool, bison, gcc-c++ |
---|
24 | BuildRequires: expat-devel |
---|
25 | BuildRequires: libacl-devel, libcroco-devel |
---|
26 | |
---|
27 | Requires(post): /sbin/install-info |
---|
28 | Requires(preun): /sbin/install-info |
---|
29 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
30 | |
---|
31 | Packager: daisuke |
---|
32 | Vendor: Project Vine |
---|
33 | Distribution: Vine Linux |
---|
34 | |
---|
35 | %description |
---|
36 | The GNU gettext package provides a set of tools and documentation for |
---|
37 | producing multi-lingual messages in programs. Tools include a set of |
---|
38 | conventions about how programs should be written to support message |
---|
39 | catalogs, a directory and file naming organization for the message |
---|
40 | catalogs, a runtime library which supports the retrieval of translated |
---|
41 | messages, and stand-alone programs for handling the translatable and |
---|
42 | the already translated strings. Gettext provides an easy to use |
---|
43 | library and tools for creating, using, and modifying natural language |
---|
44 | catalogs and is a powerful and simple method for internationalizing |
---|
45 | programs. |
---|
46 | |
---|
47 | %description -l ja |
---|
48 | GNU gettext パッケージはプログラム中でマルチリンガルメッセージを生成する |
---|
49 | ためのツールと文書を提供します. ツールはメッセージカタログをサポートするために |
---|
50 | プログラムがどのように書かれるべきかの申し合わせと, メッセージカタログのための |
---|
51 | ディレクトリとファイル名の組織化と, 翻訳されたメッセージの埋め合わせを |
---|
52 | サポートするためのランタイムライブラリと, 翻訳可能でかつすでに翻訳された文字列 |
---|
53 | を取り扱う独立したプログラムを含みます. gettext は簡単に使えるライブラリ |
---|
54 | と自然言語のカタログを生成, 使用, 修正するツールと, 国際化プログラム |
---|
55 | のための強力かつシンプルな方法を提供します. |
---|
56 | |
---|
57 | %package devel |
---|
58 | Summary: Development files for gettext |
---|
59 | Summary(ja): gettext 用開発ファイル |
---|
60 | Group: Development/Libraries |
---|
61 | License: LGPLv2+ |
---|
62 | Requires: %{name} = %{version}-%{release} |
---|
63 | Requires: %{name}-libs = %{version}-%{release} |
---|
64 | Requires(post): /sbin/install-info |
---|
65 | Requires(preun): /sbin/install-info |
---|
66 | |
---|
67 | |
---|
68 | %description devel |
---|
69 | This package contains all development related files necessary for |
---|
70 | developing or compiling applications/libraries that needs |
---|
71 | internationalization capability. You also need this package if you |
---|
72 | want to add gettext support for your project. |
---|
73 | |
---|
74 | %description devel -l ja |
---|
75 | このパッケージには、マルチリンガル機能を持つアプリケーションや |
---|
76 | ライブラリを開発・コンパイルするのに必要な開発関連ファイルが収録 |
---|
77 | されています。 |
---|
78 | |
---|
79 | |
---|
80 | %package libs |
---|
81 | Summary: Libraries for gettext |
---|
82 | Summary(ja): gettext 用共有ライブラリ |
---|
83 | Group: System Environment/Libraries |
---|
84 | License: LGPLv2+ |
---|
85 | |
---|
86 | |
---|
87 | %description libs |
---|
88 | This package contains libraries used internationalization support. |
---|
89 | |
---|
90 | %description libs -l ja |
---|
91 | このパッケージには国際化サポートに必要な共有ライブラリが収録されています。 |
---|
92 | |
---|
93 | |
---|
94 | %prep |
---|
95 | %setup -q |
---|
96 | # %patch5 -p0 -b .5-open-args~ |
---|
97 | # %patch6 -p0 -b .6-autopoint~ |
---|
98 | # %patch7 -p0 -b .rpathFix~ |
---|
99 | # %patch8 -p0 -b .unicode~ |
---|
100 | |
---|
101 | |
---|
102 | %build |
---|
103 | ## running autoreconf for automake-1.11.1 |
---|
104 | autoreconf -fi |
---|
105 | [ -f /usr/share/automake/depcomp ] && cp -f /usr/share/automake/{depcomp,ylwrap} . || : |
---|
106 | %configure --without-included-gettext --enable-nls \ |
---|
107 | --enable-shared --disable-static --with-pic=yes \ |
---|
108 | --disable-csharp --disable-java |
---|
109 | make %{?_smp_mflags} |
---|
110 | |
---|
111 | |
---|
112 | %install |
---|
113 | rm -rf $RPM_BUILD_ROOT |
---|
114 | |
---|
115 | # Fix busted no-emacs install for $lispdir/po-mode.el |
---|
116 | %makeinstall lispdir=%{buildroot}/usr/share/emacs/site-lisp \ |
---|
117 | aclocaldir=%{buildroot}/usr/share/aclocal |
---|
118 | |
---|
119 | # delete po-mode |
---|
120 | %{__rm} -rf %{buildroot}/usr/share/emacs/site-lisp |
---|
121 | |
---|
122 | mkdir -p %{buildroot}/bin |
---|
123 | mv %{buildroot}/%{_bindir}/gettext %{buildroot}/bin |
---|
124 | ln -s ../../bin/gettext %{buildroot}/%{_bindir}/gettext |
---|
125 | install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/%{_bindir}/msghack |
---|
126 | install -pm 644 %SOURCE3 ${RPM_BUILD_ROOT}/%{_mandir}/man1/msghack.1 |
---|
127 | |
---|
128 | pushd %{buildroot} |
---|
129 | rm -f .%{_infodir}/dir .%{_includedir}/libintl.h |
---|
130 | popd |
---|
131 | |
---|
132 | %find_lang %{name}-runtime |
---|
133 | %find_lang %{name}-tools |
---|
134 | cat %{name}-*.lang > %{name}.lang |
---|
135 | |
---|
136 | # remove unpackaged files from the buildroot |
---|
137 | rm -rf $RPM_BUILD_ROOT/usr/share/doc |
---|
138 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la} |
---|
139 | rm -f $RPM_BUILD_ROOT%{_datadir}/locale/locale.alias |
---|
140 | |
---|
141 | %__rm -rf %{buildroot}%{_docdir}/%{name} |
---|
142 | |
---|
143 | |
---|
144 | %clean |
---|
145 | rm -rf $RPM_BUILD_ROOT |
---|
146 | |
---|
147 | |
---|
148 | %post |
---|
149 | /sbin/ldconfig |
---|
150 | /sbin/install-info %{_infodir}/gettext.info.gz %{_infodir}/dir || : |
---|
151 | |
---|
152 | |
---|
153 | %preun |
---|
154 | if [ "$1" = 0 ]; then |
---|
155 | /sbin/install-info --delete %{_infodir}/gettext.info.gz %{_infodir}/dir || : |
---|
156 | fi |
---|
157 | exit 0 |
---|
158 | |
---|
159 | %postun -p /sbin/ldconfig |
---|
160 | |
---|
161 | |
---|
162 | %post devel |
---|
163 | /sbin/ldconfig |
---|
164 | /sbin/install-info %{_infodir}/autosprintf.info %{_infodir}/dir || : |
---|
165 | |
---|
166 | %preun devel |
---|
167 | if [ "$1" = 0 ]; then |
---|
168 | /sbin/install-info --delete %{_infodir}/autosprintf.info %{_infodir}/dir || : |
---|
169 | fi |
---|
170 | |
---|
171 | %postun devel -p /sbin/ldconfig |
---|
172 | |
---|
173 | |
---|
174 | %post libs -p /sbin/ldconfig |
---|
175 | %postun libs -p /sbin/ldconfig |
---|
176 | |
---|
177 | |
---|
178 | %files -f gettext.lang |
---|
179 | %defattr(-,root,root,-) |
---|
180 | %doc gettext-runtime/ABOUT-NLS AUTHORS gettext-runtime/BUGS |
---|
181 | %doc COPYING ChangeLog gettext-tools/misc/DISCLAIM README |
---|
182 | %doc NEWS THANKS |
---|
183 | %doc gettext-runtime/man/*.1.html |
---|
184 | %doc gettext-runtime/intl/COPYING* |
---|
185 | /bin/* |
---|
186 | %{_bindir}/* |
---|
187 | %{_libdir}/libgettextlib-%{so_ver}.so |
---|
188 | %{_libdir}/libgettextsrc-%{so_ver}.so |
---|
189 | %{_infodir}/gettext* |
---|
190 | %{_mandir}/man1/* |
---|
191 | %{_libdir}/gettext |
---|
192 | %{_datadir}/gettext/archive.dir.tar.xz |
---|
193 | %{_datadir}/gettext/styles |
---|
194 | |
---|
195 | %files devel |
---|
196 | %defattr(-,root,root,-) |
---|
197 | %doc gettext-runtime/man/*.3.html ChangeLog |
---|
198 | %{_datadir}/gettext/ABOUT-NLS |
---|
199 | %{_datadir}/gettext/projects/ |
---|
200 | %{_datadir}/gettext/config.rpath |
---|
201 | %{_datadir}/gettext/*.h |
---|
202 | %{_datadir}/gettext/intl |
---|
203 | %{_datadir}/gettext/po |
---|
204 | %{_datadir}/gettext/msgunfmt.tcl |
---|
205 | %{_datadir}/aclocal/* |
---|
206 | %{_includedir}/* |
---|
207 | %{_infodir}/autosprintf* |
---|
208 | %{_libdir}/libasprintf.so |
---|
209 | %{_libdir}/libgettextpo.so |
---|
210 | %{_libdir}/libgettextlib.so |
---|
211 | %{_libdir}/libgettextsrc.so |
---|
212 | %{_libdir}/preloadable_libintl.so |
---|
213 | %{_mandir}/man3/* |
---|
214 | %{_datadir}/%{name}/javaversion.class |
---|
215 | %doc gettext-runtime/intl-java/javadoc* |
---|
216 | |
---|
217 | |
---|
218 | %files libs |
---|
219 | %defattr(-,root,root,-) |
---|
220 | %{_libdir}/libasprintf.so.* |
---|
221 | %{_libdir}/libgettextpo.so.* |
---|
222 | |
---|
223 | |
---|
224 | %changelog |
---|
225 | * Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.19.8.1-2 |
---|
226 | - rebuild with gcc-5.4.0 |
---|
227 | |
---|
228 | * Wed Jun 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.19.8.1-1 |
---|
229 | - new upstream release |
---|
230 | |
---|
231 | * Thu May 19 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.19.7-1 |
---|
232 | - new upstream release |
---|
233 | |
---|
234 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.19.6-1 |
---|
235 | - new upstream release |
---|
236 | |
---|
237 | * Sun Nov 2 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.18.3.2-2 |
---|
238 | - moved devel package to Development/Libraries Group |
---|
239 | |
---|
240 | * Tue Jan 14 2014 NAKAMURA Kenta <kenta@vinelinux.org> - 0.18.3.2-1 |
---|
241 | - new upstream release |
---|
242 | |
---|
243 | * Sun Jul 14 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.18.3-1 |
---|
244 | - new upstream release |
---|
245 | |
---|
246 | * Thu Mar 07 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.18.2.1-1 |
---|
247 | - new upstream release |
---|
248 | |
---|
249 | * Tue Nov 9 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 0.18.1.1-1 |
---|
250 | - new upstream release |
---|
251 | - drop old patches |
---|
252 | - update msghack.py from fc14 |
---|
253 | - add BRs: libacl-devel, libcroco-devel |
---|
254 | - fix files list |
---|
255 | |
---|
256 | * Wed Feb 24 2010 IWAI, Masaharu <iwai@alib.jp> - 0.17-5 |
---|
257 | - split to po-mode package: [VineSeed:20076] |
---|
258 | - update Packager value: update format |
---|
259 | - running autoreconf for automake-1.11.1 in %%build |
---|
260 | |
---|
261 | * Tue Dec 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> - 0.17-4 |
---|
262 | - correct some output messages on po-mode-install.sh |
---|
263 | - use %%emacsen_pkgdir |
---|
264 | |
---|
265 | * Sun May 10 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.17-3 |
---|
266 | - we better not to use BuildConflicts very often :-P |
---|
267 | instead we pass --disable-java to configure here |
---|
268 | - add --enable-shared --disable-static --without-included-gettext to configure |
---|
269 | - remove .la files |
---|
270 | - add -devel and --libs subpackages |
---|
271 | |
---|
272 | * Wed May 6 2009 IWAI, Masaharu <iwai@alib.jp> 0.17-2 |
---|
273 | - apply vine-default |
---|
274 | - update po-mode-init.el (Source1) |
---|
275 | - update po-mode-install.sh (Source3) |
---|
276 | - update po-mode-remove.sh (Source4) |
---|
277 | - add vine-default-po-mode.el (Source5): based 0.17-1's po-mode-init.el |
---|
278 | - update %%doc: gettext-runtime/libasprintf/autosprintf_all.html |
---|
279 | |
---|
280 | * Sat Aug 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-1 |
---|
281 | - new upstream release |
---|
282 | |
---|
283 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.16.1-1vl5 |
---|
284 | - applied new versioning policy, spec in utf-8 |
---|
285 | |
---|
286 | * Wed Jan 31 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.16.1-0vl2 |
---|
287 | - changelog update missing |
---|
288 | |
---|
289 | * Tue Jan 30 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.16.1-0vl1 |
---|
290 | - new upstream release |
---|
291 | |
---|
292 | * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.14.5-0vl6 |
---|
293 | - changed po-mode Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
294 | |
---|
295 | * Mon Aug 21 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.14.5-0vl5 |
---|
296 | - add BuildConflicts: libgcj34-devel not to depend on libgcj34 |
---|
297 | |
---|
298 | * Fri Aug 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.14.5-0vl4 |
---|
299 | - add BuildConflicts: libgcj-devel not to depend on libgcj |
---|
300 | - add BuildRequires: emacsen (if emacsen_pkg is enabled) |
---|
301 | - remove unneeded files at the %%install |
---|
302 | |
---|
303 | * Mon Aug 07 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.14.5-0vl3 |
---|
304 | - rebuilt without libgcj package |
---|
305 | |
---|
306 | * Sat Aug 05 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.14.5-0vl2 |
---|
307 | - modified emacsen-common path |
---|
308 | |
---|
309 | * Wed Jun 15 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.14.5-0vl1 |
---|
310 | - new upstream release |
---|
311 | - updated Source3 |
---|
312 | - added --disable-csharp |
---|
313 | |
---|
314 | * Wed Apr 7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.14.1-0vl2 |
---|
315 | - remove dependency to libgcj |
---|
316 | |
---|
317 | * Wed Apr 7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.14.1-0vl1 |
---|
318 | - new upstream release |
---|
319 | |
---|
320 | * Mon Sep 22 2003 IWAI, Masaharu <iwai@alib.jp> 0.12.1-1vl2 |
---|
321 | - build without libgcj package |
---|
322 | - create po-mode package for Emacsen |
---|
323 | |
---|
324 | * Sun Sep 21 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12.1-1vl1 |
---|
325 | - based on Redhat Rawhide 0.12.1-1 |
---|
326 | - dropped all patches (Rawhide does so) |
---|
327 | - Source100(ja.po) is much older than source, dropped |
---|
328 | - s/Copyright/License/ |
---|
329 | |
---|
330 | * Sun Sep 29 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.11.5-0vl1 |
---|
331 | - new upstream release |
---|
332 | |
---|
333 | * Mon Jun 10 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> |
---|
334 | - sync with rawhide 0.11.2-2 and Mandrake 0.11.2-4mdk |
---|
335 | |
---|
336 | * Wed Jun 7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
337 | - sync with RH6.2 |
---|
338 | |
---|
339 | * Fri Apr 28 2000 Bill Nottingham <notting@redhat.com> |
---|
340 | - minor configure tweaks for ia64 |
---|
341 | |
---|
342 | * Sun Feb 27 2000 Cristian Gafton <gafton@redhat.com> |
---|
343 | - add --comments to msghack |
---|
344 | |
---|
345 | * Thu Feb 10 2000 Cristian Gafton <gafton@redhat.com> |
---|
346 | - fix bug #9240 - gettextize has the right aclocal patch |
---|
347 | |
---|
348 | * Wed Jan 12 2000 Cristian Gafton <gafton@redhat.com> |
---|
349 | - add the --diff and --dummy options |
---|
350 | |
---|
351 | * Wed Oct 06 1999 Cristian Gafton <gafton@redhat.com> |
---|
352 | - add the --missing option to msghack |
---|
353 | |
---|
354 | * Wed Sep 22 1999 Cristian Gafton <gafton@redhat.com> |
---|
355 | - updated msghack not to merge in fuzzies in the master catalogs |
---|
356 | |
---|
357 | * Sat Sep 18 1999 Norihito Ohmori <ohmori@flatout.org> |
---|
358 | - update ja.po |
---|
359 | |
---|
360 | * Tue Sep 14 1999 Jun Nishii <jun@flatout.org> |
---|
361 | - use message.c.diff-2 |
---|
362 | |
---|
363 | * Thu Aug 26 1999 Cristian Gafton <gafton@redhat.com> |
---|
364 | - updated msghack to understand --append |
---|
365 | |
---|
366 | * Wed Aug 11 1999 Cristian Gafton <gafton@redhat.com> |
---|
367 | - updated msghack to correctly deal with sorting files |
---|
368 | |
---|
369 | * Tue Jun 29 1999 Norihito Ohmori <ohmori@flatout.org> |
---|
370 | - added multibyte patch for msgmerge |
---|
371 | |
---|
372 | * Sun Jun 27 1999 Norihito Ohmori <ohmori@flatout.org> |
---|
373 | - ja locale support from JaPO Project |
---|
374 | |
---|
375 | * Thu May 06 1999 Cristian Gafton <gafton@redhat.com> |
---|
376 | - msghack updates |
---|
377 | |
---|
378 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
379 | - auto rebuild in the new build environment (release 8) |
---|
380 | |
---|
381 | * Mon Mar 08 1999 Cristian Gafton <gafton@redhat.com> |
---|
382 | - added patch for misc hacks to facilitate rpm translations |
---|
383 | |
---|
384 | * Thu Dec 03 1998 Cristian Gafton <gafton@redhat.com> |
---|
385 | - patch to allow to build on ARM |
---|
386 | |
---|
387 | * Wed Sep 30 1998 Jeff Johnson <jbj@redhat.com> |
---|
388 | - add Emacs po-mode.el files. |
---|
389 | |
---|
390 | * Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com> |
---|
391 | - include the aclocal support files |
---|
392 | |
---|
393 | * Fri Sep 4 1998 Bill Nottingham <notting@redhat.com> |
---|
394 | - remove devel package (functionality is in glibc) |
---|
395 | |
---|
396 | * Tue Sep 1 1998 Jeff Johnson <jbj@redhat.com> |
---|
397 | - update to 0.10.35. |
---|
398 | |
---|
399 | * Mon Jun 29 1998 Jeff Johnson <jbj@redhat.com> |
---|
400 | - add gettextize. |
---|
401 | - create devel package for libintl.a and libgettext.h. |
---|
402 | |
---|
403 | * Mon Apr 27 1998 Prospector System <bugs@redhat.com> |
---|
404 | - translations modified for de, fr, tr |
---|
405 | |
---|
406 | * Sun Nov 02 1997 Cristian Gafton <gafton@redhat.com> |
---|
407 | - added info handling |
---|
408 | - added misc-patch (skip emacs-lisp modofications) |
---|
409 | |
---|
410 | * Sat Nov 01 1997 Erik Troan <ewt@redhat.com> |
---|
411 | - removed locale.aliases as we get it from glibc now |
---|
412 | - uses a buildroot |
---|
413 | |
---|
414 | * Mon Jun 02 1997 Erik Troan <ewt@redhat.com> |
---|
415 | - Built against glibc |
---|