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