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