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