]>
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 |
a14f557b | 42 | Version: 0.18.2.1 |
b069f77e | 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 |
a14f557b | 47 | # Source0-md5: 034c8103b14654ebd300fadac44d6f14 |
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 | |
633dfabf | 300 | Requires: xz |
477b7b4d MM |
301 | |
302 | %description autopoint | |
303 | The `autopoint' program copies standard gettext infrastructure files | |
f408a996 | 304 | into a source package. It extracts from a macro call of the form |
477b7b4d MM |
305 | `AM_GNU_GETTEXT_VERSION(VERSION)', found in the package's |
306 | `configure.in' or `configure.ac' file, the gettext version used by the | |
307 | package, and copies the infrastructure files belonging to this version | |
308 | into the package. | |
309 | ||
a64a3574 | 310 | %description autopoint -l pl.UTF-8 |
477b7b4d | 311 | Program autopoint kopiuje standardowe pliki infrastruktury gettexta do |
a64a3574 | 312 | pakietu źródłowego. Wyciąga użytą wersję gettexta z wywołania makra w |
477b7b4d | 313 | postaci AM_GNU_GETTEXT_VERSION(VERSION) w pliku configure.in lub |
a64a3574 | 314 | configure.ac i kopiuje do pakietu pliki infrastruktury należące do tej |
477b7b4d MM |
315 | wersji. |
316 | ||
fac9633f | 317 | %package -n dotnet-gettext |
318 | Summary: GNU gettext for C# | |
efd5fd2d | 319 | Summary(pl.UTF-8): GNU gettext dla C# |
494a63a8 | 320 | License: LGPL v2+ (GNU.Gettext library), GPL v3+ (tools) |
fac9633f | 321 | Group: Development/Tools |
322 | ||
323 | %description -n dotnet-gettext | |
324 | GNU gettext for C#. | |
325 | ||
a64a3574 | 326 | %description -n dotnet-gettext -l pl.UTF-8 |
fac9633f | 327 | GNU gettext dla C#. |
328 | ||
e69a4abf | 329 | %prep |
330 | %setup -q | |
494a63a8 | 331 | %patch0 -p1 |
c18823b2 | 332 | %patch1 -p1 |
f2fef0e8 JB |
333 | #for d in gettext-runtime gettext-tools gettext-tools/examples ; do |
334 | # iconv -f iso-8859-2 -t utf-8 ${d}/po/pl.po > ${d}/po/pl.po.utf-8 | |
335 | # mv -f ${d}/po/pl.po.utf-8 ${d}/po/pl.po | |
336 | #done | |
494a63a8 | 337 | %patch2 -p1 |
c1f6fb1a | 338 | %patch3 -p1 |
f80b2eb3 | 339 | %patch4 -p1 |
e69a4abf | 340 | |
341 | %build | |
0b9000b2 | 342 | %{__libtoolize} |
c1f6fb1a | 343 | cd gettext-runtime |
9ddfeda0 | 344 | %{__libtoolize} |
c1f6fb1a | 345 | %{__aclocal} -I m4 -I ../m4 -I gnulib-m4 |
1f148f93 | 346 | %{__autoconf} |
503b3e73 | 347 | %{__autoheader} |
1f148f93 | 348 | %{__automake} |
503b3e73 | 349 | cd libasprintf |
c1f6fb1a | 350 | %{__aclocal} -I ../../m4 -I ../m4 -I gnulib-m4 |
503b3e73 JB |
351 | %{__autoconf} |
352 | %{__autoheader} | |
353 | %{__automake} | |
354 | cd ../../gettext-tools | |
f2fef0e8 | 355 | %{__aclocal} -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4 |
0b9000b2 | 356 | %{__autoconf} |
503b3e73 | 357 | %{__autoheader} |
0b9000b2 | 358 | %{__automake} |
359 | cd .. | |
c1f6fb1a | 360 | %{__aclocal} -I m4 |
925984fb JB |
361 | %{__autoconf} |
362 | %{__automake} | |
6d2d24f7 | 363 | %configure \ |
7e71e93c | 364 | %{?with_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \ |
514889a3 | 365 | --enable-nls \ |
fac9633f | 366 | %{!?with_dotnet:--disable-csharp} \ |
367 | %{?with_dotnet:--enable-csharp=mono} \ | |
b069f77e | 368 | --without-bzip2 \ |
f2fef0e8 | 369 | --without-git \ |
7e731dbc KK |
370 | --without-included-gettext \ |
371 | %{?with_bootstrap:--with-included-glib} \ | |
b069f77e JB |
372 | %{?with_bootstrap:--with-included-libcroco} \ |
373 | --with-xz | |
5034552a AM |
374 | %{__make} \ |
375 | GMSGFMT=`pwd`/gettext-tools/src/msgfmt | |
e69a4abf | 376 | |
225257d7 | 377 | # msgfmt has been built, so now we can update pl.gmos |
51f9c57f JB |
378 | %{__make} pl.gmo -C gettext-runtime/po \ |
379 | GMSGFMT=`pwd`/gettext-tools/src/msgfmt | |
225257d7 JB |
380 | %{__make} pl.gmo -C gettext-tools/po \ |
381 | GMSGFMT=`pwd`/gettext-tools/src/msgfmt | |
382 | ||
7e71e93c JB |
383 | %if %{with xemacs} |
384 | cd gettext-tools/misc | |
385 | EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el | |
386 | %endif | |
e2f3a7d9 | 387 | |
e69a4abf | 388 | %install |
389 | rm -rf $RPM_BUILD_ROOT | |
f5c43e32 AF |
390 | install -d $RPM_BUILD_ROOT/bin |
391 | ||
7e71e93c | 392 | %{__make} install \ |
2e7421f9 ER |
393 | examplesdir=%{_examplesdir}/%{name}-%{version} \ |
394 | examplesbuildauxdir=%{_examplesdir}/%{name}-%{version}/build-aux \ | |
7e71e93c | 395 | DESTDIR=$RPM_BUILD_ROOT |
85bb6f82 | 396 | |
477b7b4d MM |
397 | mv -f $RPM_BUILD_ROOT%{_bindir}/{,n}gettext $RPM_BUILD_ROOT/bin |
398 | ||
5610ebc0 | 399 | # these static libs are removed in install-exec-clean |
2e7421f9 | 400 | cp -a gettext-tools/gnulib-lib/.libs/libgettextlib.a \ |
5610ebc0 | 401 | gettext-tools/src/.libs/libgettextsrc.a $RPM_BUILD_ROOT%{_libdir} |
4252c7f8 | 402 | |
f80b2eb3 ŁK |
403 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gettext |
404 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libasprintf | |
405 | %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir | |
406 | ||
0b9000b2 | 407 | %find_lang %{name}-runtime |
408 | %find_lang %{name}-tools | |
a04d6a92 | 409 | |
3f6e57e9 JB |
410 | %clean |
411 | rm -rf $RPM_BUILD_ROOT | |
412 | ||
22b12be3 | 413 | %post devel |
5610ebc0 | 414 | /sbin/ldconfig |
8317dfb8 | 415 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
a04d6a92 | 416 | |
0d93a603 | 417 | %postun devel |
5610ebc0 | 418 | /sbin/ldconfig |
8317dfb8 | 419 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
a04d6a92 | 420 | |
b438f025 JB |
421 | %post -n libasprintf -p /sbin/ldconfig |
422 | %postun -n libasprintf -p /sbin/ldconfig | |
423 | ||
c1f6fb1a | 424 | %post -n libasprintf-devel -p /sbin/postshell |
27802fd9 | 425 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b438f025 | 426 | |
c1f6fb1a | 427 | %postun -n libasprintf-devel -p /sbin/postshell |
27802fd9 | 428 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b438f025 | 429 | |
0b9000b2 | 430 | %files -f %{name}-runtime.lang |
fc2477e5 | 431 | %defattr(644,root,root,755) |
c1f6fb1a JB |
432 | %attr(755,root,root) /bin/gettext |
433 | %attr(755,root,root) /bin/ngettext | |
7e71e93c | 434 | %attr(755,root,root) %{_bindir}/envsubst |
91770e4e | 435 | %attr(755,root,root) %{_bindir}/gettext.sh |
7e71e93c | 436 | %{_mandir}/man1/envsubst.1* |
477b7b4d MM |
437 | %{_mandir}/man1/gettext.1* |
438 | %{_mandir}/man1/ngettext.1* | |
fac9633f | 439 | %dir %{_libdir}/gettext |
5610ebc0 | 440 | %dir %{_datadir}/gettext |
22b12be3 | 441 | |
2e7421f9 ER |
442 | %files demo |
443 | %defattr(644,root,root,755) | |
444 | %{_examplesdir}/%{name}-%{version} | |
445 | ||
0b9000b2 | 446 | %files devel -f %{name}-tools.lang |
22b12be3 | 447 | %defattr(644,root,root,755) |
5610ebc0 | 448 | %doc AUTHORS ChangeLog NEWS README THANKS |
c1f6fb1a JB |
449 | %attr(755,root,root) %{_bindir}/gettextize |
450 | %attr(755,root,root) %{_bindir}/msg* | |
451 | %attr(755,root,root) %{_bindir}/recode-sr-latin | |
452 | %attr(755,root,root) %{_bindir}/xgettext | |
5610ebc0 | 453 | %attr(755,root,root) %{_libdir}/libgettext*.so |
dfc7273c | 454 | %{_libdir}/libgettext*.la |
b438f025 | 455 | # libgettextpo is for other programs, not used by gettext tools themselves |
5610ebc0 | 456 | %attr(755,root,root) %{_libdir}/libgettextpo.so.*.*.* |
667db4dd | 457 | %attr(755,root,root) %ghost %{_libdir}/libgettextpo.so.0 |
b438f025 | 458 | %attr(755,root,root) %{_libdir}/preloadable_libintl.so |
f3086ae6 JB |
459 | %attr(755,root,root) %{_libdir}/gettext/hostname |
460 | %attr(755,root,root) %{_libdir}/gettext/project-id | |
461 | %attr(755,root,root) %{_libdir}/gettext/urlget | |
462 | %attr(755,root,root) %{_libdir}/gettext/user-email | |
b438f025 | 463 | %{_includedir}/gettext-po.h |
b069f77e JB |
464 | %{_aclocaldir}/codeset.m4 |
465 | %{_aclocaldir}/fcntl-o.m4 | |
466 | %{_aclocaldir}/gettext.m4 | |
467 | %{_aclocaldir}/glibc2.m4 | |
468 | %{_aclocaldir}/glibc21.m4 | |
469 | %{_aclocaldir}/iconv.m4 | |
470 | %{_aclocaldir}/intdiv0.m4 | |
471 | %{_aclocaldir}/intl.m4 | |
472 | %{_aclocaldir}/intldir.m4 | |
473 | %{_aclocaldir}/intlmacosx.m4 | |
474 | %{_aclocaldir}/intmax.m4 | |
475 | %{_aclocaldir}/inttypes-pri.m4 | |
476 | %{_aclocaldir}/inttypes_h.m4 | |
477 | %{_aclocaldir}/lcmessage.m4 | |
478 | %{_aclocaldir}/lib-ld.m4 | |
479 | %{_aclocaldir}/lib-link.m4 | |
480 | %{_aclocaldir}/lib-prefix.m4 | |
481 | %{_aclocaldir}/lock.m4 | |
482 | %{_aclocaldir}/longlong.m4 | |
483 | %{_aclocaldir}/nls.m4 | |
484 | %{_aclocaldir}/po.m4 | |
485 | %{_aclocaldir}/printf-posix.m4 | |
486 | %{_aclocaldir}/progtest.m4 | |
487 | %{_aclocaldir}/size_max.m4 | |
488 | %{_aclocaldir}/stdint_h.m4 | |
489 | %{_aclocaldir}/threadlib.m4 | |
490 | %{_aclocaldir}/uintmax_t.m4 | |
491 | %{_aclocaldir}/visibility.m4 | |
492 | %{_aclocaldir}/wchar_t.m4 | |
493 | %{_aclocaldir}/wint_t.m4 | |
494 | %{_aclocaldir}/xsize.m4 | |
b438f025 JB |
495 | %{_infodir}/gettext*.info* |
496 | %{_mandir}/man1/gettextize.1* | |
497 | %{_mandir}/man1/msg*.1* | |
48182994 | 498 | %{_mandir}/man1/recode-sr-latin.1* |
b438f025 | 499 | %{_mandir}/man1/xgettext.1* |
b069f77e JB |
500 | %{_mandir}/man3/bind_textdomain_codeset.3* |
501 | %{_mandir}/man3/bindtextdomain.3* | |
502 | %{_mandir}/man3/dcgettext.3* | |
503 | %{_mandir}/man3/dcngettext.3* | |
504 | %{_mandir}/man3/dgettext.3* | |
505 | %{_mandir}/man3/dngettext.3* | |
506 | %{_mandir}/man3/gettext.3* | |
507 | %{_mandir}/man3/ngettext.3* | |
508 | %{_mandir}/man3/textdomain.3* | |
477b7b4d MM |
509 | %{_datadir}/gettext/ABOUT-NLS |
510 | %attr(755,root,root) %{_datadir}/gettext/config.rpath | |
511 | %{_datadir}/gettext/gettext.h | |
512 | %dir %{_datadir}/gettext/intl | |
5610ebc0 | 513 | %{_datadir}/gettext/intl/[!c]* |
477b7b4d MM |
514 | %attr(755,root,root) %{_datadir}/gettext/intl/config.charset |
515 | %{_datadir}/gettext/msgunfmt.tcl | |
477b7b4d MM |
516 | %{_datadir}/gettext/po |
517 | %dir %{_datadir}/gettext/projects | |
518 | %{_datadir}/gettext/projects/index | |
519 | %attr(755,root,root) %{_datadir}/gettext/projects/team-address | |
520 | %dir %{_datadir}/gettext/projects/GNOME | |
521 | %{_datadir}/gettext/projects/GNOME/teams.* | |
522 | %attr(755,root,root) %{_datadir}/gettext/projects/GNOME/team-address | |
523 | %attr(755,root,root) %{_datadir}/gettext/projects/GNOME/trigger | |
524 | %dir %{_datadir}/gettext/projects/KDE | |
525 | %{_datadir}/gettext/projects/KDE/teams.* | |
526 | %attr(755,root,root) %{_datadir}/gettext/projects/KDE/team-address | |
527 | %attr(755,root,root) %{_datadir}/gettext/projects/KDE/trigger | |
528 | %dir %{_datadir}/gettext/projects/TP | |
529 | %{_datadir}/gettext/projects/TP/teams.* | |
530 | %attr(755,root,root) %{_datadir}/gettext/projects/TP/team-address | |
531 | %attr(755,root,root) %{_datadir}/gettext/projects/TP/trigger | |
48182994 | 532 | %{_datadir}/gettext/styles |
b438f025 JB |
533 | |
534 | %files static | |
535 | %defattr(644,root,root,755) | |
536 | %{_libdir}/libgettext*.a | |
537 | ||
7e71e93c | 538 | %if %{with asprintf} |
b438f025 JB |
539 | %files -n libasprintf |
540 | %defattr(644,root,root,755) | |
541 | %doc gettext-runtime/libasprintf/{AUTHORS,ChangeLog,README} | |
542 | %attr(755,root,root) %{_libdir}/libasprintf.so.*.*.* | |
667db4dd | 543 | %attr(755,root,root) %ghost %{_libdir}/libasprintf.so.0 |
b438f025 JB |
544 | |
545 | %files -n libasprintf-devel | |
546 | %defattr(644,root,root,755) | |
547 | %attr(755,root,root) %{_libdir}/libasprintf.so | |
dfc7273c | 548 | %{_libdir}/libasprintf.la |
b438f025 JB |
549 | %{_includedir}/autosprintf.h |
550 | %{_infodir}/autosprintf.info* | |
551 | ||
552 | %files -n libasprintf-static | |
553 | %defattr(644,root,root,755) | |
554 | %{_libdir}/libasprintf.a | |
0fae75f7 | 555 | %endif |
e2f3a7d9 | 556 | |
5ad5427b | 557 | %if %{build_java} |
5610ebc0 JB |
558 | %files java |
559 | %defattr(644,root,root,755) | |
560 | %{_datadir}/gettext/libintl.jar | |
561 | ||
477b7b4d MM |
562 | %files java-devel |
563 | %defattr(644,root,root,755) | |
5610ebc0 | 564 | %doc gettext-runtime/intl-java/javadoc2 |
b069f77e | 565 | %if %{with gcj} |
f3086ae6 JB |
566 | %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.DumpResource |
567 | %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.GetURL | |
b069f77e JB |
568 | %else |
569 | %{_datadir}/gettext/gettext.jar | |
570 | %endif | |
48182994 | 571 | %{_datadir}/gettext/javaversion.class |
477b7b4d MM |
572 | %endif |
573 | ||
7e71e93c | 574 | %if %{with xemacs} |
477b7b4d MM |
575 | %files -n xemacs-po-mode-pkg |
576 | %defattr(644,root,root,755) | |
577 | %dir %{_datadir}/xemacs-packages/lisp/po-mode | |
578 | %{_datadir}/xemacs-packages/lisp/po-mode/*.elc | |
579 | %endif | |
580 | ||
581 | %files autopoint | |
582 | %defattr(644,root,root,755) | |
583 | %attr(755,root,root) %{_bindir}/autopoint | |
b069f77e | 584 | %{_datadir}/gettext/archive.dir.tar.xz |
7a725ce9 | 585 | %{_mandir}/man1/autopoint.1* |
fac9633f | 586 | |
18d689cd | 587 | %if %{with dotnet} |
fac9633f | 588 | %files -n dotnet-gettext |
589 | %defattr(644,root,root,755) | |
590 | %{_libdir}/GNU.Gettext.dll | |
591 | %{_libdir}/gettext/msgfmt.net.exe | |
592 | %{_libdir}/gettext/msgunfmt.net.exe | |
18d689cd | 593 | %endif |