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