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