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