]> git.pld-linux.org Git - packages/gettext.git/blame - gettext.spec
rel 1
[packages/gettext.git] / gettext.spec
CommitLineData
477b7b4d
MM
1#
2# Conditional build:
5c7ab0ff
JB
3%bcond_without asprintf # libasprintf C++ library
4%bcond_with xemacs # po-mode for xemacs
5%bcond_without java # convenience bcond to disable Java (any)
6dfaef86
JR
6%bcond_with gcj # Java support by gcj (preferred over javac)
7%bcond_without javac # Java support by some javac
5c7ab0ff 8%bcond_without dotnet # .NET support package
07257a82 9%bcond_with bootstrap # no system GLib, libcroco, libxml2 (for bootstrap)
9217affe 10
1cb08a5e 11%ifnarch %{ix86} %{x8664} %{arm} hppa ppc s390 s390x
fac9633f 12%undefine with_dotnet
13%endif
ceedf4ce
ER
14%ifarch i386
15# plain i386 is not supported; mono uses cmpxchg/xadd which require i486
16%undefine with_dotnet
17%endif
b069f77e
JB
18%if %{with javac}
19%undefine with_gcj
20%endif
5c7ab0ff
JB
21%if %{without java}
22%undefine with_gcj
23%undefine with_javac
24%endif
9217affe 25
7e71e93c 26%define build_java %{?with_gcj:1}%{!?with_gcj:%{?with_javac:1}%{!?with_javac:0}}
5c7ab0ff 27%define build_javaexe %{?with_gcj:1}%{!?with_gcj:0}
a04d6a92 28Summary: Utilties for program national language support
efd5fd2d
ER
29Summary(de.UTF-8): Utilities zum Programmieren von nationaler Sprachunterstützung
30Summary(es.UTF-8): Utilitarios para el programa de soporte a lenguas locales
31Summary(fr.UTF-8): Utilitaires pour le support de la langue nationnalepar les programmes
32Summary(ja.UTF-8): マルチリンガルメッセージを生成するためのGNU ライブラリ/ユーティリティ
33Summary(pl.UTF-8): Narzędzia dla programów ze wsparciem dla języków narodowych
34Summary(pt_BR.UTF-8): Utilitários para o programa de suporte de línguas locais
35Summary(ru.UTF-8): Библиотеки и утилиты для поддержки национальных языков
36Summary(tr.UTF-8): Desteği için kitaplık ve araçlar
37Summary(uk.UTF-8): Бібліотеки та утиліти для підтримки національних мов
a04d6a92 38Name: gettext
db1b2e0b 39Version: 0.21
43ae1ac3 40Release: 1
70682b5e 41License: LGPL v2.1+ (libintl), GPL v3+ (tools)
a04d6a92 42Group: Development/Tools
1e4bffdb 43Source0: https://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.xz
db1b2e0b 44# Source0-md5: 40996bbaf7d1356d3c22e33a8b255b31
0b9000b2 45Patch0: %{name}-info.patch
7e71e93c 46Patch1: %{name}-killkillkill.patch
5c7ab0ff 47Patch3: %{name}-libdir.patch
49b55f60 48URL: http://www.gnu.org/software/gettext/
07b021f1 49BuildRequires: acl-devel
1cb08a5e 50BuildRequires: autoconf >= 2.63
46a710c8 51BuildRequires: automake >= 1:1.13
5c7ab0ff 52%{?with_gcj:BuildRequires: gcc-java >= 3.0}
8c47425b 53%{!?with_bootstrap:BuildRequires: glib2-devel >= 2.0}
c1494003 54%if %{build_java}
55BuildRequires: jar
56%endif
1cb08a5e 57%{?with_javac:BuildRequires: jdk >= 1.6}
7e731dbc 58%{!?with_bootstrap:BuildRequires: libcroco-devel >= 0.6.1}
1cb08a5e 59%if "%{cc_version}" >= "4.2"
8037c279 60BuildRequires: libgomp-devel
494a63a8 61%endif
7e71e93c 62%{?with_asprintf:BuildRequires: libstdc++-devel}
46a710c8 63BuildRequires: libtool >= 2:2
07b021f1 64BuildRequires: libunistring-devel
1cb08a5e 65%{!?with_bootstrap:BuildRequires: libxml2-devel}
e037fe85 66%{?with_dotnet:BuildRequires: mono-csharp}
07257a82 67BuildRequires: ncurses-devel
e0db4c0c 68BuildRequires: rpmbuild(macros) >= 1.453
d97ea26d 69BuildRequires: sed >= 4.0
ea937134 70BuildRequires: tar >= 1:1.22
514889a3 71BuildRequires: texinfo
7e71e93c 72%{?with_xemacs:BuildRequires: xemacs}
1cb08a5e 73BuildRequires: xz
a0d165a9 74Obsoletes: gettext-base
e0475093 75Conflicts: intltool < 0.28
75ccf444 76BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
e69a4abf 77
04883e6a 78# adjust -f when needed (e.g. 0.18.3.x used ABI 0.18.3, 0.19.5.x uses full version)
1cb08a5e 79%define intabi %(echo %{version} | cut -d. -f1-3)
04883e6a 80# similarly for its data
025b535b 81%define dataver %(echo %{version} | cut -d. -f1-3)
f1302f2c 82
e69a4abf 83%description
0d7e90e9 84The GNU gettext package provides a set of tools and documentation for
85producing multi-lingual messages in programs. Tools include a set of
86conventions about how programs should be written to support message
87catalogs, a directory and file naming organization for the message
88catalogs, a runtime library which supports the retrieval of translated
89messages, and stand-alone programs for handling the translatable and
90the already translated strings. Gettext provides an easy to use
91library and tools for creating, using, and modifying natural language
92catalogs and is a powerful and simple method for internationalizing
93programs.
e69a4abf 94
a64a3574
JR
95%description -l de.UTF-8
96Die gettext-Library enthält eine einfach anzuwendende Library und
97Tools zum Erstellen, Verwenden und Ändern von
98natürlichsprachigen-Kataloge. Es ist ein einfaches und
99leistungsfähiges Verfahren zum Lokalisieren von Programmen.
100
101%description -l es.UTF-8
102La biblioteca gettext nos ofrece una biblioteca fácil de usar y
103herramientas para creación, uso y modificación de catálogos de
104lenguaje natural. Es un potente y sencillo método de
105internacionalización de programas.
106
107%description -l fr.UTF-8
108La librarie gettext fournit des outils et une librairie simple à
109utiliser pour manipuler, créer, et modifier des catalogues de langage
110naturel. C'est une méthode simple et puissante pour internationnaliser
9e88acc1 111les programmes.
e69a4abf 112
a64a3574 113%description -l ja.UTF-8
0d7e90e9 114GNU gettext
a64a3574
JR
115パッケージはプログラム中でマルチリンガルメッセージを生成する
116ためのツールと文書を供給する。ツールはメッセージカタログをサポートするために
117プログラムがどのように書かれるべきかの申し合わせと、メッセージカタログのための
118ディレクトリとファイル名の組織化と、翻訳されたメッセージの埋め合わせを
119サポートするためのランタイムライブラリと、翻訳可能でかつすでに翻訳された文字列
120を取り扱う独立したプログラムを含んでいる。gettext
121は簡単に使えるライブラリ
122と自然言語のカタログを生成、使用、修正するツールと、国際化プログラム
123のための強力かつシンプルな方法を供給する。
124
125%description -l pl.UTF-8
126Pakiet gettext dostarcza narzędzi do tworzenia, używania i modyfikacji
127katalogów języków narodowych. To jest prosta i wydajna metoda
128lokalizacji (internacjonalizacji) programów.
129
130%description -l pt_BR.UTF-8
131A biblioteca gettext oferece uma biblioteca fácil de usar e
132ferramentas para criação, uso e modificação de catálogos de linguagem
133natural. Ele é um poderoso e simples método de internacionalização de
8d022b73 134programas.
135
a64a3574
JR
136%description -l ru.UTF-8
137Пакет gettext содержит библиотеку и простые в использовании
138инструменты для создания, использования и модификации каталогов
139национальных языков. Это простой и мощный метод для
140интернационализации программ.
0d7e90e9 141
a64a3574
JR
142%description -l tr.UTF-8
143gettext, yerel dil desteğinde kullanılan katalogları değiştirebilmek
144için, kolayca kullanılabilen kitaplık ve araçları sağlar. Bu,
145programları uluslararasılaştırmak için sıkça başvurulan, kuvvetli bir
146yöntemdir.
e69a4abf 147
a64a3574
JR
148%description -l uk.UTF-8
149Пакет gettext містить бібліотеку та прості у використанні інструменти
150для створення, використання та модифікації каталогів національних мов.
151Це простий та потужний метод для інтернаціоналізації програм.
0d7e90e9 152
52e0cb41
JB
153%package tools
154Summary: Utilties for program national language support
155Summary(de.UTF-8): Utilities zum Programmieren von nationaler Sprachunterstützung
156Summary(fr.UTF-8): Utilitaires pour le support de la langue nationnalepar les programmes
157Summary(pl.UTF-8): Narzędzia dla programów ze wsparciem dla języków narodowych
158Summary(tr.UTF-8): Desteği için kitaplık ve araçlar
159License: GPL v3+
160Group: Development/Tools
161Requires(post,postun): /sbin/ldconfig
162Requires: %{name}-libs = %{version}-%{release}
163Requires: iconv
164Conflicts: autoconf < 2.52
98fa73ab 165Conflicts: rpm-build-macros < 1.744
52e0cb41
JB
166
167%description tools
168This package contains tools for creating and modifying natural
169language catalogs.
170
171%description tools -l pl.UTF-8
172Ten pakiet zawiera narzędzia do tworzenia i modyfikowania katalogów
173z obsługą języków naturalnych.
174
2e7421f9
ER
175%package demo
176Summary: Demo for gettext
177Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu gettext
178Group: Documentation
179Requires: %{name}-devel = %{version}-%{release}
180
181%description demo
52e0cb41 182Demonstrations and samples for gettext.
2e7421f9
ER
183
184%description demo -l pl.UTF-8
185Pliki demonstracyjne i przykłady dla pakietu gettext.
186
52e0cb41
JB
187%package libs
188Summary: Shared gettext utility libraries
189Summary(pl.UTF-8): Współdzielone biblioteki narzędziowe gettexta
190License: GPL v3+
191Group: Development/Libraries
07257a82
JB
192# relaxed to allow newer package from libtextstyle.spec
193Requires: libtextstyle >= %{version}-%{release}
52e0cb41
JB
194
195%description libs
196This package contains shared versions of gettext utility libraries
197(libgettextlib, libgettextsrc and libgettextpo).
198
199%description libs -l pl.UTF-8
200Ten pakiet zawiera współdzielone wersje bibliotek narzędziowych
201gettext (libgettextlib, libgettextsrc i libgettextpo).
202
22b12be3 203%package devel
52e0cb41
JB
204Summary: Development files for gettext libraries
205Summary(pl.UTF-8): Pliki programistyczne bibliotek gettexta
494a63a8 206License: GPL v3+
52e0cb41
JB
207Group: Development/Libraries
208Requires: %{name}-libs = %{version}-%{release}
07257a82
JB
209# relaxed to allow newer package from libtextstyle.spec
210Requires: libtextstyle-devel >= %{version}-%{release}
22b12be3
JR
211
212%description devel
52e0cb41 213Development files for gettext libraries.
22b12be3 214
a64a3574 215%description devel -l pl.UTF-8
52e0cb41 216Pliki programistyczne bibliotek gettexta.
514889a3 217
b438f025
JB
218%package static
219Summary: Static gettext utility libraries
efd5fd2d 220Summary(pl.UTF-8): Statyczne biblioteki narzędziowe gettext
494a63a8 221License: GPL v3+
b438f025 222Group: Development/Libraries
a8d3b420 223Requires: %{name}-devel = %{version}-%{release}
b438f025
JB
224
225%description static
226This package contains static versions of gettext utility libraries
227(libgettextlib, libgettextsrc and libgettextpo).
228
a64a3574
JR
229%description static -l pl.UTF-8
230Ten pakiet zawiera statyczne wersje bibliotek narzędziowych gettext
b438f025
JB
231(libgettextlib, libgettextsrc i libgettextpo).
232
233%package -n libasprintf
234Summary: GNU libasprintf - automatic formatted output to strings in C++
efd5fd2d 235Summary(pl.UTF-8): GNU libasprintf - automatyczne formatowanie wyjścia do łańcuchów w C++
70682b5e 236License: LGPL v2.1+
b438f025
JB
237Group: Libraries
238
239%description -n libasprintf
240This package makes the C formatted output routines (`fprintf' et al.)
241usable in C++ programs, for use with the `<string>' strings and the
242`<iostream>' streams.
243
a64a3574
JR
244%description -n libasprintf -l pl.UTF-8
245Ten pakiet czyni funkcje C formatujące wyjście (fprintf i inne)
246używalnymi w programach w C++, z łańcuchami <string> i strumieniami
b438f025
JB
247<iostream>.
248
249%package -n libasprintf-devel
250Summary: Header file and documentation for libasprintf
efd5fd2d 251Summary(pl.UTF-8): Plik nagłówkowy i dokumentacja dla libasprintf
70682b5e 252License: LGPL v2.1+
b438f025 253Group: Development/Libraries
a8d3b420 254Requires: libasprintf = %{version}-%{release}
b438f025
JB
255
256%description -n libasprintf-devel
257Header file and documentation for libasprintf.
258
a64a3574
JR
259%description -n libasprintf-devel -l pl.UTF-8
260Plik nagłówkowy i dokumentacja dla libasprintf.
b438f025
JB
261
262%package -n libasprintf-static
263Summary: Static libasprintf library
efd5fd2d 264Summary(pl.UTF-8): Statyczna biblioteka libasprintf
70682b5e 265License: LGPL v2.1+
b438f025 266Group: Development/Libraries
a8d3b420 267Requires: libasprintf-devel = %{version}-%{release}
b438f025
JB
268
269%description -n libasprintf-static
270Static libasprintf library.
271
a64a3574 272%description -n libasprintf-static -l pl.UTF-8
b438f025
JB
273Statyczna biblioteka libasprintf.
274
70682b5e
JB
275%package -n libtextstyle
276Summary: GNU libtextstyle - Text styling library
277Summary(pl.UTF-8): GNU libtextstyle - biblioteka do obsługi stylu tekstu
278License: GPL v3+
279
280%description -n libtextstyle
281This library provides an easy way to add styling to programs that
282produce output to a console or terminal emulator window.
283
284libtextstyle is for you if your application produces text that is more
285readable when it is accompanied with styling information, such as
286color, font attributes (weight, posture), or underlining.
287
288%description -n libtextstyle -l pl.UTF-8
289Ta biblioteka zapewnia łatwy sposób dodawania styli do programów
290produkujących wyjście na konsoli lub w oknie emulatora terminala.
291
292libtextstyle ma zastosowanie tam, gdzie aplikacja produkuje tekst,
293który jest bardziej czytelny, jeśli jest wzbogacony o informacje o
294stylu, takie jak kolor, atrybuty czcionek (grubość, nachylenie) lub
295podkreślenie.
296
297%package -n libtextstyle-devel
298Summary: Header files for libtextstyle library
299Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libtextstyle
300License: GPL v3+
301Group: Development/Libraries
302Requires: libtextstyle = %{version}-%{release}
303Requires: ncurses-devel
304
305%description -n libtextstyle-devel
306Header files for libtextstyle library.
307
308%description -n libtextstyle-devel -l pl.UTF-8
309Pliki nagłówkowe biblioteki libtextstyle.
310
311%package -n libtextstyle-static
312Summary: Static libtextstyle library
313Summary(pl.UTF-8): Statyczna biblioteka libtextstyle
314License: GPL v3+
315Group: Development/Libraries
316Requires: libtextstyle-devel = %{version}-%{release}
317
318%description -n libtextstyle-static
319Static libtextstyle library.
320
321%description -n libtextstyle-static -l pl.UTF-8
322Statyczna biblioteka libtextstyle.
323
5610ebc0
JB
324%package java
325Summary: Runtime classes for Java programs internationalization
efd5fd2d 326Summary(pl.UTF-8): Klasy do uruchamiania umiędzynarodowionych programów w Javie
70682b5e 327License: LGPL v2.1+
5610ebc0 328Group: Development/Languages/Java
a8d3b420 329Requires: %{name} = %{version}-%{release}
5610ebc0
JB
330
331%description java
332Runtime classes for Java programs internationalization.
333
a64a3574
JR
334%description java -l pl.UTF-8
335Klasy do uruchamiania umiędzynarodowionych programów w Javie.
5610ebc0 336
477b7b4d 337%package java-devel
5610ebc0 338Summary: Development classes for Java programs internationalization
efd5fd2d 339Summary(pl.UTF-8): Klasy do umiędzynarodowiania programów w Javie dla programistów
494a63a8 340License: GPL v3+
477b7b4d 341Group: Development/Tools
a8d3b420 342Requires: %{name}-devel = %{version}-%{release}
477b7b4d
MM
343
344%description java-devel
5610ebc0 345Development classes for Java programs internationalization.
477b7b4d 346
a64a3574
JR
347%description java-devel -l pl.UTF-8
348Klasy do umiędzynarodowiania programów w Javie dla programistów.
477b7b4d 349
e2f3a7d9
AM
350%package -n xemacs-po-mode-pkg
351Summary: Xemacs PO-mode
efd5fd2d
ER
352Summary(es.UTF-8): Facilita la edición de archivos PO (internacionalización) con emacs
353Summary(pl.UTF-8): Tryb PO dla Xemacsa
354Summary(pt_BR.UTF-8): Facilita a edição de arquivos PO (internacionalização) com o emacs
494a63a8 355License: GPL v2+
e2f3a7d9 356Group: Applications/Editors/Emacs
e2f3a7d9
AM
357Requires: xemacs
358
359%description -n xemacs-po-mode-pkg
360Emacs PO-mode.
361
a64a3574
JR
362%description -n xemacs-po-mode-pkg -l es.UTF-8
363Este paquete suministra las herramientas para ayudar en la edición de
8d022b73 364archivos PO, como documentado en el manual del usuario del GNU
a64a3574
JR
365gettext. Mira este manual para la documentación de uso, que no se
366incluye aquí.
8d022b73 367
a64a3574 368%description -n xemacs-po-mode-pkg -l pl.UTF-8
e2f3a7d9
AM
369Tryb edycji PO dla emacsa.
370
a64a3574
JR
371%description -n xemacs-po-mode-pkg -l pt_BR.UTF-8
372Este pacote provê as ferramentas para ajudar na edição de arquivos PO,
373como documentado no manual do usuário do GNU gettext. Veja este manual
374para a documentação de uso, a qual não é incluída aqui.
8d022b73 375
477b7b4d
MM
376%package autopoint
377Summary: gettextize replacement
efd5fd2d 378Summary(pl.UTF-8): Zamiennik gettextize
494a63a8 379License: GPL v3+
477b7b4d
MM
380Group: Development/Tools
381Requires: %{name}-devel >= 0.10.35
633dfabf 382Requires: xz
477b7b4d
MM
383
384%description autopoint
385The `autopoint' program copies standard gettext infrastructure files
f408a996 386into a source package. It extracts from a macro call of the form
477b7b4d
MM
387`AM_GNU_GETTEXT_VERSION(VERSION)', found in the package's
388`configure.in' or `configure.ac' file, the gettext version used by the
389package, and copies the infrastructure files belonging to this version
390into the package.
391
a64a3574 392%description autopoint -l pl.UTF-8
477b7b4d 393Program autopoint kopiuje standardowe pliki infrastruktury gettexta do
a64a3574 394pakietu źródłowego. Wyciąga użytą wersję gettexta z wywołania makra w
477b7b4d 395postaci AM_GNU_GETTEXT_VERSION(VERSION) w pliku configure.in lub
a64a3574 396configure.ac i kopiuje do pakietu pliki infrastruktury należące do tej
477b7b4d
MM
397wersji.
398
fac9633f 399%package -n dotnet-gettext
400Summary: GNU gettext for C#
efd5fd2d 401Summary(pl.UTF-8): GNU gettext dla C#
70682b5e 402License: LGPL v2.1+ (GNU.Gettext library), GPL v3+ (tools)
fac9633f 403Group: Development/Tools
404
405%description -n dotnet-gettext
406GNU gettext for C#.
407
a64a3574 408%description -n dotnet-gettext -l pl.UTF-8
fac9633f 409GNU gettext dla C#.
410
e69a4abf 411%prep
412%setup -q
494a63a8 413%patch0 -p1
c18823b2 414%patch1 -p1
5c7ab0ff 415%patch3 -p1
46a710c8
JB
416
417%{__sed} -i \
418 -e 's@m4_esyscmd(\[build-aux/git-version-gen \.tarball-version\])@[%{version}]@' \
419 configure.ac
420%{__sed} -i \
421 -e 's@m4_esyscmd(\[\.\./build-aux/git-version-gen \.\./\.tarball-version\])@[%{version}]@' \
422 gettext-runtime/configure.ac \
423 gettext-tools/configure.ac
e69a4abf 424
1cb08a5e
JB
425%if %{without bootstrap}
426%{__sed} -i -e '/gl_LIBCROCO\|gl_LIBGLIB\|gl_LIBXML/s/(\[yes\])//' libtextstyle/gnulib-m4/gnulib-comp.m4
427%endif
428
e69a4abf 429%build
c1f6fb1a 430cd gettext-runtime
9ddfeda0 431%{__libtoolize}
c1f6fb1a 432%{__aclocal} -I m4 -I ../m4 -I gnulib-m4
1f148f93 433%{__autoconf}
503b3e73 434%{__autoheader}
1f148f93 435%{__automake}
503b3e73 436cd libasprintf
c1f6fb1a 437%{__aclocal} -I ../../m4 -I ../m4 -I gnulib-m4
503b3e73
JB
438%{__autoconf}
439%{__autoheader}
440%{__automake}
1cb08a5e
JB
441cd ../../libtextstyle
442%{__libtoolize}
443%{__aclocal} -I m4 -I gnulib-m4
444%{__autoconf}
445%{__autoheader}
446%{__automake}
447cd ../gettext-tools
f2fef0e8 448%{__aclocal} -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4
0b9000b2 449%{__autoconf}
503b3e73 450%{__autoheader}
0b9000b2 451%{__automake}
1cb08a5e
JB
452cd examples
453%{__aclocal} -I ../../gettext-runtime/m4 -I ../../m4
454%{__autoconf}
455%{__automake}
456cd ../..
c1f6fb1a 457%{__aclocal} -I m4
925984fb
JB
458%{__autoconf}
459%{__automake}
6d2d24f7 460%configure \
5c7ab0ff 461 %{!?with_gcj:GCJ=none} \
7e71e93c 462 %{?with_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \
90b2dc65 463 %{!?with_xemacs:--without-emacs} \
5c7ab0ff
JB
464 --enable-csharp=%{?with_dotnet:mono}%{!?with_dotnet:no} \
465%if !%{build_java}
466 --disable-java \
467%endif
514889a3 468 --enable-nls \
1cb08a5e 469 --disable-silent-rules \
b069f77e 470 --without-bzip2 \
f2fef0e8 471 --without-git \
7e731dbc 472 --without-included-gettext \
b069f77e 473 --with-xz
5034552a
AM
474%{__make} \
475 GMSGFMT=`pwd`/gettext-tools/src/msgfmt
e69a4abf 476
225257d7 477# msgfmt has been built, so now we can update pl.gmos
51f9c57f
JB
478%{__make} pl.gmo -C gettext-runtime/po \
479 GMSGFMT=`pwd`/gettext-tools/src/msgfmt
225257d7
JB
480%{__make} pl.gmo -C gettext-tools/po \
481 GMSGFMT=`pwd`/gettext-tools/src/msgfmt
482
7e71e93c
JB
483%if %{with xemacs}
484cd gettext-tools/misc
485EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el
486%endif
e2f3a7d9 487
e69a4abf 488%install
489rm -rf $RPM_BUILD_ROOT
bf7334d7 490install -d $RPM_BUILD_ROOT{/bin,%{_datadir}/gettext/its}
f5c43e32 491
7e71e93c 492%{__make} install \
2e7421f9
ER
493 examplesdir=%{_examplesdir}/%{name}-%{version} \
494 examplesbuildauxdir=%{_examplesdir}/%{name}-%{version}/build-aux \
7e71e93c 495 DESTDIR=$RPM_BUILD_ROOT
85bb6f82 496
1cb08a5e 497%{__mv} $RPM_BUILD_ROOT%{_bindir}/{,n}gettext $RPM_BUILD_ROOT/bin
477b7b4d 498
5610ebc0 499# these static libs are removed in install-exec-clean
2e7421f9 500cp -a gettext-tools/gnulib-lib/.libs/libgettextlib.a \
5610ebc0 501 gettext-tools/src/.libs/libgettextsrc.a $RPM_BUILD_ROOT%{_libdir}
4252c7f8 502
f80b2eb3
ŁK
503%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gettext
504%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libasprintf
1cb08a5e 505%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libtextstyle
f80b2eb3
ŁK
506%{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
507
0b9000b2 508%find_lang %{name}-runtime
509%find_lang %{name}-tools
a04d6a92 510
3f6e57e9
JB
511%clean
512rm -rf $RPM_BUILD_ROOT
513
8bf617fe
ER
514%post tools -p /sbin/postshell
515-/usr/sbin/fix-info-dir -c %{_infodir}
a04d6a92 516
8bf617fe
ER
517%postun tools -p /sbin/postshell
518-/usr/sbin/fix-info-dir -c %{_infodir}
a04d6a92 519
52e0cb41
JB
520%post libs -p /sbin/ldconfig
521%postun libs -p /sbin/ldconfig
522
1cb08a5e
JB
523%post devel -p /sbin/postshell
524-/usr/sbin/fix-info-dir -c %{_infodir}
525
526%postun devel -p /sbin/postshell
527-/usr/sbin/fix-info-dir -c %{_infodir}
528
b438f025
JB
529%post -n libasprintf -p /sbin/ldconfig
530%postun -n libasprintf -p /sbin/ldconfig
531
c1f6fb1a 532%post -n libasprintf-devel -p /sbin/postshell
27802fd9 533-/usr/sbin/fix-info-dir -c %{_infodir}
b438f025 534
c1f6fb1a 535%postun -n libasprintf-devel -p /sbin/postshell
27802fd9 536-/usr/sbin/fix-info-dir -c %{_infodir}
b438f025 537
70682b5e
JB
538%post -n libtextstyle -p /sbin/ldconfig
539%postun -n libtextstyle -p /sbin/ldconfig
540
541%post -n libtextstyle-devel -p /sbin/postshell
542-/usr/sbin/fix-info-dir -c %{_infodir}
543
544%postun -n libtextstyle-devel -p /sbin/postshell
545-/usr/sbin/fix-info-dir -c %{_infodir}
546
0b9000b2 547%files -f %{name}-runtime.lang
fc2477e5 548%defattr(644,root,root,755)
c1f6fb1a
JB
549%attr(755,root,root) /bin/gettext
550%attr(755,root,root) /bin/ngettext
7e71e93c 551%attr(755,root,root) %{_bindir}/envsubst
91770e4e 552%attr(755,root,root) %{_bindir}/gettext.sh
7e71e93c 553%{_mandir}/man1/envsubst.1*
477b7b4d
MM
554%{_mandir}/man1/gettext.1*
555%{_mandir}/man1/ngettext.1*
fac9633f 556%dir %{_libdir}/gettext
5610ebc0 557%dir %{_datadir}/gettext
22b12be3 558
bf204224 559%files tools
22b12be3 560%defattr(644,root,root,755)
5610ebc0 561%doc AUTHORS ChangeLog NEWS README THANKS
c1f6fb1a
JB
562%attr(755,root,root) %{_bindir}/gettextize
563%attr(755,root,root) %{_bindir}/msg*
564%attr(755,root,root) %{_bindir}/recode-sr-latin
565%attr(755,root,root) %{_bindir}/xgettext
b438f025 566%attr(755,root,root) %{_libdir}/preloadable_libintl.so
12ba4a66 567%attr(755,root,root) %{_libdir}/gettext/cldr-plurals
f3086ae6
JB
568%attr(755,root,root) %{_libdir}/gettext/hostname
569%attr(755,root,root) %{_libdir}/gettext/project-id
570%attr(755,root,root) %{_libdir}/gettext/urlget
571%attr(755,root,root) %{_libdir}/gettext/user-email
b069f77e 572%{_aclocaldir}/gettext.m4
1cb08a5e 573%{_aclocaldir}/host-cpu-c-abi.m4
b069f77e 574%{_aclocaldir}/iconv.m4
b069f77e 575%{_aclocaldir}/intlmacosx.m4
b069f77e
JB
576%{_aclocaldir}/lib-ld.m4
577%{_aclocaldir}/lib-link.m4
578%{_aclocaldir}/lib-prefix.m4
b069f77e
JB
579%{_aclocaldir}/nls.m4
580%{_aclocaldir}/po.m4
b069f77e 581%{_aclocaldir}/progtest.m4
1cb08a5e 582%{_infodir}/gettext.info*
b438f025
JB
583%{_mandir}/man1/gettextize.1*
584%{_mandir}/man1/msg*.1*
48182994 585%{_mandir}/man1/recode-sr-latin.1*
b438f025 586%{_mandir}/man1/xgettext.1*
b069f77e
JB
587%{_mandir}/man3/bind_textdomain_codeset.3*
588%{_mandir}/man3/bindtextdomain.3*
589%{_mandir}/man3/dcgettext.3*
590%{_mandir}/man3/dcngettext.3*
591%{_mandir}/man3/dgettext.3*
592%{_mandir}/man3/dngettext.3*
593%{_mandir}/man3/gettext.3*
594%{_mandir}/man3/ngettext.3*
595%{_mandir}/man3/textdomain.3*
477b7b4d
MM
596%{_datadir}/gettext/ABOUT-NLS
597%attr(755,root,root) %{_datadir}/gettext/config.rpath
598%{_datadir}/gettext/gettext.h
bf7334d7 599%dir %{_datadir}/gettext/its
477b7b4d 600%{_datadir}/gettext/msgunfmt.tcl
477b7b4d
MM
601%{_datadir}/gettext/po
602%dir %{_datadir}/gettext/projects
603%{_datadir}/gettext/projects/index
604%attr(755,root,root) %{_datadir}/gettext/projects/team-address
605%dir %{_datadir}/gettext/projects/GNOME
606%{_datadir}/gettext/projects/GNOME/teams.*
607%attr(755,root,root) %{_datadir}/gettext/projects/GNOME/team-address
608%attr(755,root,root) %{_datadir}/gettext/projects/GNOME/trigger
609%dir %{_datadir}/gettext/projects/KDE
610%{_datadir}/gettext/projects/KDE/teams.*
611%attr(755,root,root) %{_datadir}/gettext/projects/KDE/team-address
612%attr(755,root,root) %{_datadir}/gettext/projects/KDE/trigger
613%dir %{_datadir}/gettext/projects/TP
614%{_datadir}/gettext/projects/TP/teams.*
615%attr(755,root,root) %{_datadir}/gettext/projects/TP/team-address
616%attr(755,root,root) %{_datadir}/gettext/projects/TP/trigger
48182994 617%{_datadir}/gettext/styles
04883e6a
JB
618%dir %{_datadir}/gettext-%{dataver}
619%{_datadir}/gettext-%{dataver}/its
b438f025 620
52e0cb41
JB
621%files demo
622%defattr(644,root,root,755)
623%{_examplesdir}/%{name}-%{version}
624
bf204224 625%files libs -f %{name}-tools.lang
52e0cb41 626%defattr(644,root,root,755)
f1302f2c
JB
627%attr(755,root,root) %{_libdir}/libgettextlib-%{intabi}.so
628%attr(755,root,root) %{_libdir}/libgettextsrc-%{intabi}.so
52e0cb41
JB
629%attr(755,root,root) %{_libdir}/libgettextpo.so.*.*.*
630%attr(755,root,root) %ghost %{_libdir}/libgettextpo.so.0
631
632%files devel
633%defattr(644,root,root,755)
634%attr(755,root,root) %{_libdir}/libgettextlib.so
635%attr(755,root,root) %{_libdir}/libgettextsrc.so
636%attr(755,root,root) %{_libdir}/libgettextpo.so
637%{_libdir}/libgettextlib.la
638%{_libdir}/libgettextsrc.la
639%{_libdir}/libgettextpo.la
640%{_includedir}/gettext-po.h
641
b438f025
JB
642%files static
643%defattr(644,root,root,755)
52e0cb41
JB
644%{_libdir}/libgettextlib.a
645%{_libdir}/libgettextsrc.a
646%{_libdir}/libgettextpo.a
b438f025 647
7e71e93c 648%if %{with asprintf}
b438f025
JB
649%files -n libasprintf
650%defattr(644,root,root,755)
651%doc gettext-runtime/libasprintf/{AUTHORS,ChangeLog,README}
652%attr(755,root,root) %{_libdir}/libasprintf.so.*.*.*
667db4dd 653%attr(755,root,root) %ghost %{_libdir}/libasprintf.so.0
b438f025
JB
654
655%files -n libasprintf-devel
656%defattr(644,root,root,755)
657%attr(755,root,root) %{_libdir}/libasprintf.so
dfc7273c 658%{_libdir}/libasprintf.la
b438f025
JB
659%{_includedir}/autosprintf.h
660%{_infodir}/autosprintf.info*
661
662%files -n libasprintf-static
663%defattr(644,root,root,755)
664%{_libdir}/libasprintf.a
0fae75f7 665%endif
e2f3a7d9 666
70682b5e
JB
667%files -n libtextstyle
668%defattr(644,root,root,755)
669%doc libtextstyle/{AUTHORS,NEWS,README}
670%attr(755,root,root) %{_libdir}/libtextstyle.so.*.*.*
671%attr(755,root,root) %ghost %{_libdir}/libtextstyle.so.0
672
673%files -n libtextstyle-devel
674%defattr(644,root,root,755)
675%attr(755,root,root) %{_libdir}/libtextstyle.so
676%{_libdir}/libtextstyle.la
677%{_includedir}/textstyle.h
678%{_includedir}/textstyle
679%{_infodir}/libtextstyle.info*
680
681%files -n libtextstyle-static
682%defattr(644,root,root,755)
683%{_libdir}/libtextstyle.a
684
5ad5427b 685%if %{build_java}
5610ebc0
JB
686%files java
687%defattr(644,root,root,755)
688%{_datadir}/gettext/libintl.jar
689
477b7b4d
MM
690%files java-devel
691%defattr(644,root,root,755)
5610ebc0 692%doc gettext-runtime/intl-java/javadoc2
5c7ab0ff
JB
693%if %{build_javaexe}
694%attr(755,root,root) %{_libdir}/gettext/gnu.gettext.DumpResource
695%attr(755,root,root) %{_libdir}/gettext/gnu.gettext.GetURL
696%else
b069f77e 697%{_datadir}/gettext/gettext.jar
5c7ab0ff 698%endif
48182994 699%{_datadir}/gettext/javaversion.class
477b7b4d
MM
700%endif
701
7e71e93c 702%if %{with xemacs}
477b7b4d
MM
703%files -n xemacs-po-mode-pkg
704%defattr(644,root,root,755)
705%dir %{_datadir}/xemacs-packages/lisp/po-mode
706%{_datadir}/xemacs-packages/lisp/po-mode/*.elc
707%endif
708
709%files autopoint
710%defattr(644,root,root,755)
711%attr(755,root,root) %{_bindir}/autopoint
b069f77e 712%{_datadir}/gettext/archive.dir.tar.xz
7a725ce9 713%{_mandir}/man1/autopoint.1*
fac9633f 714
18d689cd 715%if %{with dotnet}
fac9633f 716%files -n dotnet-gettext
717%defattr(644,root,root,755)
718%{_libdir}/GNU.Gettext.dll
719%{_libdir}/gettext/msgfmt.net.exe
720%{_libdir}/gettext/msgunfmt.net.exe
18d689cd 721%endif
This page took 0.201578 seconds and 4 git commands to generate.