]>
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} |
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 |
e037fe85 | 67 | %{?with_dotnet:BuildRequires: mono-csharp} |
c1f6fb1a JB |
68 | # rlog needed to generate archive.dir.tar.gz properly |
69 | BuildRequires: rcs | |
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 | |
22b12be3 JR |
147 | %package devel |
148 | Summary: Utilties for program national language support | |
efd5fd2d ER |
149 | Summary(de.UTF-8): Utilities zum Programmieren von nationaler Sprachunterstützung |
150 | Summary(fr.UTF-8): Utilitaires pour le support de la langue nationnalepar les programmes | |
151 | Summary(pl.UTF-8): Narzędzia dla programów ze wsparciem dla języków narodowych | |
152 | Summary(tr.UTF-8): Desteği için kitaplık ve araçlar | |
494a63a8 | 153 | License: GPL v3+ |
22b12be3 | 154 | Group: Development/Tools |
5610ebc0 | 155 | Requires(post,postun): /sbin/ldconfig |
a8d3b420 | 156 | Requires: %{name} = %{version}-%{release} |
de01f242 | 157 | Requires: iconv |
132f5218 | 158 | Conflicts: autoconf < 2.52 |
22b12be3 JR |
159 | |
160 | %description devel | |
9e88acc1 | 161 | The gettext library provides an easy to use library and tools for |
162 | creating, using, and modifying natural language catalogs. It is a | |
163 | powerfull and simple method for internationalizing programs. | |
22b12be3 | 164 | |
a64a3574 JR |
165 | %description devel -l pl.UTF-8 |
166 | Pakiet gettext dostarcza narzędzi do tworzenia, używania i modyfikacji | |
167 | katalogów języków narodowych. To jest prosta i wydajna metoda | |
168 | lokalizacji (internacjonalizacji) programów. | |
514889a3 | 169 | |
b438f025 JB |
170 | %package static |
171 | Summary: Static gettext utility libraries | |
efd5fd2d | 172 | Summary(pl.UTF-8): Statyczne biblioteki narzędziowe gettext |
494a63a8 | 173 | License: GPL v3+ |
b438f025 | 174 | Group: Development/Libraries |
a8d3b420 | 175 | Requires: %{name}-devel = %{version}-%{release} |
b438f025 JB |
176 | |
177 | %description static | |
178 | This package contains static versions of gettext utility libraries | |
179 | (libgettextlib, libgettextsrc and libgettextpo). | |
180 | ||
a64a3574 JR |
181 | %description static -l pl.UTF-8 |
182 | Ten pakiet zawiera statyczne wersje bibliotek narzędziowych gettext | |
b438f025 JB |
183 | (libgettextlib, libgettextsrc i libgettextpo). |
184 | ||
185 | %package -n libasprintf | |
186 | Summary: GNU libasprintf - automatic formatted output to strings in C++ | |
efd5fd2d | 187 | Summary(pl.UTF-8): GNU libasprintf - automatyczne formatowanie wyjścia do łańcuchów w C++ |
494a63a8 | 188 | License: LGPL v2+ |
b438f025 JB |
189 | Group: Libraries |
190 | ||
191 | %description -n libasprintf | |
192 | This package makes the C formatted output routines (`fprintf' et al.) | |
193 | usable in C++ programs, for use with the `<string>' strings and the | |
194 | `<iostream>' streams. | |
195 | ||
a64a3574 JR |
196 | %description -n libasprintf -l pl.UTF-8 |
197 | Ten pakiet czyni funkcje C formatujące wyjście (fprintf i inne) | |
198 | używalnymi w programach w C++, z łańcuchami <string> i strumieniami | |
b438f025 JB |
199 | <iostream>. |
200 | ||
201 | %package -n libasprintf-devel | |
202 | Summary: Header file and documentation for libasprintf | |
efd5fd2d | 203 | Summary(pl.UTF-8): Plik nagłówkowy i dokumentacja dla libasprintf |
494a63a8 | 204 | License: LGPL v2+ |
b438f025 | 205 | Group: Development/Libraries |
a8d3b420 | 206 | Requires: libasprintf = %{version}-%{release} |
b438f025 JB |
207 | |
208 | %description -n libasprintf-devel | |
209 | Header file and documentation for libasprintf. | |
210 | ||
a64a3574 JR |
211 | %description -n libasprintf-devel -l pl.UTF-8 |
212 | Plik nagłówkowy i dokumentacja dla libasprintf. | |
b438f025 JB |
213 | |
214 | %package -n libasprintf-static | |
215 | Summary: Static libasprintf library | |
efd5fd2d | 216 | Summary(pl.UTF-8): Statyczna biblioteka libasprintf |
494a63a8 | 217 | License: LGPL v2+ |
b438f025 | 218 | Group: Development/Libraries |
a8d3b420 | 219 | Requires: libasprintf-devel = %{version}-%{release} |
b438f025 JB |
220 | |
221 | %description -n libasprintf-static | |
222 | Static libasprintf library. | |
223 | ||
a64a3574 | 224 | %description -n libasprintf-static -l pl.UTF-8 |
b438f025 JB |
225 | Statyczna biblioteka libasprintf. |
226 | ||
5610ebc0 JB |
227 | %package java |
228 | Summary: Runtime classes for Java programs internationalization | |
efd5fd2d | 229 | Summary(pl.UTF-8): Klasy do uruchamiania umiędzynarodowionych programów w Javie |
494a63a8 | 230 | License: LGPL v2+ |
5610ebc0 | 231 | Group: Development/Languages/Java |
a8d3b420 | 232 | Requires: %{name} = %{version}-%{release} |
5610ebc0 JB |
233 | |
234 | %description java | |
235 | Runtime classes for Java programs internationalization. | |
236 | ||
a64a3574 JR |
237 | %description java -l pl.UTF-8 |
238 | Klasy do uruchamiania umiędzynarodowionych programów w Javie. | |
5610ebc0 | 239 | |
477b7b4d | 240 | %package java-devel |
5610ebc0 | 241 | Summary: Development classes for Java programs internationalization |
efd5fd2d | 242 | Summary(pl.UTF-8): Klasy do umiędzynarodowiania programów w Javie dla programistów |
494a63a8 | 243 | License: GPL v3+ |
477b7b4d | 244 | Group: Development/Tools |
a8d3b420 | 245 | Requires: %{name}-devel = %{version}-%{release} |
477b7b4d MM |
246 | |
247 | %description java-devel | |
5610ebc0 | 248 | Development classes for Java programs internationalization. |
477b7b4d | 249 | |
a64a3574 JR |
250 | %description java-devel -l pl.UTF-8 |
251 | Klasy do umiędzynarodowiania programów w Javie dla programistów. | |
477b7b4d | 252 | |
e2f3a7d9 AM |
253 | %package -n xemacs-po-mode-pkg |
254 | Summary: Xemacs PO-mode | |
efd5fd2d ER |
255 | Summary(es.UTF-8): Facilita la edición de archivos PO (internacionalización) con emacs |
256 | Summary(pl.UTF-8): Tryb PO dla Xemacsa | |
257 | Summary(pt_BR.UTF-8): Facilita a edição de arquivos PO (internacionalização) com o emacs | |
494a63a8 | 258 | License: GPL v2+ |
e2f3a7d9 | 259 | Group: Applications/Editors/Emacs |
e2f3a7d9 AM |
260 | Requires: xemacs |
261 | ||
262 | %description -n xemacs-po-mode-pkg | |
263 | Emacs PO-mode. | |
264 | ||
a64a3574 JR |
265 | %description -n xemacs-po-mode-pkg -l es.UTF-8 |
266 | Este paquete suministra las herramientas para ayudar en la edición de | |
8d022b73 | 267 | archivos PO, como documentado en el manual del usuario del GNU |
a64a3574 JR |
268 | gettext. Mira este manual para la documentación de uso, que no se |
269 | incluye aquí. | |
8d022b73 | 270 | |
a64a3574 | 271 | %description -n xemacs-po-mode-pkg -l pl.UTF-8 |
e2f3a7d9 AM |
272 | Tryb edycji PO dla emacsa. |
273 | ||
a64a3574 JR |
274 | %description -n xemacs-po-mode-pkg -l pt_BR.UTF-8 |
275 | Este pacote provê as ferramentas para ajudar na edição de arquivos PO, | |
276 | como documentado no manual do usuário do GNU gettext. Veja este manual | |
277 | para a documentação de uso, a qual não é incluída aqui. | |
8d022b73 | 278 | |
477b7b4d MM |
279 | %package autopoint |
280 | Summary: gettextize replacement | |
efd5fd2d | 281 | Summary(pl.UTF-8): Zamiennik gettextize |
494a63a8 | 282 | License: GPL v3+ |
477b7b4d MM |
283 | Group: Development/Tools |
284 | Requires: %{name}-devel >= 0.10.35 | |
477b7b4d MM |
285 | |
286 | %description autopoint | |
287 | The `autopoint' program copies standard gettext infrastructure files | |
f408a996 | 288 | into a source package. It extracts from a macro call of the form |
477b7b4d MM |
289 | `AM_GNU_GETTEXT_VERSION(VERSION)', found in the package's |
290 | `configure.in' or `configure.ac' file, the gettext version used by the | |
291 | package, and copies the infrastructure files belonging to this version | |
292 | into the package. | |
293 | ||
a64a3574 | 294 | %description autopoint -l pl.UTF-8 |
477b7b4d | 295 | Program autopoint kopiuje standardowe pliki infrastruktury gettexta do |
a64a3574 | 296 | pakietu źródłowego. Wyciąga użytą wersję gettexta z wywołania makra w |
477b7b4d | 297 | postaci AM_GNU_GETTEXT_VERSION(VERSION) w pliku configure.in lub |
a64a3574 | 298 | configure.ac i kopiuje do pakietu pliki infrastruktury należące do tej |
477b7b4d MM |
299 | wersji. |
300 | ||
fac9633f | 301 | %package -n dotnet-gettext |
302 | Summary: GNU gettext for C# | |
efd5fd2d | 303 | Summary(pl.UTF-8): GNU gettext dla C# |
494a63a8 | 304 | License: LGPL v2+ (GNU.Gettext library), GPL v3+ (tools) |
fac9633f | 305 | Group: Development/Tools |
306 | ||
307 | %description -n dotnet-gettext | |
308 | GNU gettext for C#. | |
309 | ||
a64a3574 | 310 | %description -n dotnet-gettext -l pl.UTF-8 |
fac9633f | 311 | GNU gettext dla C#. |
312 | ||
e69a4abf | 313 | %prep |
314 | %setup -q | |
494a63a8 | 315 | %patch0 -p1 |
c18823b2 | 316 | %patch1 -p1 |
c1f6fb1a JB |
317 | for d in gettext-runtime gettext-tools gettext-tools/examples ; do |
318 | iconv -f iso-8859-2 -t utf-8 ${d}/po/pl.po > ${d}/po/pl.po.utf-8 | |
319 | mv -f ${d}/po/pl.po.utf-8 ${d}/po/pl.po | |
320 | done | |
494a63a8 | 321 | %patch2 -p1 |
c1f6fb1a | 322 | %patch3 -p1 |
4ed61643 | 323 | %patch4 -p1 |
e69a4abf | 324 | |
325 | %build | |
c1f6fb1a JB |
326 | ## make autopoint to use tar.gz archives instead of cvs repository |
327 | #install -d archive-cvs/{prepare,archive} | |
328 | #tar xzf gettext-tools/misc/archive.tar.gz -C archive-cvs/prepare | |
329 | #cvs -d$(pwd)/archive-cvs/prepare/archive init | |
330 | #cd archive-cvs/archive | |
331 | #cvs -Q -d$(pwd)/../prepare/archive -q co . | |
332 | #for rev in $(cvs status -v | grep '(revision:' | awk ' { print $1 } ' | sort -u); do | |
333 | # cvs -Q up -d -r $rev | |
334 | # cd .. | |
335 | # tar czf archive-${rev}.tar.gz archive --exclude=CVS | |
336 | # cd archive | |
337 | #done | |
338 | #cd ../.. | |
1cd104b6 | 339 | |
0b9000b2 | 340 | %{__libtoolize} |
c1f6fb1a | 341 | cd gettext-runtime |
9ddfeda0 | 342 | %{__libtoolize} |
c1f6fb1a | 343 | %{__aclocal} -I m4 -I ../m4 -I gnulib-m4 |
1f148f93 | 344 | %{__autoconf} |
503b3e73 | 345 | %{__autoheader} |
1f148f93 | 346 | %{__automake} |
503b3e73 | 347 | cd libasprintf |
c1f6fb1a | 348 | %{__aclocal} -I ../../m4 -I ../m4 -I gnulib-m4 |
503b3e73 JB |
349 | %{__autoconf} |
350 | %{__autoheader} | |
351 | %{__automake} | |
352 | cd ../../gettext-tools | |
c1f6fb1a | 353 | %{__aclocal} -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgettextpo/gnulib-m4 |
0b9000b2 | 354 | %{__autoconf} |
503b3e73 | 355 | %{__autoheader} |
0b9000b2 | 356 | %{__automake} |
357 | cd .. | |
c1f6fb1a | 358 | %{__aclocal} -I m4 |
925984fb JB |
359 | %{__autoconf} |
360 | %{__automake} | |
6d2d24f7 | 361 | %configure \ |
7e71e93c | 362 | %{?with_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \ |
514889a3 | 363 | --enable-nls \ |
fac9633f | 364 | %{!?with_dotnet:--disable-csharp} \ |
365 | %{?with_dotnet:--enable-csharp=mono} \ | |
c1f6fb1a | 366 | --without-cvs \ |
7e731dbc KK |
367 | --without-included-gettext \ |
368 | %{?with_bootstrap:--with-included-glib} \ | |
369 | %{?with_bootstrap:--with-included-libcroco} | |
5034552a AM |
370 | %{__make} \ |
371 | GMSGFMT=`pwd`/gettext-tools/src/msgfmt | |
e69a4abf | 372 | |
225257d7 | 373 | # msgfmt has been built, so now we can update pl.gmos |
51f9c57f JB |
374 | %{__make} pl.gmo -C gettext-runtime/po \ |
375 | GMSGFMT=`pwd`/gettext-tools/src/msgfmt | |
225257d7 JB |
376 | %{__make} pl.gmo -C gettext-tools/po \ |
377 | GMSGFMT=`pwd`/gettext-tools/src/msgfmt | |
378 | ||
7e71e93c JB |
379 | %if %{with xemacs} |
380 | cd gettext-tools/misc | |
381 | EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el | |
382 | %endif | |
e2f3a7d9 | 383 | |
e69a4abf | 384 | %install |
385 | rm -rf $RPM_BUILD_ROOT | |
f5c43e32 AF |
386 | install -d $RPM_BUILD_ROOT/bin |
387 | ||
7e71e93c JB |
388 | %{__make} install \ |
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 |
132f5218 | 394 | install gettext-tools/gnulib-lib/.libs/libgettextlib.a \ |
5610ebc0 | 395 | gettext-tools/src/.libs/libgettextsrc.a $RPM_BUILD_ROOT%{_libdir} |
4252c7f8 | 396 | |
c1f6fb1a JB |
397 | #install archive-cvs/archive-*.tar.gz $RPM_BUILD_ROOT%{_datadir}/gettext |
398 | #rm $RPM_BUILD_ROOT%{_datadir}/gettext/archive.tar.gz | |
1cd104b6 | 399 | |
5da74ad2 | 400 | rm -r $RPM_BUILD_ROOT%{_docdir}/gettext |
667db4dd ER |
401 | rm -r $RPM_BUILD_ROOT%{_docdir}/libasprintf |
402 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir | |
5da74ad2 | 403 | |
0b9000b2 | 404 | %find_lang %{name}-runtime |
405 | %find_lang %{name}-tools | |
a04d6a92 | 406 | |
3f6e57e9 JB |
407 | %clean |
408 | rm -rf $RPM_BUILD_ROOT | |
409 | ||
22b12be3 | 410 | %post devel |
5610ebc0 | 411 | /sbin/ldconfig |
8317dfb8 | 412 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
a04d6a92 | 413 | |
0d93a603 | 414 | %postun devel |
5610ebc0 | 415 | /sbin/ldconfig |
8317dfb8 | 416 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
a04d6a92 | 417 | |
b438f025 JB |
418 | %post -n libasprintf -p /sbin/ldconfig |
419 | %postun -n libasprintf -p /sbin/ldconfig | |
420 | ||
c1f6fb1a | 421 | %post -n libasprintf-devel -p /sbin/postshell |
27802fd9 | 422 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b438f025 | 423 | |
c1f6fb1a | 424 | %postun -n libasprintf-devel -p /sbin/postshell |
27802fd9 | 425 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b438f025 | 426 | |
0b9000b2 | 427 | %files -f %{name}-runtime.lang |
fc2477e5 | 428 | %defattr(644,root,root,755) |
c1f6fb1a JB |
429 | %attr(755,root,root) /bin/gettext |
430 | %attr(755,root,root) /bin/ngettext | |
7e71e93c JB |
431 | %attr(755,root,root) %{_bindir}/envsubst |
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 | |
0b9000b2 | 438 | %files devel -f %{name}-tools.lang |
22b12be3 | 439 | %defattr(644,root,root,755) |
5610ebc0 | 440 | %doc AUTHORS ChangeLog NEWS README THANKS |
c1f6fb1a JB |
441 | %attr(755,root,root) %{_bindir}/gettext.sh |
442 | %attr(755,root,root) %{_bindir}/gettextize | |
443 | %attr(755,root,root) %{_bindir}/msg* | |
444 | %attr(755,root,root) %{_bindir}/recode-sr-latin | |
445 | %attr(755,root,root) %{_bindir}/xgettext | |
5610ebc0 JB |
446 | %attr(755,root,root) %{_libdir}/libgettext*.so |
447 | %{_libdir}/libgettext*.la | |
b438f025 | 448 | # libgettextpo is for other programs, not used by gettext tools themselves |
5610ebc0 | 449 | %attr(755,root,root) %{_libdir}/libgettextpo.so.*.*.* |
667db4dd | 450 | %attr(755,root,root) %ghost %{_libdir}/libgettextpo.so.0 |
b438f025 | 451 | %attr(755,root,root) %{_libdir}/preloadable_libintl.so |
f3086ae6 JB |
452 | %attr(755,root,root) %{_libdir}/gettext/hostname |
453 | %attr(755,root,root) %{_libdir}/gettext/project-id | |
454 | %attr(755,root,root) %{_libdir}/gettext/urlget | |
455 | %attr(755,root,root) %{_libdir}/gettext/user-email | |
b438f025 | 456 | %{_includedir}/gettext-po.h |
c1f6fb1a | 457 | %{_aclocaldir}/*.m4 |
b438f025 JB |
458 | %{_infodir}/gettext*.info* |
459 | %{_mandir}/man1/gettextize.1* | |
460 | %{_mandir}/man1/msg*.1* | |
48182994 | 461 | %{_mandir}/man1/recode-sr-latin.1* |
b438f025 JB |
462 | %{_mandir}/man1/xgettext.1* |
463 | %{_mandir}/man3/* | |
464 | ||
477b7b4d MM |
465 | %{_datadir}/gettext/ABOUT-NLS |
466 | %attr(755,root,root) %{_datadir}/gettext/config.rpath | |
467 | %{_datadir}/gettext/gettext.h | |
468 | %dir %{_datadir}/gettext/intl | |
5610ebc0 | 469 | %{_datadir}/gettext/intl/[!c]* |
477b7b4d MM |
470 | %attr(755,root,root) %{_datadir}/gettext/intl/config.charset |
471 | %{_datadir}/gettext/msgunfmt.tcl | |
477b7b4d MM |
472 | %{_datadir}/gettext/po |
473 | %dir %{_datadir}/gettext/projects | |
474 | %{_datadir}/gettext/projects/index | |
475 | %attr(755,root,root) %{_datadir}/gettext/projects/team-address | |
476 | %dir %{_datadir}/gettext/projects/GNOME | |
477 | %{_datadir}/gettext/projects/GNOME/teams.* | |
478 | %attr(755,root,root) %{_datadir}/gettext/projects/GNOME/team-address | |
479 | %attr(755,root,root) %{_datadir}/gettext/projects/GNOME/trigger | |
480 | %dir %{_datadir}/gettext/projects/KDE | |
481 | %{_datadir}/gettext/projects/KDE/teams.* | |
482 | %attr(755,root,root) %{_datadir}/gettext/projects/KDE/team-address | |
483 | %attr(755,root,root) %{_datadir}/gettext/projects/KDE/trigger | |
484 | %dir %{_datadir}/gettext/projects/TP | |
485 | %{_datadir}/gettext/projects/TP/teams.* | |
486 | %attr(755,root,root) %{_datadir}/gettext/projects/TP/team-address | |
487 | %attr(755,root,root) %{_datadir}/gettext/projects/TP/trigger | |
48182994 | 488 | %{_datadir}/gettext/styles |
b438f025 JB |
489 | |
490 | %files static | |
491 | %defattr(644,root,root,755) | |
492 | %{_libdir}/libgettext*.a | |
493 | ||
7e71e93c | 494 | %if %{with asprintf} |
b438f025 JB |
495 | %files -n libasprintf |
496 | %defattr(644,root,root,755) | |
497 | %doc gettext-runtime/libasprintf/{AUTHORS,ChangeLog,README} | |
498 | %attr(755,root,root) %{_libdir}/libasprintf.so.*.*.* | |
667db4dd | 499 | %attr(755,root,root) %ghost %{_libdir}/libasprintf.so.0 |
b438f025 JB |
500 | |
501 | %files -n libasprintf-devel | |
502 | %defattr(644,root,root,755) | |
503 | %attr(755,root,root) %{_libdir}/libasprintf.so | |
504 | %{_libdir}/libasprintf.la | |
505 | %{_includedir}/autosprintf.h | |
506 | %{_infodir}/autosprintf.info* | |
507 | ||
508 | %files -n libasprintf-static | |
509 | %defattr(644,root,root,755) | |
510 | %{_libdir}/libasprintf.a | |
0fae75f7 | 511 | %endif |
e2f3a7d9 | 512 | |
5ad5427b | 513 | %if %{build_java} |
5610ebc0 JB |
514 | %files java |
515 | %defattr(644,root,root,755) | |
516 | %{_datadir}/gettext/libintl.jar | |
517 | ||
477b7b4d MM |
518 | %files java-devel |
519 | %defattr(644,root,root,755) | |
5610ebc0 | 520 | %doc gettext-runtime/intl-java/javadoc2 |
f3086ae6 JB |
521 | %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.DumpResource |
522 | %attr(755,root,root) %{_libdir}/gettext/gnu.gettext.GetURL | |
48182994 | 523 | %{_datadir}/gettext/javaversion.class |
477b7b4d MM |
524 | %endif |
525 | ||
7e71e93c | 526 | %if %{with xemacs} |
477b7b4d MM |
527 | %files -n xemacs-po-mode-pkg |
528 | %defattr(644,root,root,755) | |
529 | %dir %{_datadir}/xemacs-packages/lisp/po-mode | |
530 | %{_datadir}/xemacs-packages/lisp/po-mode/*.elc | |
531 | %endif | |
532 | ||
533 | %files autopoint | |
534 | %defattr(644,root,root,755) | |
535 | %attr(755,root,root) %{_bindir}/autopoint | |
c1f6fb1a | 536 | %{_datadir}/gettext/archive.dir.tar.gz |
7a725ce9 | 537 | %{_mandir}/man1/autopoint.1* |
fac9633f | 538 | |
18d689cd | 539 | %if %{with dotnet} |
fac9633f | 540 | %files -n dotnet-gettext |
541 | %defattr(644,root,root,755) | |
542 | %{_libdir}/GNU.Gettext.dll | |
543 | %{_libdir}/gettext/msgfmt.net.exe | |
544 | %{_libdir}/gettext/msgunfmt.net.exe | |
18d689cd | 545 | %endif |