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