]>
Commit | Line | Data |
---|---|---|
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 | 28 | Summary: Utilties for program national language support |
efd5fd2d ER |
29 | Summary(de.UTF-8): Utilities zum Programmieren von nationaler Sprachunterstützung |
30 | Summary(es.UTF-8): Utilitarios para el programa de soporte a lenguas locales | |
31 | Summary(fr.UTF-8): Utilitaires pour le support de la langue nationnalepar les programmes | |
32 | Summary(ja.UTF-8): マルチリンガルメッセージを生成するためのGNU ライブラリ/ユーティリティ | |
33 | Summary(pl.UTF-8): Narzędzia dla programów ze wsparciem dla języków narodowych | |
34 | Summary(pt_BR.UTF-8): Utilitários para o programa de suporte de línguas locais | |
35 | Summary(ru.UTF-8): Библиотеки и утилиты для поддержки национальных языков | |
36 | Summary(tr.UTF-8): Desteği için kitaplık ve araçlar | |
37 | Summary(uk.UTF-8): Бібліотеки та утиліти для підтримки національних мов | |
a04d6a92 | 38 | Name: gettext |
025b535b | 39 | Version: 0.20.2 |
70682b5e JB |
40 | Release: 2 |
41 | License: LGPL v2.1+ (libintl), GPL v3+ (tools) | |
a04d6a92 | 42 | Group: Development/Tools |
1e4bffdb | 43 | Source0: https://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.xz |
025b535b | 44 | # Source0-md5: 0cf5f68338d5d941bbf9ac93b847310f |
0b9000b2 | 45 | Patch0: %{name}-info.patch |
7e71e93c | 46 | Patch1: %{name}-killkillkill.patch |
5c7ab0ff | 47 | Patch3: %{name}-libdir.patch |
49b55f60 | 48 | URL: http://www.gnu.org/software/gettext/ |
07b021f1 | 49 | BuildRequires: acl-devel |
1cb08a5e | 50 | BuildRequires: autoconf >= 2.63 |
46a710c8 | 51 | BuildRequires: 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} |
55 | BuildRequires: 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 | 60 | BuildRequires: libgomp-devel |
494a63a8 | 61 | %endif |
7e71e93c | 62 | %{?with_asprintf:BuildRequires: libstdc++-devel} |
46a710c8 | 63 | BuildRequires: libtool >= 2:2 |
07b021f1 | 64 | BuildRequires: libunistring-devel |
1cb08a5e | 65 | %{!?with_bootstrap:BuildRequires: libxml2-devel} |
e037fe85 | 66 | %{?with_dotnet:BuildRequires: mono-csharp} |
e0db4c0c | 67 | BuildRequires: rpmbuild(macros) >= 1.453 |
d97ea26d | 68 | BuildRequires: sed >= 4.0 |
ea937134 | 69 | BuildRequires: tar >= 1:1.22 |
514889a3 | 70 | BuildRequires: texinfo |
7e71e93c | 71 | %{?with_xemacs:BuildRequires: xemacs} |
1cb08a5e | 72 | BuildRequires: xz |
a0d165a9 | 73 | Obsoletes: gettext-base |
e0475093 | 74 | Conflicts: intltool < 0.28 |
75ccf444 | 75 | BuildRoot: %{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 | 83 | The GNU gettext package provides a set of tools and documentation for |
84 | producing multi-lingual messages in programs. Tools include a set of | |
85 | conventions about how programs should be written to support message | |
86 | catalogs, a directory and file naming organization for the message | |
87 | catalogs, a runtime library which supports the retrieval of translated | |
88 | messages, and stand-alone programs for handling the translatable and | |
89 | the already translated strings. Gettext provides an easy to use | |
90 | library and tools for creating, using, and modifying natural language | |
91 | catalogs and is a powerful and simple method for internationalizing | |
92 | programs. | |
e69a4abf | 93 | |
a64a3574 JR |
94 | %description -l de.UTF-8 |
95 | Die gettext-Library enthält eine einfach anzuwendende Library und | |
96 | Tools zum Erstellen, Verwenden und Ändern von | |
97 | natürlichsprachigen-Kataloge. Es ist ein einfaches und | |
98 | leistungsfähiges Verfahren zum Lokalisieren von Programmen. | |
99 | ||
100 | %description -l es.UTF-8 | |
101 | La biblioteca gettext nos ofrece una biblioteca fácil de usar y | |
102 | herramientas para creación, uso y modificación de catálogos de | |
103 | lenguaje natural. Es un potente y sencillo método de | |
104 | internacionalización de programas. | |
105 | ||
106 | %description -l fr.UTF-8 | |
107 | La librarie gettext fournit des outils et une librairie simple à | |
108 | utiliser pour manipuler, créer, et modifier des catalogues de langage | |
109 | naturel. C'est une méthode simple et puissante pour internationnaliser | |
9e88acc1 | 110 | les programmes. |
e69a4abf | 111 | |
a64a3574 | 112 | %description -l ja.UTF-8 |
0d7e90e9 | 113 | GNU gettext |
a64a3574 JR |
114 | パッケージはプログラム中でマルチリンガルメッセージを生成する |
115 | ためのツールと文書を供給する。ツールはメッセージカタログをサポートするために | |
116 | プログラムがどのように書かれるべきかの申し合わせと、メッセージカタログのための | |
117 | ディレクトリとファイル名の組織化と、翻訳されたメッセージの埋め合わせを | |
118 | サポートするためのランタイムライブラリと、翻訳可能でかつすでに翻訳された文字列 | |
119 | を取り扱う独立したプログラムを含んでいる。gettext | |
120 | は簡単に使えるライブラリ | |
121 | と自然言語のカタログを生成、使用、修正するツールと、国際化プログラム | |
122 | のための強力かつシンプルな方法を供給する。 | |
123 | ||
124 | %description -l pl.UTF-8 | |
125 | Pakiet gettext dostarcza narzędzi do tworzenia, używania i modyfikacji | |
126 | katalogów języków narodowych. To jest prosta i wydajna metoda | |
127 | lokalizacji (internacjonalizacji) programów. | |
128 | ||
129 | %description -l pt_BR.UTF-8 | |
130 | A biblioteca gettext oferece uma biblioteca fácil de usar e | |
131 | ferramentas para criação, uso e modificação de catálogos de linguagem | |
132 | natural. Ele é um poderoso e simples método de internacionalização de | |
8d022b73 | 133 | programas. |
134 | ||
a64a3574 JR |
135 | %description -l ru.UTF-8 |
136 | Пакет gettext содержит библиотеку и простые в использовании | |
137 | инструменты для создания, использования и модификации каталогов | |
138 | национальных языков. Это простой и мощный метод для | |
139 | интернационализации программ. | |
0d7e90e9 | 140 | |
a64a3574 JR |
141 | %description -l tr.UTF-8 |
142 | gettext, yerel dil desteğinde kullanılan katalogları değiştirebilmek | |
143 | için, kolayca kullanılabilen kitaplık ve araçları sağlar. Bu, | |
144 | programları uluslararasılaştırmak için sıkça başvurulan, kuvvetli bir | |
145 | yöntemdir. | |
e69a4abf | 146 | |
a64a3574 JR |
147 | %description -l uk.UTF-8 |
148 | Пакет gettext містить бібліотеку та прості у використанні інструменти | |
149 | для створення, використання та модифікації каталогів національних мов. | |
150 | Це простий та потужний метод для інтернаціоналізації програм. | |
0d7e90e9 | 151 | |
52e0cb41 JB |
152 | %package tools |
153 | Summary: Utilties for program national language support | |
154 | Summary(de.UTF-8): Utilities zum Programmieren von nationaler Sprachunterstützung | |
155 | Summary(fr.UTF-8): Utilitaires pour le support de la langue nationnalepar les programmes | |
156 | Summary(pl.UTF-8): Narzędzia dla programów ze wsparciem dla języków narodowych | |
157 | Summary(tr.UTF-8): Desteği için kitaplık ve araçlar | |
158 | License: GPL v3+ | |
159 | Group: Development/Tools | |
160 | Requires(post,postun): /sbin/ldconfig | |
161 | Requires: %{name}-libs = %{version}-%{release} | |
162 | Requires: iconv | |
163 | Conflicts: autoconf < 2.52 | |
98fa73ab | 164 | Conflicts: rpm-build-macros < 1.744 |
52e0cb41 JB |
165 | |
166 | %description tools | |
167 | This package contains tools for creating and modifying natural | |
168 | language catalogs. | |
169 | ||
170 | %description tools -l pl.UTF-8 | |
171 | Ten pakiet zawiera narzędzia do tworzenia i modyfikowania katalogów | |
172 | z obsługą języków naturalnych. | |
173 | ||
2e7421f9 ER |
174 | %package demo |
175 | Summary: Demo for gettext | |
176 | Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu gettext | |
177 | Group: Documentation | |
178 | Requires: %{name}-devel = %{version}-%{release} | |
179 | ||
180 | %description demo | |
52e0cb41 | 181 | Demonstrations and samples for gettext. |
2e7421f9 ER |
182 | |
183 | %description demo -l pl.UTF-8 | |
184 | Pliki demonstracyjne i przykłady dla pakietu gettext. | |
185 | ||
52e0cb41 JB |
186 | %package libs |
187 | Summary: Shared gettext utility libraries | |
188 | Summary(pl.UTF-8): Współdzielone biblioteki narzędziowe gettexta | |
189 | License: GPL v3+ | |
190 | Group: Development/Libraries | |
70682b5e | 191 | Requires: libtextstyle = %{version}-%{release} |
52e0cb41 JB |
192 | |
193 | %description libs | |
194 | This package contains shared versions of gettext utility libraries | |
195 | (libgettextlib, libgettextsrc and libgettextpo). | |
196 | ||
197 | %description libs -l pl.UTF-8 | |
198 | Ten pakiet zawiera współdzielone wersje bibliotek narzędziowych | |
199 | gettext (libgettextlib, libgettextsrc i libgettextpo). | |
200 | ||
22b12be3 | 201 | %package devel |
52e0cb41 JB |
202 | Summary: Development files for gettext libraries |
203 | Summary(pl.UTF-8): Pliki programistyczne bibliotek gettexta | |
494a63a8 | 204 | License: GPL v3+ |
52e0cb41 JB |
205 | Group: Development/Libraries |
206 | Requires: %{name}-libs = %{version}-%{release} | |
70682b5e | 207 | Requires: libtextstyle-devel = %{version}-%{release} |
22b12be3 JR |
208 | |
209 | %description devel | |
52e0cb41 | 210 | Development files for gettext libraries. |
22b12be3 | 211 | |
a64a3574 | 212 | %description devel -l pl.UTF-8 |
52e0cb41 | 213 | Pliki programistyczne bibliotek gettexta. |
514889a3 | 214 | |
b438f025 JB |
215 | %package static |
216 | Summary: Static gettext utility libraries | |
efd5fd2d | 217 | Summary(pl.UTF-8): Statyczne biblioteki narzędziowe gettext |
494a63a8 | 218 | License: GPL v3+ |
b438f025 | 219 | Group: Development/Libraries |
a8d3b420 | 220 | Requires: %{name}-devel = %{version}-%{release} |
b438f025 JB |
221 | |
222 | %description static | |
223 | This package contains static versions of gettext utility libraries | |
224 | (libgettextlib, libgettextsrc and libgettextpo). | |
225 | ||
a64a3574 JR |
226 | %description static -l pl.UTF-8 |
227 | Ten pakiet zawiera statyczne wersje bibliotek narzędziowych gettext | |
b438f025 JB |
228 | (libgettextlib, libgettextsrc i libgettextpo). |
229 | ||
230 | %package -n libasprintf | |
231 | Summary: GNU libasprintf - automatic formatted output to strings in C++ | |
efd5fd2d | 232 | Summary(pl.UTF-8): GNU libasprintf - automatyczne formatowanie wyjścia do łańcuchów w C++ |
70682b5e | 233 | License: LGPL v2.1+ |
b438f025 JB |
234 | Group: Libraries |
235 | ||
236 | %description -n libasprintf | |
237 | This package makes the C formatted output routines (`fprintf' et al.) | |
238 | usable 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 |
242 | Ten pakiet czyni funkcje C formatujące wyjście (fprintf i inne) | |
243 | używalnymi w programach w C++, z łańcuchami <string> i strumieniami | |
b438f025 JB |
244 | <iostream>. |
245 | ||
246 | %package -n libasprintf-devel | |
247 | Summary: Header file and documentation for libasprintf | |
efd5fd2d | 248 | Summary(pl.UTF-8): Plik nagłówkowy i dokumentacja dla libasprintf |
70682b5e | 249 | License: LGPL v2.1+ |
b438f025 | 250 | Group: Development/Libraries |
a8d3b420 | 251 | Requires: libasprintf = %{version}-%{release} |
b438f025 JB |
252 | |
253 | %description -n libasprintf-devel | |
254 | Header file and documentation for libasprintf. | |
255 | ||
a64a3574 JR |
256 | %description -n libasprintf-devel -l pl.UTF-8 |
257 | Plik nagłówkowy i dokumentacja dla libasprintf. | |
b438f025 JB |
258 | |
259 | %package -n libasprintf-static | |
260 | Summary: Static libasprintf library | |
efd5fd2d | 261 | Summary(pl.UTF-8): Statyczna biblioteka libasprintf |
70682b5e | 262 | License: LGPL v2.1+ |
b438f025 | 263 | Group: Development/Libraries |
a8d3b420 | 264 | Requires: libasprintf-devel = %{version}-%{release} |
b438f025 JB |
265 | |
266 | %description -n libasprintf-static | |
267 | Static libasprintf library. | |
268 | ||
a64a3574 | 269 | %description -n libasprintf-static -l pl.UTF-8 |
b438f025 JB |
270 | Statyczna biblioteka libasprintf. |
271 | ||
70682b5e JB |
272 | %package -n libtextstyle |
273 | Summary: GNU libtextstyle - Text styling library | |
274 | Summary(pl.UTF-8): GNU libtextstyle - biblioteka do obsługi stylu tekstu | |
275 | License: GPL v3+ | |
276 | ||
277 | %description -n libtextstyle | |
278 | This library provides an easy way to add styling to programs that | |
279 | produce output to a console or terminal emulator window. | |
280 | ||
281 | libtextstyle is for you if your application produces text that is more | |
282 | readable when it is accompanied with styling information, such as | |
283 | color, font attributes (weight, posture), or underlining. | |
284 | ||
285 | %description -n libtextstyle -l pl.UTF-8 | |
286 | Ta biblioteka zapewnia łatwy sposób dodawania styli do programów | |
287 | produkujących wyjście na konsoli lub w oknie emulatora terminala. | |
288 | ||
289 | libtextstyle ma zastosowanie tam, gdzie aplikacja produkuje tekst, | |
290 | który jest bardziej czytelny, jeśli jest wzbogacony o informacje o | |
291 | stylu, takie jak kolor, atrybuty czcionek (grubość, nachylenie) lub | |
292 | podkreślenie. | |
293 | ||
294 | %package -n libtextstyle-devel | |
295 | Summary: Header files for libtextstyle library | |
296 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libtextstyle | |
297 | License: GPL v3+ | |
298 | Group: Development/Libraries | |
299 | Requires: libtextstyle = %{version}-%{release} | |
300 | Requires: ncurses-devel | |
301 | ||
302 | %description -n libtextstyle-devel | |
303 | Header files for libtextstyle library. | |
304 | ||
305 | %description -n libtextstyle-devel -l pl.UTF-8 | |
306 | Pliki nagłówkowe biblioteki libtextstyle. | |
307 | ||
308 | %package -n libtextstyle-static | |
309 | Summary: Static libtextstyle library | |
310 | Summary(pl.UTF-8): Statyczna biblioteka libtextstyle | |
311 | License: GPL v3+ | |
312 | Group: Development/Libraries | |
313 | Requires: libtextstyle-devel = %{version}-%{release} | |
314 | ||
315 | %description -n libtextstyle-static | |
316 | Static libtextstyle library. | |
317 | ||
318 | %description -n libtextstyle-static -l pl.UTF-8 | |
319 | Statyczna biblioteka libtextstyle. | |
320 | ||
5610ebc0 JB |
321 | %package java |
322 | Summary: Runtime classes for Java programs internationalization | |
efd5fd2d | 323 | Summary(pl.UTF-8): Klasy do uruchamiania umiędzynarodowionych programów w Javie |
70682b5e | 324 | License: LGPL v2.1+ |
5610ebc0 | 325 | Group: Development/Languages/Java |
a8d3b420 | 326 | Requires: %{name} = %{version}-%{release} |
5610ebc0 JB |
327 | |
328 | %description java | |
329 | Runtime classes for Java programs internationalization. | |
330 | ||
a64a3574 JR |
331 | %description java -l pl.UTF-8 |
332 | Klasy do uruchamiania umiędzynarodowionych programów w Javie. | |
5610ebc0 | 333 | |
477b7b4d | 334 | %package java-devel |
5610ebc0 | 335 | Summary: Development classes for Java programs internationalization |
efd5fd2d | 336 | Summary(pl.UTF-8): Klasy do umiędzynarodowiania programów w Javie dla programistów |
494a63a8 | 337 | License: GPL v3+ |
477b7b4d | 338 | Group: Development/Tools |
a8d3b420 | 339 | Requires: %{name}-devel = %{version}-%{release} |
477b7b4d MM |
340 | |
341 | %description java-devel | |
5610ebc0 | 342 | Development classes for Java programs internationalization. |
477b7b4d | 343 | |
a64a3574 JR |
344 | %description java-devel -l pl.UTF-8 |
345 | Klasy do umiędzynarodowiania programów w Javie dla programistów. | |
477b7b4d | 346 | |
e2f3a7d9 AM |
347 | %package -n xemacs-po-mode-pkg |
348 | Summary: Xemacs PO-mode | |
efd5fd2d ER |
349 | Summary(es.UTF-8): Facilita la edición de archivos PO (internacionalización) con emacs |
350 | Summary(pl.UTF-8): Tryb PO dla Xemacsa | |
351 | Summary(pt_BR.UTF-8): Facilita a edição de arquivos PO (internacionalização) com o emacs | |
494a63a8 | 352 | License: GPL v2+ |
e2f3a7d9 | 353 | Group: Applications/Editors/Emacs |
e2f3a7d9 AM |
354 | Requires: xemacs |
355 | ||
356 | %description -n xemacs-po-mode-pkg | |
357 | Emacs PO-mode. | |
358 | ||
a64a3574 JR |
359 | %description -n xemacs-po-mode-pkg -l es.UTF-8 |
360 | Este paquete suministra las herramientas para ayudar en la edición de | |
8d022b73 | 361 | archivos PO, como documentado en el manual del usuario del GNU |
a64a3574 JR |
362 | gettext. Mira este manual para la documentación de uso, que no se |
363 | incluye aquí. | |
8d022b73 | 364 | |
a64a3574 | 365 | %description -n xemacs-po-mode-pkg -l pl.UTF-8 |
e2f3a7d9 AM |
366 | Tryb edycji PO dla emacsa. |
367 | ||
a64a3574 JR |
368 | %description -n xemacs-po-mode-pkg -l pt_BR.UTF-8 |
369 | Este pacote provê as ferramentas para ajudar na edição de arquivos PO, | |
370 | como documentado no manual do usuário do GNU gettext. Veja este manual | |
371 | para a documentação de uso, a qual não é incluída aqui. | |
8d022b73 | 372 | |
477b7b4d MM |
373 | %package autopoint |
374 | Summary: gettextize replacement | |
efd5fd2d | 375 | Summary(pl.UTF-8): Zamiennik gettextize |
494a63a8 | 376 | License: GPL v3+ |
477b7b4d MM |
377 | Group: Development/Tools |
378 | Requires: %{name}-devel >= 0.10.35 | |
633dfabf | 379 | Requires: xz |
477b7b4d MM |
380 | |
381 | %description autopoint | |
382 | The `autopoint' program copies standard gettext infrastructure files | |
f408a996 | 383 | into 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 | |
386 | package, and copies the infrastructure files belonging to this version | |
387 | into the package. | |
388 | ||
a64a3574 | 389 | %description autopoint -l pl.UTF-8 |
477b7b4d | 390 | Program autopoint kopiuje standardowe pliki infrastruktury gettexta do |
a64a3574 | 391 | pakietu źródłowego. Wyciąga użytą wersję gettexta z wywołania makra w |
477b7b4d | 392 | postaci AM_GNU_GETTEXT_VERSION(VERSION) w pliku configure.in lub |
a64a3574 | 393 | configure.ac i kopiuje do pakietu pliki infrastruktury należące do tej |
477b7b4d MM |
394 | wersji. |
395 | ||
fac9633f | 396 | %package -n dotnet-gettext |
397 | Summary: GNU gettext for C# | |
efd5fd2d | 398 | Summary(pl.UTF-8): GNU gettext dla C# |
70682b5e | 399 | License: LGPL v2.1+ (GNU.Gettext library), GPL v3+ (tools) |
fac9633f | 400 | Group: Development/Tools |
401 | ||
402 | %description -n dotnet-gettext | |
403 | GNU gettext for C#. | |
404 | ||
a64a3574 | 405 | %description -n dotnet-gettext -l pl.UTF-8 |
fac9633f | 406 | GNU 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 | 427 | cd 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 | 433 | cd libasprintf |
c1f6fb1a | 434 | %{__aclocal} -I ../../m4 -I ../m4 -I gnulib-m4 |
503b3e73 JB |
435 | %{__autoconf} |
436 | %{__autoheader} | |
437 | %{__automake} | |
1cb08a5e JB |
438 | cd ../../libtextstyle |
439 | %{__libtoolize} | |
440 | %{__aclocal} -I m4 -I gnulib-m4 | |
441 | %{__autoconf} | |
442 | %{__autoheader} | |
443 | %{__automake} | |
444 | cd ../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 |
449 | cd examples |
450 | %{__aclocal} -I ../../gettext-runtime/m4 -I ../../m4 | |
451 | %{__autoconf} | |
452 | %{__automake} | |
453 | cd ../.. | |
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} |
481 | cd gettext-tools/misc | |
482 | EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el | |
483 | %endif | |
e2f3a7d9 | 484 | |
e69a4abf | 485 | %install |
486 | rm -rf $RPM_BUILD_ROOT | |
bf7334d7 | 487 | install -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 | 497 | cp -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 |
509 | rm -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 |