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