]> git.pld-linux.org Git - packages/gettext.git/blob - gettext.spec
- rel 6; BR jar
[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:        6
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 %if %{with javac}
60 BuildRequires:  jdk >= 1.1
61 BuildRequires:  jar
62 %endif
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
66 %endif
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)
76
77 %description
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
87 programs.
88
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.
94
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.
100
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
105 les programmes.
106
107 %description -l ja.UTF-8
108 GNU gettext
109 パッケージはプログラム中でマルチリンガルメッセージを生成する
110 ためのツールと文書を供給する。ツールはメッセージカタログをサポートするために
111 プログラムがどのように書かれるべきかの申し合わせと、メッセージカタログのための
112 ディレクトリとファイル名の組織化と、翻訳されたメッセージの埋め合わせを
113 サポートするためのランタイムライブラリと、翻訳可能でかつすでに翻訳された文字列
114 を取り扱う独立したプログラムを含んでいる。gettext
115 は簡単に使えるライブラリ
116 と自然言語のカタログを生成、使用、修正するツールと、国際化プログラム
117 のための強力かつシンプルな方法を供給する。
118
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.
123
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
128 programas.
129
130 %description -l ru.UTF-8
131 Пакет gettext содержит библиотеку и простые в использовании
132 инструменты для создания, использования и модификации каталогов
133 национальных языков. Это простой и мощный метод для
134 интернационализации программ.
135
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
140 yöntemdir.
141
142 %description -l uk.UTF-8
143 Пакет gettext містить бібліотеку та прості у використанні інструменти
144 для створення, використання та модифікації каталогів національних мов.
145 Це простий та потужний метод для інтернаціоналізації програм.
146
147 %package devel
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
153 License:        GPL v3+
154 Group:          Development/Tools
155 Requires(post,postun):  /sbin/ldconfig
156 Requires:       %{name} = %{version}-%{release}
157 Requires:       iconv
158 Conflicts:      autoconf < 2.52
159
160 %description devel
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.
164
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.
169
170 %package static
171 Summary:        Static gettext utility libraries
172 Summary(pl.UTF-8):      Statyczne biblioteki narzędziowe gettext
173 License:        GPL v3+
174 Group:          Development/Libraries
175 Requires:       %{name}-devel = %{version}-%{release}
176
177 %description static
178 This package contains static versions of gettext utility libraries
179 (libgettextlib, libgettextsrc and libgettextpo).
180
181 %description static -l pl.UTF-8
182 Ten pakiet zawiera statyczne wersje bibliotek narzędziowych gettext
183 (libgettextlib, libgettextsrc i libgettextpo).
184
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++
188 License:        LGPL v2+
189 Group:          Libraries
190
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.
195
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
199 <iostream>.
200
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
204 License:        LGPL v2+
205 Group:          Development/Libraries
206 Requires:       libasprintf = %{version}-%{release}
207
208 %description -n libasprintf-devel
209 Header file and documentation for libasprintf.
210
211 %description -n libasprintf-devel -l pl.UTF-8
212 Plik nagłówkowy i dokumentacja dla libasprintf.
213
214 %package -n libasprintf-static
215 Summary:        Static libasprintf library
216 Summary(pl.UTF-8):      Statyczna biblioteka libasprintf
217 License:        LGPL v2+
218 Group:          Development/Libraries
219 Requires:       libasprintf-devel = %{version}-%{release}
220
221 %description -n libasprintf-static
222 Static libasprintf library.
223
224 %description -n libasprintf-static -l pl.UTF-8
225 Statyczna biblioteka libasprintf.
226
227 %package java
228 Summary:        Runtime classes for Java programs internationalization
229 Summary(pl.UTF-8):      Klasy do uruchamiania umiędzynarodowionych programów w Javie
230 License:        LGPL v2+
231 Group:          Development/Languages/Java
232 Requires:       %{name} = %{version}-%{release}
233
234 %description java
235 Runtime classes for Java programs internationalization.
236
237 %description java -l pl.UTF-8
238 Klasy do uruchamiania umiędzynarodowionych programów w Javie.
239
240 %package java-devel
241 Summary:        Development classes for Java programs internationalization
242 Summary(pl.UTF-8):      Klasy do umiędzynarodowiania programów w Javie dla programistów
243 License:        GPL v3+
244 Group:          Development/Tools
245 Requires:       %{name}-devel = %{version}-%{release}
246
247 %description java-devel
248 Development classes for Java programs internationalization.
249
250 %description java-devel -l pl.UTF-8
251 Klasy do umiędzynarodowiania programów w Javie dla programistów.
252
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
258 License:        GPL v2+
259 Group:          Applications/Editors/Emacs
260 Requires:       xemacs
261
262 %description -n xemacs-po-mode-pkg
263 Emacs PO-mode.
264
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
269 incluye aquí.
270
271 %description -n xemacs-po-mode-pkg -l pl.UTF-8
272 Tryb edycji PO dla emacsa.
273
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.
278
279 %package autopoint
280 Summary:        gettextize replacement
281 Summary(pl.UTF-8):      Zamiennik gettextize
282 License:        GPL v3+
283 Group:          Development/Tools
284 Requires:       %{name}-devel >= 0.10.35
285 Requires:       cvs-client
286
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
293 into the package.
294
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
300 wersji.
301
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
307
308 %description -n dotnet-gettext
309 GNU gettext for C#.
310
311 %description -n dotnet-gettext -l pl.UTF-8
312 GNU gettext dla C#.
313
314 %prep
315 %setup -q
316 %patch0 -p1
317 %patch1 -p1
318 %patch2 -p1
319 # patch not finished yet
320 #%patch3 -p1
321 %patch4 -p1
322 %patch5 -p1
323 %patch6 -p1
324 %patch7 -p1
325
326 %build
327 %{__libtoolize}
328 cd autoconf-lib-link
329 %{__aclocal} -I m4 -I ../m4
330 %{__autoconf}
331 %{__automake}
332 cd ../gettext-runtime
333 %{__libtoolize}
334 %{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4
335 %{__autoconf}
336 %{__autoheader}
337 %{__automake}
338 cd libasprintf
339 %{__aclocal} -I ../m4 -I ../../m4
340 %{__autoconf}
341 %{__autoheader}
342 %{__automake}
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
345 %{__autoconf}
346 %{__autoheader}
347 %{__automake}
348 cd ..
349 %{__aclocal}
350 %{__autoconf}
351 %{__automake}
352 %configure \
353         %{?with_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \
354         --enable-nls \
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}
360 %{__make} \
361         GMSGFMT=`pwd`/gettext-tools/src/msgfmt
362
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
368
369 %if %{with xemacs}
370 cd gettext-tools/misc
371 EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el
372 %endif
373
374 %install
375 rm -rf $RPM_BUILD_ROOT
376 install -d $RPM_BUILD_ROOT/bin
377
378 %{__make} install \
379         DESTDIR=$RPM_BUILD_ROOT
380
381 mv -f $RPM_BUILD_ROOT%{_bindir}/{,n}gettext $RPM_BUILD_ROOT/bin
382
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}
386
387 rm -r $RPM_BUILD_ROOT%{_docdir}/gettext
388 rm -r $RPM_BUILD_ROOT%{_docdir}/libasprintf
389 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
390
391 %find_lang %{name}-runtime
392 %find_lang %{name}-tools
393
394 %clean
395 rm -rf $RPM_BUILD_ROOT
396
397 %post devel
398 /sbin/ldconfig
399 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
400
401 %postun devel
402 /sbin/ldconfig
403 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
404
405 %post   -n libasprintf -p /sbin/ldconfig
406 %postun -n libasprintf -p /sbin/ldconfig
407
408 %post -n libasprintf-devel      -p      /sbin/postshell
409 -/usr/sbin/fix-info-dir -c %{_infodir}
410
411 %postun -n libasprintf-devel    -p      /sbin/postshell
412 -/usr/sbin/fix-info-dir -c %{_infodir}
413
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
423
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
441 %{_aclocaldir}/*
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*
447 %{_mandir}/man3/*
448
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
473
474 %files static
475 %defattr(644,root,root,755)
476 %{_libdir}/libgettext*.a
477
478 %if %{with asprintf}
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
484
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*
491
492 %files -n libasprintf-static
493 %defattr(644,root,root,755)
494 %{_libdir}/libasprintf.a
495 %endif
496
497 %if %{build_java}
498 %files java
499 %defattr(644,root,root,755)
500 %{_datadir}/gettext/libintl.jar
501
502 %files java-devel
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
508 %endif
509
510 %if %{with xemacs}
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
515 %endif
516
517 %files autopoint
518 %defattr(644,root,root,755)
519 %attr(755,root,root) %{_bindir}/autopoint
520 %{_datadir}/gettext/archive.tar.gz
521 %{_mandir}/man1/autopoint.1*
522
523 %if %{with dotnet}
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
529 %endif
This page took 0.097107 seconds and 4 git commands to generate.