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