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