3 # /usr/share/emacs/site-lisp/po-compat.el
4 # /usr/share/emacs/site-lisp/po-compat.elc
5 # /usr/share/emacs/site-lisp/po-mode.el
6 # /usr/share/emacs/site-lisp/po-mode.elc
7 # /usr/share/emacs/site-lisp/start-po.el
8 # /usr/share/emacs/site-lisp/start-po.elc
11 %bcond_without asprintf # without libasprintf C++ library
12 %bcond_with xemacs # without po-mode for xemacs
13 %bcond_without gcj # with Java support by gcj (preferred over javac)
14 %bcond_with javac # with Java support by some javac
15 %bcond_without dotnet # without .NET support
16 %bcond_with bootstrap # use system GLib and libcroco
18 %ifnarch %{ix86} %{x8664} arm hppa ppc s390 s390x
22 # plain i386 is not supported; mono uses cmpxchg/xadd which require i486
26 %{?with_dotnet:%include /usr/lib/rpm/macros.mono}
28 %define build_java %{?with_gcj:1}%{!?with_gcj:%{?with_javac:1}%{!?with_javac:0}}
29 Summary: Utilties for program national language support
30 Summary(de.UTF-8): Utilities zum Programmieren von nationaler Sprachunterstützung
31 Summary(es.UTF-8): Utilitarios para el programa de soporte a lenguas locales
32 Summary(fr.UTF-8): Utilitaires pour le support de la langue nationnalepar les programmes
33 Summary(ja.UTF-8): マルチリンガルメッセージを生成するためのGNU ライブラリ/ユーティリティ
34 Summary(pl.UTF-8): Narzędzia dla programów ze wsparciem dla języków narodowych
35 Summary(pt_BR.UTF-8): Utilitários para o programa de suporte de línguas locais
36 Summary(ru.UTF-8): Библиотеки и утилиты для поддержки национальных языков
37 Summary(tr.UTF-8): Desteği için kitaplık ve araçlar
38 Summary(uk.UTF-8): Бібліотеки та утиліти для підтримки національних мов
42 License: LGPL v2+ (libintl), GPL v3+ (tools)
43 Group: Development/Tools
44 Source0: http://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
45 # Source0-md5: 58a2bc6d39c0ba57823034d55d65d606
46 Patch0: %{name}-info.patch
47 Patch1: %{name}-killkillkill.patch
48 Patch2: %{name}-pl.po-update.patch
49 Patch3: %{name}-no_docs.patch
50 Patch4: %{name}-libintl_by_gcj.patch
51 Patch5: %{name}-removed_macros.patch
52 Patch6: %{name}-creat_mode.patch
53 Patch7: %{name}-cvs.patch
54 URL: http://www.gnu.org/software/gettext/
55 BuildRequires: autoconf >= 2.60
56 BuildRequires: automake >= 1:1.10
57 %{?with_gcj:BuildRequires: gcj >= 3.0}
58 %{!?with_bootstrap:BuildRequires: glib2-devel >= 2.0}
60 BuildRequires: jdk >= 1.1
63 %{!?with_bootstrap:BuildRequires: libcroco-devel >= 0.6.1}
64 %if "%(echo %{cc_version} | grep -q '^4.[2-9]'; echo $?)" == "0"
65 BuildRequires: libgomp-devel
67 %{?with_asprintf:BuildRequires: libstdc++-devel}
68 BuildRequires: libtool >= 1:1.4.2-9
69 %{?with_dotnet:BuildRequires: mono-csharp}
70 BuildRequires: rpmbuild(macros) >= 1.453
71 BuildRequires: texinfo
72 %{?with_xemacs:BuildRequires: xemacs}
73 Obsoletes: gettext-base
74 Conflicts: intltool < 0.28
75 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
78 The GNU gettext package provides a set of tools and documentation for
79 producing multi-lingual messages in programs. Tools include a set of
80 conventions about how programs should be written to support message
81 catalogs, a directory and file naming organization for the message
82 catalogs, a runtime library which supports the retrieval of translated
83 messages, and stand-alone programs for handling the translatable and
84 the already translated strings. Gettext provides an easy to use
85 library and tools for creating, using, and modifying natural language
86 catalogs and is a powerful and simple method for internationalizing
89 %description -l de.UTF-8
90 Die gettext-Library enthält eine einfach anzuwendende Library und
91 Tools zum Erstellen, Verwenden und Ändern von
92 natürlichsprachigen-Kataloge. Es ist ein einfaches und
93 leistungsfähiges Verfahren zum Lokalisieren von Programmen.
95 %description -l es.UTF-8
96 La biblioteca gettext nos ofrece una biblioteca fácil de usar y
97 herramientas para creación, uso y modificación de catálogos de
98 lenguaje natural. Es un potente y sencillo método de
99 internacionalización de programas.
101 %description -l fr.UTF-8
102 La librarie gettext fournit des outils et une librairie simple à
103 utiliser pour manipuler, créer, et modifier des catalogues de langage
104 naturel. C'est une méthode simple et puissante pour internationnaliser
107 %description -l ja.UTF-8
109 パッケージはプログラム中でマルチリンガルメッセージを生成する
110 ためのツールと文書を供給する。ツールはメッセージカタログをサポートするために
111 プログラムがどのように書かれるべきかの申し合わせと、メッセージカタログのための
112 ディレクトリとファイル名の組織化と、翻訳されたメッセージの埋め合わせを
113 サポートするためのランタイムライブラリと、翻訳可能でかつすでに翻訳された文字列
114 を取り扱う独立したプログラムを含んでいる。gettext
116 と自然言語のカタログを生成、使用、修正するツールと、国際化プログラム
117 のための強力かつシンプルな方法を供給する。
119 %description -l pl.UTF-8
120 Pakiet gettext dostarcza narzędzi do tworzenia, używania i modyfikacji
121 katalogów języków narodowych. To jest prosta i wydajna metoda
122 lokalizacji (internacjonalizacji) programów.
124 %description -l pt_BR.UTF-8
125 A biblioteca gettext oferece uma biblioteca fácil de usar e
126 ferramentas para criação, uso e modificação de catálogos de linguagem
127 natural. Ele é um poderoso e simples método de internacionalização de
130 %description -l ru.UTF-8
131 Пакет gettext содержит библиотеку и простые в использовании
132 инструменты для создания, использования и модификации каталогов
133 национальных языков. Это простой и мощный метод для
134 интернационализации программ.
136 %description -l tr.UTF-8
137 gettext, yerel dil desteğinde kullanılan katalogları değiştirebilmek
138 için, kolayca kullanılabilen kitaplık ve araçları sağlar. Bu,
139 programları uluslararasılaştırmak için sıkça başvurulan, kuvvetli bir
142 %description -l uk.UTF-8
143 Пакет gettext містить бібліотеку та прості у використанні інструменти
144 для створення, використання та модифікації каталогів національних мов.
145 Це простий та потужний метод для інтернаціоналізації програм.
148 Summary: Utilties for program national language support
149 Summary(de.UTF-8): Utilities zum Programmieren von nationaler Sprachunterstützung
150 Summary(fr.UTF-8): Utilitaires pour le support de la langue nationnalepar les programmes
151 Summary(pl.UTF-8): Narzędzia dla programów ze wsparciem dla języków narodowych
152 Summary(tr.UTF-8): Desteği için kitaplık ve araçlar
154 Group: Development/Tools
155 Requires(post,postun): /sbin/ldconfig
156 Requires: %{name} = %{version}-%{release}
158 Conflicts: autoconf < 2.52
161 The gettext library provides an easy to use library and tools for
162 creating, using, and modifying natural language catalogs. It is a
163 powerfull and simple method for internationalizing programs.
165 %description devel -l pl.UTF-8
166 Pakiet gettext dostarcza narzędzi do tworzenia, używania i modyfikacji
167 katalogów języków narodowych. To jest prosta i wydajna metoda
168 lokalizacji (internacjonalizacji) programów.
171 Summary: Static gettext utility libraries
172 Summary(pl.UTF-8): Statyczne biblioteki narzędziowe gettext
174 Group: Development/Libraries
175 Requires: %{name}-devel = %{version}-%{release}
178 This package contains static versions of gettext utility libraries
179 (libgettextlib, libgettextsrc and libgettextpo).
181 %description static -l pl.UTF-8
182 Ten pakiet zawiera statyczne wersje bibliotek narzędziowych gettext
183 (libgettextlib, libgettextsrc i libgettextpo).
185 %package -n libasprintf
186 Summary: GNU libasprintf - automatic formatted output to strings in C++
187 Summary(pl.UTF-8): GNU libasprintf - automatyczne formatowanie wyjścia do łańcuchów w C++
191 %description -n libasprintf
192 This package makes the C formatted output routines (`fprintf' et al.)
193 usable in C++ programs, for use with the `<string>' strings and the
194 `<iostream>' streams.
196 %description -n libasprintf -l pl.UTF-8
197 Ten pakiet czyni funkcje C formatujące wyjście (fprintf i inne)
198 używalnymi w programach w C++, z łańcuchami <string> i strumieniami
201 %package -n libasprintf-devel
202 Summary: Header file and documentation for libasprintf
203 Summary(pl.UTF-8): Plik nagłówkowy i dokumentacja dla libasprintf
205 Group: Development/Libraries
206 Requires: libasprintf = %{version}-%{release}
208 %description -n libasprintf-devel
209 Header file and documentation for libasprintf.
211 %description -n libasprintf-devel -l pl.UTF-8
212 Plik nagłówkowy i dokumentacja dla libasprintf.
214 %package -n libasprintf-static
215 Summary: Static libasprintf library
216 Summary(pl.UTF-8): Statyczna biblioteka libasprintf
218 Group: Development/Libraries
219 Requires: libasprintf-devel = %{version}-%{release}
221 %description -n libasprintf-static
222 Static libasprintf library.
224 %description -n libasprintf-static -l pl.UTF-8
225 Statyczna biblioteka libasprintf.
228 Summary: Runtime classes for Java programs internationalization
229 Summary(pl.UTF-8): Klasy do uruchamiania umiędzynarodowionych programów w Javie
231 Group: Development/Languages/Java
232 Requires: %{name} = %{version}-%{release}
235 Runtime classes for Java programs internationalization.
237 %description java -l pl.UTF-8
238 Klasy do uruchamiania umiędzynarodowionych programów w Javie.
241 Summary: Development classes for Java programs internationalization
242 Summary(pl.UTF-8): Klasy do umiędzynarodowiania programów w Javie dla programistów
244 Group: Development/Tools
245 Requires: %{name}-devel = %{version}-%{release}
247 %description java-devel
248 Development classes for Java programs internationalization.
250 %description java-devel -l pl.UTF-8
251 Klasy do umiędzynarodowiania programów w Javie dla programistów.
253 %package -n xemacs-po-mode-pkg
254 Summary: Xemacs PO-mode
255 Summary(es.UTF-8): Facilita la edición de archivos PO (internacionalización) con emacs
256 Summary(pl.UTF-8): Tryb PO dla Xemacsa
257 Summary(pt_BR.UTF-8): Facilita a edição de arquivos PO (internacionalização) com o emacs
259 Group: Applications/Editors/Emacs
262 %description -n xemacs-po-mode-pkg
265 %description -n xemacs-po-mode-pkg -l es.UTF-8
266 Este paquete suministra las herramientas para ayudar en la edición de
267 archivos PO, como documentado en el manual del usuario del GNU
268 gettext. Mira este manual para la documentación de uso, que no se
271 %description -n xemacs-po-mode-pkg -l pl.UTF-8
272 Tryb edycji PO dla emacsa.
274 %description -n xemacs-po-mode-pkg -l pt_BR.UTF-8
275 Este pacote provê as ferramentas para ajudar na edição de arquivos PO,
276 como documentado no manual do usuário do GNU gettext. Veja este manual
277 para a documentação de uso, a qual não é incluída aqui.
280 Summary: gettextize replacement
281 Summary(pl.UTF-8): Zamiennik gettextize
283 Group: Development/Tools
284 Requires: %{name}-devel >= 0.10.35
287 %description autopoint
288 The `autopoint' program copies standard gettext infrastructure files
289 into a source package. It extracts from a macro call of the form
290 `AM_GNU_GETTEXT_VERSION(VERSION)', found in the package's
291 `configure.in' or `configure.ac' file, the gettext version used by the
292 package, and copies the infrastructure files belonging to this version
295 %description autopoint -l pl.UTF-8
296 Program autopoint kopiuje standardowe pliki infrastruktury gettexta do
297 pakietu źródłowego. Wyciąga użytą wersję gettexta z wywołania makra w
298 postaci AM_GNU_GETTEXT_VERSION(VERSION) w pliku configure.in lub
299 configure.ac i kopiuje do pakietu pliki infrastruktury należące do tej
302 %package -n dotnet-gettext
303 Summary: GNU gettext for C#
304 Summary(pl.UTF-8): GNU gettext dla C#
305 License: LGPL v2+ (GNU.Gettext library), GPL v3+ (tools)
306 Group: Development/Tools
308 %description -n dotnet-gettext
311 %description -n dotnet-gettext -l pl.UTF-8
319 # patch not finished yet
329 %{__aclocal} -I m4 -I ../m4
332 cd ../gettext-runtime
334 %{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4
339 %{__aclocal} -I ../m4 -I ../../m4
343 cd ../../gettext-tools
344 %{__aclocal} -I m4 -I gnulib-m4 -I libgettextpo/gnulib-m4 -I ../autoconf-lib-link/m4 -I ../gettext-runtime/m4 -I ../m4
353 %{?with_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \
355 %{!?with_dotnet:--disable-csharp} \
356 %{?with_dotnet:--enable-csharp=mono} \
357 --without-included-gettext \
358 %{?with_bootstrap:--with-included-glib} \
359 %{?with_bootstrap:--with-included-libcroco}
361 GMSGFMT=`pwd`/gettext-tools/src/msgfmt
363 # msgfmt has been built, so now we can update pl.gmos
364 %{__make} pl.gmo -C gettext-runtime/po \
365 GMSGFMT=`pwd`/gettext-tools/src/msgfmt
366 %{__make} pl.gmo -C gettext-tools/po \
367 GMSGFMT=`pwd`/gettext-tools/src/msgfmt
370 cd gettext-tools/misc
371 EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el
375 rm -rf $RPM_BUILD_ROOT
376 install -d $RPM_BUILD_ROOT/bin
379 DESTDIR=$RPM_BUILD_ROOT
381 mv -f $RPM_BUILD_ROOT%{_bindir}/{,n}gettext $RPM_BUILD_ROOT/bin
383 # these static libs are removed in install-exec-clean
384 install gettext-tools/gnulib-lib/.libs/libgettextlib.a \
385 gettext-tools/src/.libs/libgettextsrc.a $RPM_BUILD_ROOT%{_libdir}
387 rm -r $RPM_BUILD_ROOT%{_docdir}/gettext
388 rm -r $RPM_BUILD_ROOT%{_docdir}/libasprintf
389 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
391 %find_lang %{name}-runtime
392 %find_lang %{name}-tools
395 rm -rf $RPM_BUILD_ROOT
399 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
403 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
405 %post -n libasprintf -p /sbin/ldconfig
406 %postun -n libasprintf -p /sbin/ldconfig
408 %post -n libasprintf-devel -p /sbin/postshell
409 -/usr/sbin/fix-info-dir -c %{_infodir}
411 %postun -n libasprintf-devel -p /sbin/postshell
412 -/usr/sbin/fix-info-dir -c %{_infodir}
414 %files -f %{name}-runtime.lang
415 %defattr(644,root,root,755)
416 %attr(755,root,root) /bin/*
417 %attr(755,root,root) %{_bindir}/envsubst
418 %{_mandir}/man1/envsubst.1*
419 %{_mandir}/man1/gettext.1*
420 %{_mandir}/man1/ngettext.1*
421 %dir %{_libdir}/gettext
422 %dir %{_datadir}/gettext
424 %files devel -f %{name}-tools.lang
425 %defattr(644,root,root,755)
426 %doc AUTHORS ChangeLog NEWS README THANKS
427 %attr(755,root,root) %{_bindir}/*
428 %exclude %{_bindir}/autopoint
429 %exclude %{_bindir}/envsubst
430 %attr(755,root,root) %{_libdir}/libgettext*.so
431 %{_libdir}/libgettext*.la
432 # libgettextpo is for other programs, not used by gettext tools themselves
433 %attr(755,root,root) %{_libdir}/libgettextpo.so.*.*.*
434 %attr(755,root,root) %ghost %{_libdir}/libgettextpo.so.0
435 %attr(755,root,root) %{_libdir}/preloadable_libintl.so
436 %attr(755,root,root) %{_libdir}/gettext/hostname
437 %attr(755,root,root) %{_libdir}/gettext/project-id
438 %attr(755,root,root) %{_libdir}/gettext/urlget
439 %attr(755,root,root) %{_libdir}/gettext/user-email
440 %{_includedir}/gettext-po.h
442 %{_infodir}/gettext*.info*
443 %{_mandir}/man1/gettextize.1*
444 %{_mandir}/man1/msg*.1*
445 %{_mandir}/man1/recode-sr-latin.1*
446 %{_mandir}/man1/xgettext.1*
449 %{_datadir}/gettext/ABOUT-NLS
450 %attr(755,root,root) %{_datadir}/gettext/config.rpath
451 %{_datadir}/gettext/gettext.h
452 %dir %{_datadir}/gettext/intl
453 %{_datadir}/gettext/intl/[!c]*
454 %attr(755,root,root) %{_datadir}/gettext/intl/config.charset
455 %{_datadir}/gettext/msgunfmt.tcl
456 %{_datadir}/gettext/po
457 %dir %{_datadir}/gettext/projects
458 %{_datadir}/gettext/projects/index
459 %attr(755,root,root) %{_datadir}/gettext/projects/team-address
460 %dir %{_datadir}/gettext/projects/GNOME
461 %{_datadir}/gettext/projects/GNOME/teams.*
462 %attr(755,root,root) %{_datadir}/gettext/projects/GNOME/team-address
463 %attr(755,root,root) %{_datadir}/gettext/projects/GNOME/trigger
464 %dir %{_datadir}/gettext/projects/KDE
465 %{_datadir}/gettext/projects/KDE/teams.*
466 %attr(755,root,root) %{_datadir}/gettext/projects/KDE/team-address
467 %attr(755,root,root) %{_datadir}/gettext/projects/KDE/trigger
468 %dir %{_datadir}/gettext/projects/TP
469 %{_datadir}/gettext/projects/TP/teams.*
470 %attr(755,root,root) %{_datadir}/gettext/projects/TP/team-address
471 %attr(755,root,root) %{_datadir}/gettext/projects/TP/trigger
472 %{_datadir}/gettext/styles
475 %defattr(644,root,root,755)
476 %{_libdir}/libgettext*.a
479 %files -n libasprintf
480 %defattr(644,root,root,755)
481 %doc gettext-runtime/libasprintf/{AUTHORS,ChangeLog,README}
482 %attr(755,root,root) %{_libdir}/libasprintf.so.*.*.*
483 %attr(755,root,root) %ghost %{_libdir}/libasprintf.so.0
485 %files -n libasprintf-devel
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_libdir}/libasprintf.so
488 %{_libdir}/libasprintf.la
489 %{_includedir}/autosprintf.h
490 %{_infodir}/autosprintf.info*
492 %files -n libasprintf-static
493 %defattr(644,root,root,755)
494 %{_libdir}/libasprintf.a
499 %defattr(644,root,root,755)
500 %{_datadir}/gettext/libintl.jar
503 %defattr(644,root,root,755)
504 %doc gettext-runtime/intl-java/javadoc2
505 %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.DumpResource
506 %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.GetURL
507 %{_datadir}/gettext/javaversion.class
511 %files -n xemacs-po-mode-pkg
512 %defattr(644,root,root,755)
513 %dir %{_datadir}/xemacs-packages/lisp/po-mode
514 %{_datadir}/xemacs-packages/lisp/po-mode/*.elc
518 %defattr(644,root,root,755)
519 %attr(755,root,root) %{_bindir}/autopoint
520 %{_datadir}/gettext/archive.tar.gz
521 %{_mandir}/man1/autopoint.1*
524 %files -n dotnet-gettext
525 %defattr(644,root,root,755)
526 %{_libdir}/GNU.Gettext.dll
527 %{_libdir}/gettext/msgfmt.net.exe
528 %{_libdir}/gettext/msgunfmt.net.exe