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