]>
Commit | Line | Data |
---|---|---|
477b7b4d MM |
1 | # |
2 | # Conditional build: | |
7e71e93c JB |
3 | %bcond_without asprintf # without libasprintf C++ library |
4 | %bcond_without xemacs # without po-mode for xemacs | |
5da74ad2 | 5 | %bcond_without gcj # with Java support by gcj (preferred over javac) |
7e71e93c | 6 | %bcond_with javac # with Java support by some javac |
fac9633f | 7 | %bcond_without dotnet # without .NET support |
8c47425b | 8 | %bcond_with bootstrap # use system GLib and libcroco |
477b7b4d | 9 | # |
9217affe | 10 | |
c5b96268 | 11 | %{?with_dotnet:%include /usr/lib/rpm/macros.mono} |
fac9633f | 12 | |
13 | %ifnarch %{ix86} %{x8664} arm hppa ppc s390 s390x | |
14 | %undefine with_dotnet | |
15 | %endif | |
ceedf4ce ER |
16 | %ifarch i386 |
17 | # plain i386 is not supported; mono uses cmpxchg/xadd which require i486 | |
18 | %undefine with_dotnet | |
19 | %endif | |
fac9633f | 20 | |
7e71e93c | 21 | %undefine with_xemacs |
9217affe | 22 | |
7e71e93c | 23 | %define build_java %{?with_gcj:1}%{!?with_gcj:%{?with_javac:1}%{!?with_javac:0}} |
a04d6a92 | 24 | Summary: Utilties for program national language support |
efd5fd2d ER |
25 | Summary(de.UTF-8): Utilities zum Programmieren von nationaler Sprachunterstützung |
26 | Summary(es.UTF-8): Utilitarios para el programa de soporte a lenguas locales | |
27 | Summary(fr.UTF-8): Utilitaires pour le support de la langue nationnalepar les programmes | |
28 | Summary(ja.UTF-8): マルチリンガルメッセージを生成するためのGNU ライブラリ/ユーティリティ | |
29 | Summary(pl.UTF-8): Narzędzia dla programów ze wsparciem dla języków narodowych | |
30 | Summary(pt_BR.UTF-8): Utilitários para o programa de suporte de línguas locais | |
31 | Summary(ru.UTF-8): Библиотеки и утилиты для поддержки национальных языков | |
32 | Summary(tr.UTF-8): Desteği için kitaplık ve araçlar | |
33 | Summary(uk.UTF-8): Бібліотеки та утиліти для підтримки національних мов | |
a04d6a92 | 34 | Name: gettext |
faea2b6e | 35 | Version: 0.17 |
a080f40a | 36 | Release: 3 |
494a63a8 | 37 | License: LGPL v2+ (libintl), GPL v3+ (tools) |
a04d6a92 | 38 | Group: Development/Tools |
dfa67f00 | 39 | Source0: http://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz |
faea2b6e | 40 | # Source0-md5: 58a2bc6d39c0ba57823034d55d65d606 |
0b9000b2 | 41 | Patch0: %{name}-info.patch |
7e71e93c | 42 | Patch1: %{name}-killkillkill.patch |
23df42a0 JB |
43 | Patch2: %{name}-pl.po-update.patch |
44 | Patch3: %{name}-no_docs.patch | |
494a63a8 | 45 | Patch4: %{name}-libintl_by_gcj.patch |
8a7f15de | 46 | Patch5: %{name}-removed_macros.patch |
49b55f60 | 47 | URL: http://www.gnu.org/software/gettext/ |
494a63a8 | 48 | BuildRequires: autoconf >= 2.60 |
d6e080d4 | 49 | BuildRequires: automake >= 1:1.10 |
7e71e93c | 50 | %{?with_gcj:BuildRequires: gcj >= 3.0} |
8c47425b | 51 | %{!?with_bootstrap:BuildRequires: glib2-devel >= 2.0} |
7e71e93c | 52 | %{?with_javac:BuildRequires: jdk >= 1.1} |
7e731dbc | 53 | %{!?with_bootstrap:BuildRequires: libcroco-devel >= 0.6.1} |
e0db4c0c | 54 | %if "%(echo %{cc_version} | grep -q '^4.[2-9]'; echo $?)" == "0" |
8037c279 | 55 | BuildRequires: libgomp-devel |
494a63a8 | 56 | %endif |
7e71e93c | 57 | %{?with_asprintf:BuildRequires: libstdc++-devel} |
225257d7 | 58 | BuildRequires: libtool >= 1:1.4.2-9 |
e037fe85 | 59 | %{?with_dotnet:BuildRequires: mono-csharp} |
e0db4c0c | 60 | BuildRequires: rpmbuild(macros) >= 1.453 |
514889a3 | 61 | BuildRequires: texinfo |
7e71e93c | 62 | %{?with_xemacs:BuildRequires: xemacs} |
a0d165a9 | 63 | Obsoletes: gettext-base |
e0475093 | 64 | Conflicts: intltool < 0.28 |
75ccf444 | 65 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e69a4abf | 66 | |
67 | %description | |
0d7e90e9 | 68 | The GNU gettext package provides a set of tools and documentation for |
69 | producing multi-lingual messages in programs. Tools include a set of | |
70 | conventions about how programs should be written to support message | |
71 | catalogs, a directory and file naming organization for the message | |
72 | catalogs, a runtime library which supports the retrieval of translated | |
73 | messages, and stand-alone programs for handling the translatable and | |
74 | the already translated strings. Gettext provides an easy to use | |
75 | library and tools for creating, using, and modifying natural language | |
76 | catalogs and is a powerful and simple method for internationalizing | |
77 | programs. | |
e69a4abf | 78 | |
a64a3574 JR |
79 | %description -l de.UTF-8 |
80 | Die gettext-Library enthält eine einfach anzuwendende Library und | |
81 | Tools zum Erstellen, Verwenden und Ändern von | |
82 | natürlichsprachigen-Kataloge. Es ist ein einfaches und | |
83 | leistungsfähiges Verfahren zum Lokalisieren von Programmen. | |
84 | ||
85 | %description -l es.UTF-8 | |
86 | La biblioteca gettext nos ofrece una biblioteca fácil de usar y | |
87 | herramientas para creación, uso y modificación de catálogos de | |
88 | lenguaje natural. Es un potente y sencillo método de | |
89 | internacionalización de programas. | |
90 | ||
91 | %description -l fr.UTF-8 | |
92 | La librarie gettext fournit des outils et une librairie simple à | |
93 | utiliser pour manipuler, créer, et modifier des catalogues de langage | |
94 | naturel. C'est une méthode simple et puissante pour internationnaliser | |
9e88acc1 | 95 | les programmes. |
e69a4abf | 96 | |
a64a3574 | 97 | %description -l ja.UTF-8 |
0d7e90e9 | 98 | GNU gettext |
a64a3574 JR |
99 | パッケージはプログラム中でマルチリンガルメッセージを生成する |
100 | ためのツールと文書を供給する。ツールはメッセージカタログをサポートするために | |
101 | プログラムがどのように書かれるべきかの申し合わせと、メッセージカタログのための | |
102 | ディレクトリとファイル名の組織化と、翻訳されたメッセージの埋め合わせを | |
103 | サポートするためのランタイムライブラリと、翻訳可能でかつすでに翻訳された文字列 | |
104 | を取り扱う独立したプログラムを含んでいる。gettext | |
105 | は簡単に使えるライブラリ | |
106 | と自然言語のカタログを生成、使用、修正するツールと、国際化プログラム | |
107 | のための強力かつシンプルな方法を供給する。 | |
108 | ||
109 | %description -l pl.UTF-8 | |
110 | Pakiet gettext dostarcza narzędzi do tworzenia, używania i modyfikacji | |
111 | katalogów języków narodowych. To jest prosta i wydajna metoda | |
112 | lokalizacji (internacjonalizacji) programów. | |
113 | ||
114 | %description -l pt_BR.UTF-8 | |
115 | A biblioteca gettext oferece uma biblioteca fácil de usar e | |
116 | ferramentas para criação, uso e modificação de catálogos de linguagem | |
117 | natural. Ele é um poderoso e simples método de internacionalização de | |
8d022b73 | 118 | programas. |
119 | ||
a64a3574 JR |
120 | %description -l ru.UTF-8 |
121 | Пакет gettext содержит библиотеку и простые в использовании | |
122 | инструменты для создания, использования и модификации каталогов | |
123 | национальных языков. Это простой и мощный метод для | |
124 | интернационализации программ. | |
0d7e90e9 | 125 | |
a64a3574 JR |
126 | %description -l tr.UTF-8 |
127 | gettext, yerel dil desteğinde kullanılan katalogları değiştirebilmek | |
128 | için, kolayca kullanılabilen kitaplık ve araçları sağlar. Bu, | |
129 | programları uluslararasılaştırmak için sıkça başvurulan, kuvvetli bir | |
130 | yöntemdir. | |
e69a4abf | 131 | |
a64a3574 JR |
132 | %description -l uk.UTF-8 |
133 | Пакет gettext містить бібліотеку та прості у використанні інструменти | |
134 | для створення, використання та модифікації каталогів національних мов. | |
135 | Це простий та потужний метод для інтернаціоналізації програм. | |
0d7e90e9 | 136 | |
22b12be3 JR |
137 | %package devel |
138 | Summary: Utilties for program national language support | |
efd5fd2d ER |
139 | Summary(de.UTF-8): Utilities zum Programmieren von nationaler Sprachunterstützung |
140 | Summary(fr.UTF-8): Utilitaires pour le support de la langue nationnalepar les programmes | |
141 | Summary(pl.UTF-8): Narzędzia dla programów ze wsparciem dla języków narodowych | |
142 | Summary(tr.UTF-8): Desteği için kitaplık ve araçlar | |
494a63a8 | 143 | License: GPL v3+ |
22b12be3 | 144 | Group: Development/Tools |
5610ebc0 | 145 | Requires(post,postun): /sbin/ldconfig |
a8d3b420 | 146 | Requires: %{name} = %{version}-%{release} |
de01f242 | 147 | Requires: iconv |
132f5218 | 148 | Conflicts: autoconf < 2.52 |
22b12be3 JR |
149 | |
150 | %description devel | |
9e88acc1 | 151 | The gettext library provides an easy to use library and tools for |
152 | creating, using, and modifying natural language catalogs. It is a | |
153 | powerfull and simple method for internationalizing programs. | |
22b12be3 | 154 | |
a64a3574 JR |
155 | %description devel -l pl.UTF-8 |
156 | Pakiet gettext dostarcza narzędzi do tworzenia, używania i modyfikacji | |
157 | katalogów języków narodowych. To jest prosta i wydajna metoda | |
158 | lokalizacji (internacjonalizacji) programów. | |
514889a3 | 159 | |
b438f025 JB |
160 | %package static |
161 | Summary: Static gettext utility libraries | |
efd5fd2d | 162 | Summary(pl.UTF-8): Statyczne biblioteki narzędziowe gettext |
494a63a8 | 163 | License: GPL v3+ |
b438f025 | 164 | Group: Development/Libraries |
a8d3b420 | 165 | Requires: %{name}-devel = %{version}-%{release} |
b438f025 JB |
166 | |
167 | %description static | |
168 | This package contains static versions of gettext utility libraries | |
169 | (libgettextlib, libgettextsrc and libgettextpo). | |
170 | ||
a64a3574 JR |
171 | %description static -l pl.UTF-8 |
172 | Ten pakiet zawiera statyczne wersje bibliotek narzędziowych gettext | |
b438f025 JB |
173 | (libgettextlib, libgettextsrc i libgettextpo). |
174 | ||
175 | %package -n libasprintf | |
176 | Summary: GNU libasprintf - automatic formatted output to strings in C++ | |
efd5fd2d | 177 | Summary(pl.UTF-8): GNU libasprintf - automatyczne formatowanie wyjścia do łańcuchów w C++ |
494a63a8 | 178 | License: LGPL v2+ |
b438f025 JB |
179 | Group: Libraries |
180 | ||
181 | %description -n libasprintf | |
182 | This package makes the C formatted output routines (`fprintf' et al.) | |
183 | usable in C++ programs, for use with the `<string>' strings and the | |
184 | `<iostream>' streams. | |
185 | ||
a64a3574 JR |
186 | %description -n libasprintf -l pl.UTF-8 |
187 | Ten pakiet czyni funkcje C formatujące wyjście (fprintf i inne) | |
188 | używalnymi w programach w C++, z łańcuchami <string> i strumieniami | |
b438f025 JB |
189 | <iostream>. |
190 | ||
191 | %package -n libasprintf-devel | |
192 | Summary: Header file and documentation for libasprintf | |
efd5fd2d | 193 | Summary(pl.UTF-8): Plik nagłówkowy i dokumentacja dla libasprintf |
494a63a8 | 194 | License: LGPL v2+ |
b438f025 | 195 | Group: Development/Libraries |
a8d3b420 | 196 | Requires: libasprintf = %{version}-%{release} |
b438f025 JB |
197 | |
198 | %description -n libasprintf-devel | |
199 | Header file and documentation for libasprintf. | |
200 | ||
a64a3574 JR |
201 | %description -n libasprintf-devel -l pl.UTF-8 |
202 | Plik nagłówkowy i dokumentacja dla libasprintf. | |
b438f025 JB |
203 | |
204 | %package -n libasprintf-static | |
205 | Summary: Static libasprintf library | |
efd5fd2d | 206 | Summary(pl.UTF-8): Statyczna biblioteka libasprintf |
494a63a8 | 207 | License: LGPL v2+ |
b438f025 | 208 | Group: Development/Libraries |
a8d3b420 | 209 | Requires: libasprintf-devel = %{version}-%{release} |
b438f025 JB |
210 | |
211 | %description -n libasprintf-static | |
212 | Static libasprintf library. | |
213 | ||
a64a3574 | 214 | %description -n libasprintf-static -l pl.UTF-8 |
b438f025 JB |
215 | Statyczna biblioteka libasprintf. |
216 | ||
5610ebc0 JB |
217 | %package java |
218 | Summary: Runtime classes for Java programs internationalization | |
efd5fd2d | 219 | Summary(pl.UTF-8): Klasy do uruchamiania umiędzynarodowionych programów w Javie |
494a63a8 | 220 | License: LGPL v2+ |
5610ebc0 | 221 | Group: Development/Languages/Java |
a8d3b420 | 222 | Requires: %{name} = %{version}-%{release} |
5610ebc0 JB |
223 | |
224 | %description java | |
225 | Runtime classes for Java programs internationalization. | |
226 | ||
a64a3574 JR |
227 | %description java -l pl.UTF-8 |
228 | Klasy do uruchamiania umiędzynarodowionych programów w Javie. | |
5610ebc0 | 229 | |
477b7b4d | 230 | %package java-devel |
5610ebc0 | 231 | Summary: Development classes for Java programs internationalization |
efd5fd2d | 232 | Summary(pl.UTF-8): Klasy do umiędzynarodowiania programów w Javie dla programistów |
494a63a8 | 233 | License: GPL v3+ |
477b7b4d | 234 | Group: Development/Tools |
a8d3b420 | 235 | Requires: %{name}-devel = %{version}-%{release} |
477b7b4d MM |
236 | |
237 | %description java-devel | |
5610ebc0 | 238 | Development classes for Java programs internationalization. |
477b7b4d | 239 | |
a64a3574 JR |
240 | %description java-devel -l pl.UTF-8 |
241 | Klasy do umiędzynarodowiania programów w Javie dla programistów. | |
477b7b4d | 242 | |
e2f3a7d9 AM |
243 | %package -n xemacs-po-mode-pkg |
244 | Summary: Xemacs PO-mode | |
efd5fd2d ER |
245 | Summary(es.UTF-8): Facilita la edición de archivos PO (internacionalización) con emacs |
246 | Summary(pl.UTF-8): Tryb PO dla Xemacsa | |
247 | Summary(pt_BR.UTF-8): Facilita a edição de arquivos PO (internacionalização) com o emacs | |
494a63a8 | 248 | License: GPL v2+ |
e2f3a7d9 | 249 | Group: Applications/Editors/Emacs |
e2f3a7d9 AM |
250 | Requires: xemacs |
251 | ||
252 | %description -n xemacs-po-mode-pkg | |
253 | Emacs PO-mode. | |
254 | ||
a64a3574 JR |
255 | %description -n xemacs-po-mode-pkg -l es.UTF-8 |
256 | Este paquete suministra las herramientas para ayudar en la edición de | |
8d022b73 | 257 | archivos PO, como documentado en el manual del usuario del GNU |
a64a3574 JR |
258 | gettext. Mira este manual para la documentación de uso, que no se |
259 | incluye aquí. | |
8d022b73 | 260 | |
a64a3574 | 261 | %description -n xemacs-po-mode-pkg -l pl.UTF-8 |
e2f3a7d9 AM |
262 | Tryb edycji PO dla emacsa. |
263 | ||
a64a3574 JR |
264 | %description -n xemacs-po-mode-pkg -l pt_BR.UTF-8 |
265 | Este pacote provê as ferramentas para ajudar na edição de arquivos PO, | |
266 | como documentado no manual do usuário do GNU gettext. Veja este manual | |
267 | para a documentação de uso, a qual não é incluída aqui. | |
8d022b73 | 268 | |
477b7b4d MM |
269 | %package autopoint |
270 | Summary: gettextize replacement | |
efd5fd2d | 271 | Summary(pl.UTF-8): Zamiennik gettextize |
494a63a8 | 272 | License: GPL v3+ |
477b7b4d MM |
273 | Group: Development/Tools |
274 | Requires: %{name}-devel >= 0.10.35 | |
d9d40f29 | 275 | Requires: cvs-client |
477b7b4d MM |
276 | |
277 | %description autopoint | |
278 | The `autopoint' program copies standard gettext infrastructure files | |
f408a996 | 279 | into a source package. It extracts from a macro call of the form |
477b7b4d MM |
280 | `AM_GNU_GETTEXT_VERSION(VERSION)', found in the package's |
281 | `configure.in' or `configure.ac' file, the gettext version used by the | |
282 | package, and copies the infrastructure files belonging to this version | |
283 | into the package. | |
284 | ||
a64a3574 | 285 | %description autopoint -l pl.UTF-8 |
477b7b4d | 286 | Program autopoint kopiuje standardowe pliki infrastruktury gettexta do |
a64a3574 | 287 | pakietu źródłowego. Wyciąga użytą wersję gettexta z wywołania makra w |
477b7b4d | 288 | postaci AM_GNU_GETTEXT_VERSION(VERSION) w pliku configure.in lub |
a64a3574 | 289 | configure.ac i kopiuje do pakietu pliki infrastruktury należące do tej |
477b7b4d MM |
290 | wersji. |
291 | ||
fac9633f | 292 | %package -n dotnet-gettext |
293 | Summary: GNU gettext for C# | |
efd5fd2d | 294 | Summary(pl.UTF-8): GNU gettext dla C# |
494a63a8 | 295 | License: LGPL v2+ (GNU.Gettext library), GPL v3+ (tools) |
fac9633f | 296 | Group: Development/Tools |
297 | ||
298 | %description -n dotnet-gettext | |
299 | GNU gettext for C#. | |
300 | ||
a64a3574 | 301 | %description -n dotnet-gettext -l pl.UTF-8 |
fac9633f | 302 | GNU gettext dla C#. |
303 | ||
e69a4abf | 304 | %prep |
305 | %setup -q | |
494a63a8 | 306 | %patch0 -p1 |
c18823b2 | 307 | %patch1 -p1 |
494a63a8 | 308 | %patch2 -p1 |
23df42a0 JB |
309 | # patch not finished yet |
310 | #%patch3 -p1 | |
4ed61643 | 311 | %patch4 -p1 |
8a7f15de | 312 | %patch5 -p1 |
e69a4abf | 313 | |
314 | %build | |
0b9000b2 | 315 | %{__libtoolize} |
795b76be | 316 | cd autoconf-lib-link |
754f58ec | 317 | %{__aclocal} -I m4 -I ../m4 |
795b76be JB |
318 | %{__autoconf} |
319 | %{__automake} | |
320 | cd ../gettext-runtime | |
9ddfeda0 | 321 | %{__libtoolize} |
132f5218 | 322 | %{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4 |
1f148f93 | 323 | %{__autoconf} |
503b3e73 | 324 | %{__autoheader} |
1f148f93 | 325 | %{__automake} |
503b3e73 | 326 | cd libasprintf |
754f58ec | 327 | %{__aclocal} -I ../m4 -I ../../m4 |
503b3e73 JB |
328 | %{__autoconf} |
329 | %{__autoheader} | |
330 | %{__automake} | |
331 | cd ../../gettext-tools | |
132f5218 | 332 | %{__aclocal} -I m4 -I gnulib-m4 -I libgettextpo/gnulib-m4 -I ../autoconf-lib-link/m4 -I ../gettext-runtime/m4 -I ../m4 |
0b9000b2 | 333 | %{__autoconf} |
503b3e73 | 334 | %{__autoheader} |
0b9000b2 | 335 | %{__automake} |
336 | cd .. | |
925984fb JB |
337 | %{__aclocal} |
338 | %{__autoconf} | |
339 | %{__automake} | |
6d2d24f7 | 340 | %configure \ |
7e71e93c | 341 | %{?with_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \ |
514889a3 | 342 | --enable-nls \ |
fac9633f | 343 | %{!?with_dotnet:--disable-csharp} \ |
344 | %{?with_dotnet:--enable-csharp=mono} \ | |
7e731dbc KK |
345 | --without-included-gettext \ |
346 | %{?with_bootstrap:--with-included-glib} \ | |
347 | %{?with_bootstrap:--with-included-libcroco} | |
5034552a AM |
348 | %{__make} \ |
349 | GMSGFMT=`pwd`/gettext-tools/src/msgfmt | |
e69a4abf | 350 | |
225257d7 | 351 | # msgfmt has been built, so now we can update pl.gmos |
51f9c57f JB |
352 | %{__make} pl.gmo -C gettext-runtime/po \ |
353 | GMSGFMT=`pwd`/gettext-tools/src/msgfmt | |
225257d7 JB |
354 | %{__make} pl.gmo -C gettext-tools/po \ |
355 | GMSGFMT=`pwd`/gettext-tools/src/msgfmt | |
356 | ||
7e71e93c JB |
357 | %if %{with xemacs} |
358 | cd gettext-tools/misc | |
359 | EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el | |
360 | %endif | |
e2f3a7d9 | 361 | |
e69a4abf | 362 | %install |
363 | rm -rf $RPM_BUILD_ROOT | |
f5c43e32 AF |
364 | install -d $RPM_BUILD_ROOT/bin |
365 | ||
7e71e93c JB |
366 | %{__make} install \ |
367 | DESTDIR=$RPM_BUILD_ROOT | |
85bb6f82 | 368 | |
477b7b4d MM |
369 | mv -f $RPM_BUILD_ROOT%{_bindir}/{,n}gettext $RPM_BUILD_ROOT/bin |
370 | ||
5610ebc0 | 371 | # these static libs are removed in install-exec-clean |
132f5218 | 372 | install gettext-tools/gnulib-lib/.libs/libgettextlib.a \ |
5610ebc0 | 373 | gettext-tools/src/.libs/libgettextsrc.a $RPM_BUILD_ROOT%{_libdir} |
4252c7f8 | 374 | |
5da74ad2 JB |
375 | rm -r $RPM_BUILD_ROOT%{_docdir}/gettext |
376 | ||
0b9000b2 | 377 | %find_lang %{name}-runtime |
378 | %find_lang %{name}-tools | |
a04d6a92 | 379 | |
3f6e57e9 JB |
380 | %clean |
381 | rm -rf $RPM_BUILD_ROOT | |
382 | ||
22b12be3 | 383 | %post devel |
5610ebc0 | 384 | /sbin/ldconfig |
8317dfb8 | 385 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
a04d6a92 | 386 | |
0d93a603 | 387 | %postun devel |
5610ebc0 | 388 | /sbin/ldconfig |
8317dfb8 | 389 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
a04d6a92 | 390 | |
b438f025 JB |
391 | %post -n libasprintf -p /sbin/ldconfig |
392 | %postun -n libasprintf -p /sbin/ldconfig | |
393 | ||
27802fd9 ER |
394 | %post -n libasprintf-devel -p /sbin/postshell |
395 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
b438f025 | 396 | |
27802fd9 ER |
397 | %postun -n libasprintf-devel -p /sbin/postshell |
398 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
b438f025 | 399 | |
0b9000b2 | 400 | %files -f %{name}-runtime.lang |
fc2477e5 | 401 | %defattr(644,root,root,755) |
22b12be3 | 402 | %attr(755,root,root) /bin/* |
7e71e93c JB |
403 | %attr(755,root,root) %{_bindir}/envsubst |
404 | %{_mandir}/man1/envsubst.1* | |
477b7b4d MM |
405 | %{_mandir}/man1/gettext.1* |
406 | %{_mandir}/man1/ngettext.1* | |
fac9633f | 407 | %dir %{_libdir}/gettext |
5610ebc0 | 408 | %dir %{_datadir}/gettext |
22b12be3 | 409 | |
0b9000b2 | 410 | %files devel -f %{name}-tools.lang |
22b12be3 | 411 | %defattr(644,root,root,755) |
5610ebc0 | 412 | %doc AUTHORS ChangeLog NEWS README THANKS |
8731e3bb | 413 | %attr(755,root,root) %{_bindir}/* |
5610ebc0 | 414 | %exclude %{_bindir}/autopoint |
7e71e93c | 415 | %exclude %{_bindir}/envsubst |
5610ebc0 JB |
416 | %attr(755,root,root) %{_libdir}/libgettext*.so |
417 | %{_libdir}/libgettext*.la | |
b438f025 | 418 | # libgettextpo is for other programs, not used by gettext tools themselves |
5610ebc0 | 419 | %attr(755,root,root) %{_libdir}/libgettextpo.so.*.*.* |
b438f025 | 420 | %attr(755,root,root) %{_libdir}/preloadable_libintl.so |
f3086ae6 JB |
421 | %attr(755,root,root) %{_libdir}/gettext/hostname |
422 | %attr(755,root,root) %{_libdir}/gettext/project-id | |
423 | %attr(755,root,root) %{_libdir}/gettext/urlget | |
424 | %attr(755,root,root) %{_libdir}/gettext/user-email | |
b438f025 | 425 | %{_includedir}/gettext-po.h |
4139da97 | 426 | %{_aclocaldir}/* |
b438f025 JB |
427 | %{_infodir}/gettext*.info* |
428 | %{_mandir}/man1/gettextize.1* | |
429 | %{_mandir}/man1/msg*.1* | |
48182994 | 430 | %{_mandir}/man1/recode-sr-latin.1* |
b438f025 JB |
431 | %{_mandir}/man1/xgettext.1* |
432 | %{_mandir}/man3/* | |
433 | ||
477b7b4d MM |
434 | %{_datadir}/gettext/ABOUT-NLS |
435 | %attr(755,root,root) %{_datadir}/gettext/config.rpath | |
436 | %{_datadir}/gettext/gettext.h | |
437 | %dir %{_datadir}/gettext/intl | |
5610ebc0 | 438 | %{_datadir}/gettext/intl/[!c]* |
477b7b4d MM |
439 | %attr(755,root,root) %{_datadir}/gettext/intl/config.charset |
440 | %{_datadir}/gettext/msgunfmt.tcl | |
477b7b4d MM |
441 | %{_datadir}/gettext/po |
442 | %dir %{_datadir}/gettext/projects | |
443 | %{_datadir}/gettext/projects/index | |
444 | %attr(755,root,root) %{_datadir}/gettext/projects/team-address | |
445 | %dir %{_datadir}/gettext/projects/GNOME | |
446 | %{_datadir}/gettext/projects/GNOME/teams.* | |
447 | %attr(755,root,root) %{_datadir}/gettext/projects/GNOME/team-address | |
448 | %attr(755,root,root) %{_datadir}/gettext/projects/GNOME/trigger | |
449 | %dir %{_datadir}/gettext/projects/KDE | |
450 | %{_datadir}/gettext/projects/KDE/teams.* | |
451 | %attr(755,root,root) %{_datadir}/gettext/projects/KDE/team-address | |
452 | %attr(755,root,root) %{_datadir}/gettext/projects/KDE/trigger | |
453 | %dir %{_datadir}/gettext/projects/TP | |
454 | %{_datadir}/gettext/projects/TP/teams.* | |
455 | %attr(755,root,root) %{_datadir}/gettext/projects/TP/team-address | |
456 | %attr(755,root,root) %{_datadir}/gettext/projects/TP/trigger | |
48182994 | 457 | %{_datadir}/gettext/styles |
b438f025 JB |
458 | |
459 | %files static | |
460 | %defattr(644,root,root,755) | |
461 | %{_libdir}/libgettext*.a | |
462 | ||
7e71e93c | 463 | %if %{with asprintf} |
b438f025 JB |
464 | %files -n libasprintf |
465 | %defattr(644,root,root,755) | |
466 | %doc gettext-runtime/libasprintf/{AUTHORS,ChangeLog,README} | |
467 | %attr(755,root,root) %{_libdir}/libasprintf.so.*.*.* | |
468 | ||
469 | %files -n libasprintf-devel | |
470 | %defattr(644,root,root,755) | |
471 | %attr(755,root,root) %{_libdir}/libasprintf.so | |
472 | %{_libdir}/libasprintf.la | |
473 | %{_includedir}/autosprintf.h | |
474 | %{_infodir}/autosprintf.info* | |
475 | ||
476 | %files -n libasprintf-static | |
477 | %defattr(644,root,root,755) | |
478 | %{_libdir}/libasprintf.a | |
0fae75f7 | 479 | %endif |
e2f3a7d9 | 480 | |
5ad5427b | 481 | %if %{build_java} |
5610ebc0 JB |
482 | %files java |
483 | %defattr(644,root,root,755) | |
484 | %{_datadir}/gettext/libintl.jar | |
485 | ||
477b7b4d MM |
486 | %files java-devel |
487 | %defattr(644,root,root,755) | |
5610ebc0 | 488 | %doc gettext-runtime/intl-java/javadoc2 |
f3086ae6 JB |
489 | %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.DumpResource |
490 | %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.GetURL | |
48182994 | 491 | %{_datadir}/gettext/javaversion.class |
477b7b4d MM |
492 | %endif |
493 | ||
7e71e93c | 494 | %if %{with xemacs} |
477b7b4d MM |
495 | %files -n xemacs-po-mode-pkg |
496 | %defattr(644,root,root,755) | |
497 | %dir %{_datadir}/xemacs-packages/lisp/po-mode | |
498 | %{_datadir}/xemacs-packages/lisp/po-mode/*.elc | |
499 | %endif | |
500 | ||
501 | %files autopoint | |
502 | %defattr(644,root,root,755) | |
503 | %attr(755,root,root) %{_bindir}/autopoint | |
504 | %{_datadir}/gettext/archive.tar.gz | |
7a725ce9 | 505 | %{_mandir}/man1/autopoint.1* |
fac9633f | 506 | |
18d689cd | 507 | %if %{with dotnet} |
fac9633f | 508 | %files -n dotnet-gettext |
509 | %defattr(644,root,root,755) | |
510 | %{_libdir}/GNU.Gettext.dll | |
511 | %{_libdir}/gettext/msgfmt.net.exe | |
512 | %{_libdir}/gettext/msgunfmt.net.exe | |
18d689cd | 513 | %endif |