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