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