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