]> git.pld-linux.org Git - packages/gettext.git/blob - gettext.spec
- rel 5; autopoint now works with cvsnt
[packages/gettext.git] / gettext.spec
1 # TODO
2 # - unpackaged:
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
9 #
10 # Conditional build:
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
17
18 %ifnarch %{ix86} %{x8664} arm hppa ppc s390 s390x
19 %undefine with_dotnet
20 %endif
21 %ifarch i386
22 # plain i386 is not supported; mono uses cmpxchg/xadd which require i486
23 %undefine with_dotnet
24 %endif
25
26 %{?with_dotnet:%include /usr/lib/rpm/macros.mono}
27
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):      Бібліотеки та утиліти для підтримки національних мов
39 Name:           gettext
40 Version:        0.17
41 Release:        5
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
63 %endif
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)
73
74 %description
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
84 programs.
85
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.
91
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.
97
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
102 les programmes.
103
104 %description -l ja.UTF-8
105 GNU gettext
106 パッケージはプログラム中でマルチリンガルメッセージを生成する
107 ためのツールと文書を供給する。ツールはメッセージカタログをサポートするために
108 プログラムがどのように書かれるべきかの申し合わせと、メッセージカタログのための
109 ディレクトリとファイル名の組織化と、翻訳されたメッセージの埋め合わせを
110 サポートするためのランタイムライブラリと、翻訳可能でかつすでに翻訳された文字列
111 を取り扱う独立したプログラムを含んでいる。gettext
112 は簡単に使えるライブラリ
113 と自然言語のカタログを生成、使用、修正するツールと、国際化プログラム
114 のための強力かつシンプルな方法を供給する。
115
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.
120
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
125 programas.
126
127 %description -l ru.UTF-8
128 Пакет gettext содержит библиотеку и простые в использовании
129 инструменты для создания, использования и модификации каталогов
130 национальных языков. Это простой и мощный метод для
131 интернационализации программ.
132
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
137 yöntemdir.
138
139 %description -l uk.UTF-8
140 Пакет gettext містить бібліотеку та прості у використанні інструменти
141 для створення, використання та модифікації каталогів національних мов.
142 Це простий та потужний метод для інтернаціоналізації програм.
143
144 %package devel
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
150 License:        GPL v3+
151 Group:          Development/Tools
152 Requires(post,postun):  /sbin/ldconfig
153 Requires:       %{name} = %{version}-%{release}
154 Requires:       iconv
155 Conflicts:      autoconf < 2.52
156
157 %description devel
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.
161
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.
166
167 %package static
168 Summary:        Static gettext utility libraries
169 Summary(pl.UTF-8):      Statyczne biblioteki narzędziowe gettext
170 License:        GPL v3+
171 Group:          Development/Libraries
172 Requires:       %{name}-devel = %{version}-%{release}
173
174 %description static
175 This package contains static versions of gettext utility libraries
176 (libgettextlib, libgettextsrc and libgettextpo).
177
178 %description static -l pl.UTF-8
179 Ten pakiet zawiera statyczne wersje bibliotek narzędziowych gettext
180 (libgettextlib, libgettextsrc i libgettextpo).
181
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++
185 License:        LGPL v2+
186 Group:          Libraries
187
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.
192
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
196 <iostream>.
197
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
201 License:        LGPL v2+
202 Group:          Development/Libraries
203 Requires:       libasprintf = %{version}-%{release}
204
205 %description -n libasprintf-devel
206 Header file and documentation for libasprintf.
207
208 %description -n libasprintf-devel -l pl.UTF-8
209 Plik nagłówkowy i dokumentacja dla libasprintf.
210
211 %package -n libasprintf-static
212 Summary:        Static libasprintf library
213 Summary(pl.UTF-8):      Statyczna biblioteka libasprintf
214 License:        LGPL v2+
215 Group:          Development/Libraries
216 Requires:       libasprintf-devel = %{version}-%{release}
217
218 %description -n libasprintf-static
219 Static libasprintf library.
220
221 %description -n libasprintf-static -l pl.UTF-8
222 Statyczna biblioteka libasprintf.
223
224 %package java
225 Summary:        Runtime classes for Java programs internationalization
226 Summary(pl.UTF-8):      Klasy do uruchamiania umiędzynarodowionych programów w Javie
227 License:        LGPL v2+
228 Group:          Development/Languages/Java
229 Requires:       %{name} = %{version}-%{release}
230
231 %description java
232 Runtime classes for Java programs internationalization.
233
234 %description java -l pl.UTF-8
235 Klasy do uruchamiania umiędzynarodowionych programów w Javie.
236
237 %package java-devel
238 Summary:        Development classes for Java programs internationalization
239 Summary(pl.UTF-8):      Klasy do umiędzynarodowiania programów w Javie dla programistów
240 License:        GPL v3+
241 Group:          Development/Tools
242 Requires:       %{name}-devel = %{version}-%{release}
243
244 %description java-devel
245 Development classes for Java programs internationalization.
246
247 %description java-devel -l pl.UTF-8
248 Klasy do umiędzynarodowiania programów w Javie dla programistów.
249
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
255 License:        GPL v2+
256 Group:          Applications/Editors/Emacs
257 Requires:       xemacs
258
259 %description -n xemacs-po-mode-pkg
260 Emacs PO-mode.
261
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
266 incluye aquí.
267
268 %description -n xemacs-po-mode-pkg -l pl.UTF-8
269 Tryb edycji PO dla emacsa.
270
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.
275
276 %package autopoint
277 Summary:        gettextize replacement
278 Summary(pl.UTF-8):      Zamiennik gettextize
279 License:        GPL v3+
280 Group:          Development/Tools
281 Requires:       %{name}-devel >= 0.10.35
282 Requires:       cvs-client
283
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
290 into the package.
291
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
297 wersji.
298
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
304
305 %description -n dotnet-gettext
306 GNU gettext for C#.
307
308 %description -n dotnet-gettext -l pl.UTF-8
309 GNU gettext dla C#.
310
311 %prep
312 %setup -q
313 %patch0 -p1
314 %patch1 -p1
315 %patch2 -p1
316 # patch not finished yet
317 #%patch3 -p1
318 %patch4 -p1
319 %patch5 -p1
320 %patch6 -p1
321 %patch7 -p1
322
323 %build
324 %{__libtoolize}
325 cd autoconf-lib-link
326 %{__aclocal} -I m4 -I ../m4
327 %{__autoconf}
328 %{__automake}
329 cd ../gettext-runtime
330 %{__libtoolize}
331 %{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4
332 %{__autoconf}
333 %{__autoheader}
334 %{__automake}
335 cd libasprintf
336 %{__aclocal} -I ../m4 -I ../../m4
337 %{__autoconf}
338 %{__autoheader}
339 %{__automake}
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
342 %{__autoconf}
343 %{__autoheader}
344 %{__automake}
345 cd ..
346 %{__aclocal}
347 %{__autoconf}
348 %{__automake}
349 %configure \
350         %{?with_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \
351         --enable-nls \
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}
357 %{__make} \
358         GMSGFMT=`pwd`/gettext-tools/src/msgfmt
359
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
365
366 %if %{with xemacs}
367 cd gettext-tools/misc
368 EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el
369 %endif
370
371 %install
372 rm -rf $RPM_BUILD_ROOT
373 install -d $RPM_BUILD_ROOT/bin
374
375 %{__make} install \
376         DESTDIR=$RPM_BUILD_ROOT
377
378 mv -f $RPM_BUILD_ROOT%{_bindir}/{,n}gettext $RPM_BUILD_ROOT/bin
379
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}
383
384 rm -r $RPM_BUILD_ROOT%{_docdir}/gettext
385 rm -r $RPM_BUILD_ROOT%{_docdir}/libasprintf
386 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
387
388 %find_lang %{name}-runtime
389 %find_lang %{name}-tools
390
391 %clean
392 rm -rf $RPM_BUILD_ROOT
393
394 %post devel
395 /sbin/ldconfig
396 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
397
398 %postun devel
399 /sbin/ldconfig
400 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
401
402 %post   -n libasprintf -p /sbin/ldconfig
403 %postun -n libasprintf -p /sbin/ldconfig
404
405 %post -n libasprintf-devel      -p      /sbin/postshell
406 -/usr/sbin/fix-info-dir -c %{_infodir}
407
408 %postun -n libasprintf-devel    -p      /sbin/postshell
409 -/usr/sbin/fix-info-dir -c %{_infodir}
410
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
420
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
438 %{_aclocaldir}/*
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*
444 %{_mandir}/man3/*
445
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
470
471 %files static
472 %defattr(644,root,root,755)
473 %{_libdir}/libgettext*.a
474
475 %if %{with asprintf}
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
481
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*
488
489 %files -n libasprintf-static
490 %defattr(644,root,root,755)
491 %{_libdir}/libasprintf.a
492 %endif
493
494 %if %{build_java}
495 %files java
496 %defattr(644,root,root,755)
497 %{_datadir}/gettext/libintl.jar
498
499 %files java-devel
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
505 %endif
506
507 %if %{with xemacs}
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
512 %endif
513
514 %files autopoint
515 %defattr(644,root,root,755)
516 %attr(755,root,root) %{_bindir}/autopoint
517 %{_datadir}/gettext/archive.tar.gz
518 %{_mandir}/man1/autopoint.1*
519
520 %if %{with dotnet}
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
526 %endif
This page took 0.08306 seconds and 4 git commands to generate.