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