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