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}
59 %{?with_javac:BuildRequires: jdk >= 1.1}
60 %{!?with_bootstrap:BuildRequires: libcroco-devel >= 0.6.1}
61 %if "%(echo %{cc_version} | grep -q '^4.[2-9]'; echo $?)" == "0"
62 BuildRequires: libgomp-devel
64 %{?with_asprintf:BuildRequires: libstdc++-devel}
65 BuildRequires: libtool >= 1:1.4.2-9
66 %{?with_dotnet:BuildRequires: mono-csharp}
67 BuildRequires: rpmbuild(macros) >= 1.453
68 BuildRequires: texinfo
69 %{?with_xemacs:BuildRequires: xemacs}
70 Obsoletes: gettext-base
71 Conflicts: intltool < 0.28
72 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
75 The GNU gettext package provides a set of tools and documentation for
76 producing multi-lingual messages in programs. Tools include a set of
77 conventions about how programs should be written to support message
78 catalogs, a directory and file naming organization for the message
79 catalogs, a runtime library which supports the retrieval of translated
80 messages, and stand-alone programs for handling the translatable and
81 the already translated strings. Gettext provides an easy to use
82 library and tools for creating, using, and modifying natural language
83 catalogs and is a powerful and simple method for internationalizing
86 %description -l de.UTF-8
87 Die gettext-Library enthält eine einfach anzuwendende Library und
88 Tools zum Erstellen, Verwenden und Ändern von
89 natürlichsprachigen-Kataloge. Es ist ein einfaches und
90 leistungsfähiges Verfahren zum Lokalisieren von Programmen.
92 %description -l es.UTF-8
93 La biblioteca gettext nos ofrece una biblioteca fácil de usar y
94 herramientas para creación, uso y modificación de catálogos de
95 lenguaje natural. Es un potente y sencillo método de
96 internacionalización de programas.
98 %description -l fr.UTF-8
99 La librarie gettext fournit des outils et une librairie simple à
100 utiliser pour manipuler, créer, et modifier des catalogues de langage
101 naturel. C'est une méthode simple et puissante pour internationnaliser
104 %description -l ja.UTF-8
106 パッケージはプログラム中でマルチリンガルメッセージを生成する
107 ためのツールと文書を供給する。ツールはメッセージカタログをサポートするために
108 プログラムがどのように書かれるべきかの申し合わせと、メッセージカタログのための
109 ディレクトリとファイル名の組織化と、翻訳されたメッセージの埋め合わせを
110 サポートするためのランタイムライブラリと、翻訳可能でかつすでに翻訳された文字列
111 を取り扱う独立したプログラムを含んでいる。gettext
113 と自然言語のカタログを生成、使用、修正するツールと、国際化プログラム
114 のための強力かつシンプルな方法を供給する。
116 %description -l pl.UTF-8
117 Pakiet gettext dostarcza narzędzi do tworzenia, używania i modyfikacji
118 katalogów języków narodowych. To jest prosta i wydajna metoda
119 lokalizacji (internacjonalizacji) programów.
121 %description -l pt_BR.UTF-8
122 A biblioteca gettext oferece uma biblioteca fácil de usar e
123 ferramentas para criação, uso e modificação de catálogos de linguagem
124 natural. Ele é um poderoso e simples método de internacionalização de
127 %description -l ru.UTF-8
128 Пакет gettext содержит библиотеку и простые в использовании
129 инструменты для создания, использования и модификации каталогов
130 национальных языков. Это простой и мощный метод для
131 интернационализации программ.
133 %description -l tr.UTF-8
134 gettext, yerel dil desteğinde kullanılan katalogları değiştirebilmek
135 için, kolayca kullanılabilen kitaplık ve araçları sağlar. Bu,
136 programları uluslararasılaştırmak için sıkça başvurulan, kuvvetli bir
139 %description -l uk.UTF-8
140 Пакет gettext містить бібліотеку та прості у використанні інструменти
141 для створення, використання та модифікації каталогів національних мов.
142 Це простий та потужний метод для інтернаціоналізації програм.
145 Summary: Utilties for program national language support
146 Summary(de.UTF-8): Utilities zum Programmieren von nationaler Sprachunterstützung
147 Summary(fr.UTF-8): Utilitaires pour le support de la langue nationnalepar les programmes
148 Summary(pl.UTF-8): Narzędzia dla programów ze wsparciem dla języków narodowych
149 Summary(tr.UTF-8): Desteği için kitaplık ve araçlar
151 Group: Development/Tools
152 Requires(post,postun): /sbin/ldconfig
153 Requires: %{name} = %{version}-%{release}
155 Conflicts: autoconf < 2.52
158 The gettext library provides an easy to use library and tools for
159 creating, using, and modifying natural language catalogs. It is a
160 powerfull and simple method for internationalizing programs.
162 %description devel -l pl.UTF-8
163 Pakiet gettext dostarcza narzędzi do tworzenia, używania i modyfikacji
164 katalogów języków narodowych. To jest prosta i wydajna metoda
165 lokalizacji (internacjonalizacji) programów.
168 Summary: Static gettext utility libraries
169 Summary(pl.UTF-8): Statyczne biblioteki narzędziowe gettext
171 Group: Development/Libraries
172 Requires: %{name}-devel = %{version}-%{release}
175 This package contains static versions of gettext utility libraries
176 (libgettextlib, libgettextsrc and libgettextpo).
178 %description static -l pl.UTF-8
179 Ten pakiet zawiera statyczne wersje bibliotek narzędziowych gettext
180 (libgettextlib, libgettextsrc i libgettextpo).
182 %package -n libasprintf
183 Summary: GNU libasprintf - automatic formatted output to strings in C++
184 Summary(pl.UTF-8): GNU libasprintf - automatyczne formatowanie wyjścia do łańcuchów w C++
188 %description -n libasprintf
189 This package makes the C formatted output routines (`fprintf' et al.)
190 usable in C++ programs, for use with the `<string>' strings and the
191 `<iostream>' streams.
193 %description -n libasprintf -l pl.UTF-8
194 Ten pakiet czyni funkcje C formatujące wyjście (fprintf i inne)
195 używalnymi w programach w C++, z łańcuchami <string> i strumieniami
198 %package -n libasprintf-devel
199 Summary: Header file and documentation for libasprintf
200 Summary(pl.UTF-8): Plik nagłówkowy i dokumentacja dla libasprintf
202 Group: Development/Libraries
203 Requires: libasprintf = %{version}-%{release}
205 %description -n libasprintf-devel
206 Header file and documentation for libasprintf.
208 %description -n libasprintf-devel -l pl.UTF-8
209 Plik nagłówkowy i dokumentacja dla libasprintf.
211 %package -n libasprintf-static
212 Summary: Static libasprintf library
213 Summary(pl.UTF-8): Statyczna biblioteka libasprintf
215 Group: Development/Libraries
216 Requires: libasprintf-devel = %{version}-%{release}
218 %description -n libasprintf-static
219 Static libasprintf library.
221 %description -n libasprintf-static -l pl.UTF-8
222 Statyczna biblioteka libasprintf.
225 Summary: Runtime classes for Java programs internationalization
226 Summary(pl.UTF-8): Klasy do uruchamiania umiędzynarodowionych programów w Javie
228 Group: Development/Languages/Java
229 Requires: %{name} = %{version}-%{release}
232 Runtime classes for Java programs internationalization.
234 %description java -l pl.UTF-8
235 Klasy do uruchamiania umiędzynarodowionych programów w Javie.
238 Summary: Development classes for Java programs internationalization
239 Summary(pl.UTF-8): Klasy do umiędzynarodowiania programów w Javie dla programistów
241 Group: Development/Tools
242 Requires: %{name}-devel = %{version}-%{release}
244 %description java-devel
245 Development classes for Java programs internationalization.
247 %description java-devel -l pl.UTF-8
248 Klasy do umiędzynarodowiania programów w Javie dla programistów.
250 %package -n xemacs-po-mode-pkg
251 Summary: Xemacs PO-mode
252 Summary(es.UTF-8): Facilita la edición de archivos PO (internacionalización) con emacs
253 Summary(pl.UTF-8): Tryb PO dla Xemacsa
254 Summary(pt_BR.UTF-8): Facilita a edição de arquivos PO (internacionalização) com o emacs
256 Group: Applications/Editors/Emacs
259 %description -n xemacs-po-mode-pkg
262 %description -n xemacs-po-mode-pkg -l es.UTF-8
263 Este paquete suministra las herramientas para ayudar en la edición de
264 archivos PO, como documentado en el manual del usuario del GNU
265 gettext. Mira este manual para la documentación de uso, que no se
268 %description -n xemacs-po-mode-pkg -l pl.UTF-8
269 Tryb edycji PO dla emacsa.
271 %description -n xemacs-po-mode-pkg -l pt_BR.UTF-8
272 Este pacote provê as ferramentas para ajudar na edição de arquivos PO,
273 como documentado no manual do usuário do GNU gettext. Veja este manual
274 para a documentação de uso, a qual não é incluída aqui.
277 Summary: gettextize replacement
278 Summary(pl.UTF-8): Zamiennik gettextize
280 Group: Development/Tools
281 Requires: %{name}-devel >= 0.10.35
284 %description autopoint
285 The `autopoint' program copies standard gettext infrastructure files
286 into a source package. It extracts from a macro call of the form
287 `AM_GNU_GETTEXT_VERSION(VERSION)', found in the package's
288 `configure.in' or `configure.ac' file, the gettext version used by the
289 package, and copies the infrastructure files belonging to this version
292 %description autopoint -l pl.UTF-8
293 Program autopoint kopiuje standardowe pliki infrastruktury gettexta do
294 pakietu źródłowego. Wyciąga użytą wersję gettexta z wywołania makra w
295 postaci AM_GNU_GETTEXT_VERSION(VERSION) w pliku configure.in lub
296 configure.ac i kopiuje do pakietu pliki infrastruktury należące do tej
299 %package -n dotnet-gettext
300 Summary: GNU gettext for C#
301 Summary(pl.UTF-8): GNU gettext dla C#
302 License: LGPL v2+ (GNU.Gettext library), GPL v3+ (tools)
303 Group: Development/Tools
305 %description -n dotnet-gettext
308 %description -n dotnet-gettext -l pl.UTF-8
316 # patch not finished yet
326 %{__aclocal} -I m4 -I ../m4
329 cd ../gettext-runtime
331 %{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4
336 %{__aclocal} -I ../m4 -I ../../m4
340 cd ../../gettext-tools
341 %{__aclocal} -I m4 -I gnulib-m4 -I libgettextpo/gnulib-m4 -I ../autoconf-lib-link/m4 -I ../gettext-runtime/m4 -I ../m4
350 %{?with_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \
352 %{!?with_dotnet:--disable-csharp} \
353 %{?with_dotnet:--enable-csharp=mono} \
354 --without-included-gettext \
355 %{?with_bootstrap:--with-included-glib} \
356 %{?with_bootstrap:--with-included-libcroco}
358 GMSGFMT=`pwd`/gettext-tools/src/msgfmt
360 # msgfmt has been built, so now we can update pl.gmos
361 %{__make} pl.gmo -C gettext-runtime/po \
362 GMSGFMT=`pwd`/gettext-tools/src/msgfmt
363 %{__make} pl.gmo -C gettext-tools/po \
364 GMSGFMT=`pwd`/gettext-tools/src/msgfmt
367 cd gettext-tools/misc
368 EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el
372 rm -rf $RPM_BUILD_ROOT
373 install -d $RPM_BUILD_ROOT/bin
376 DESTDIR=$RPM_BUILD_ROOT
378 mv -f $RPM_BUILD_ROOT%{_bindir}/{,n}gettext $RPM_BUILD_ROOT/bin
380 # these static libs are removed in install-exec-clean
381 install gettext-tools/gnulib-lib/.libs/libgettextlib.a \
382 gettext-tools/src/.libs/libgettextsrc.a $RPM_BUILD_ROOT%{_libdir}
384 rm -r $RPM_BUILD_ROOT%{_docdir}/gettext
385 rm -r $RPM_BUILD_ROOT%{_docdir}/libasprintf
386 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
388 %find_lang %{name}-runtime
389 %find_lang %{name}-tools
392 rm -rf $RPM_BUILD_ROOT
396 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
400 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
402 %post -n libasprintf -p /sbin/ldconfig
403 %postun -n libasprintf -p /sbin/ldconfig
405 %post -n libasprintf-devel -p /sbin/postshell
406 -/usr/sbin/fix-info-dir -c %{_infodir}
408 %postun -n libasprintf-devel -p /sbin/postshell
409 -/usr/sbin/fix-info-dir -c %{_infodir}
411 %files -f %{name}-runtime.lang
412 %defattr(644,root,root,755)
413 %attr(755,root,root) /bin/*
414 %attr(755,root,root) %{_bindir}/envsubst
415 %{_mandir}/man1/envsubst.1*
416 %{_mandir}/man1/gettext.1*
417 %{_mandir}/man1/ngettext.1*
418 %dir %{_libdir}/gettext
419 %dir %{_datadir}/gettext
421 %files devel -f %{name}-tools.lang
422 %defattr(644,root,root,755)
423 %doc AUTHORS ChangeLog NEWS README THANKS
424 %attr(755,root,root) %{_bindir}/*
425 %exclude %{_bindir}/autopoint
426 %exclude %{_bindir}/envsubst
427 %attr(755,root,root) %{_libdir}/libgettext*.so
428 %{_libdir}/libgettext*.la
429 # libgettextpo is for other programs, not used by gettext tools themselves
430 %attr(755,root,root) %{_libdir}/libgettextpo.so.*.*.*
431 %attr(755,root,root) %ghost %{_libdir}/libgettextpo.so.0
432 %attr(755,root,root) %{_libdir}/preloadable_libintl.so
433 %attr(755,root,root) %{_libdir}/gettext/hostname
434 %attr(755,root,root) %{_libdir}/gettext/project-id
435 %attr(755,root,root) %{_libdir}/gettext/urlget
436 %attr(755,root,root) %{_libdir}/gettext/user-email
437 %{_includedir}/gettext-po.h
439 %{_infodir}/gettext*.info*
440 %{_mandir}/man1/gettextize.1*
441 %{_mandir}/man1/msg*.1*
442 %{_mandir}/man1/recode-sr-latin.1*
443 %{_mandir}/man1/xgettext.1*
446 %{_datadir}/gettext/ABOUT-NLS
447 %attr(755,root,root) %{_datadir}/gettext/config.rpath
448 %{_datadir}/gettext/gettext.h
449 %dir %{_datadir}/gettext/intl
450 %{_datadir}/gettext/intl/[!c]*
451 %attr(755,root,root) %{_datadir}/gettext/intl/config.charset
452 %{_datadir}/gettext/msgunfmt.tcl
453 %{_datadir}/gettext/po
454 %dir %{_datadir}/gettext/projects
455 %{_datadir}/gettext/projects/index
456 %attr(755,root,root) %{_datadir}/gettext/projects/team-address
457 %dir %{_datadir}/gettext/projects/GNOME
458 %{_datadir}/gettext/projects/GNOME/teams.*
459 %attr(755,root,root) %{_datadir}/gettext/projects/GNOME/team-address
460 %attr(755,root,root) %{_datadir}/gettext/projects/GNOME/trigger
461 %dir %{_datadir}/gettext/projects/KDE
462 %{_datadir}/gettext/projects/KDE/teams.*
463 %attr(755,root,root) %{_datadir}/gettext/projects/KDE/team-address
464 %attr(755,root,root) %{_datadir}/gettext/projects/KDE/trigger
465 %dir %{_datadir}/gettext/projects/TP
466 %{_datadir}/gettext/projects/TP/teams.*
467 %attr(755,root,root) %{_datadir}/gettext/projects/TP/team-address
468 %attr(755,root,root) %{_datadir}/gettext/projects/TP/trigger
469 %{_datadir}/gettext/styles
472 %defattr(644,root,root,755)
473 %{_libdir}/libgettext*.a
476 %files -n libasprintf
477 %defattr(644,root,root,755)
478 %doc gettext-runtime/libasprintf/{AUTHORS,ChangeLog,README}
479 %attr(755,root,root) %{_libdir}/libasprintf.so.*.*.*
480 %attr(755,root,root) %ghost %{_libdir}/libasprintf.so.0
482 %files -n libasprintf-devel
483 %defattr(644,root,root,755)
484 %attr(755,root,root) %{_libdir}/libasprintf.so
485 %{_libdir}/libasprintf.la
486 %{_includedir}/autosprintf.h
487 %{_infodir}/autosprintf.info*
489 %files -n libasprintf-static
490 %defattr(644,root,root,755)
491 %{_libdir}/libasprintf.a
496 %defattr(644,root,root,755)
497 %{_datadir}/gettext/libintl.jar
500 %defattr(644,root,root,755)
501 %doc gettext-runtime/intl-java/javadoc2
502 %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.DumpResource
503 %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.GetURL
504 %{_datadir}/gettext/javaversion.class
508 %files -n xemacs-po-mode-pkg
509 %defattr(644,root,root,755)
510 %dir %{_datadir}/xemacs-packages/lisp/po-mode
511 %{_datadir}/xemacs-packages/lisp/po-mode/*.elc
515 %defattr(644,root,root,755)
516 %attr(755,root,root) %{_bindir}/autopoint
517 %{_datadir}/gettext/archive.tar.gz
518 %{_mandir}/man1/autopoint.1*
521 %files -n dotnet-gettext
522 %defattr(644,root,root,755)
523 %{_libdir}/GNU.Gettext.dll
524 %{_libdir}/gettext/msgfmt.net.exe
525 %{_libdir}/gettext/msgunfmt.net.exe