3 # - consider using system libmagic not internal libfmagic
4 # (but internal has different method of passing output)
5 # - after ac drop amd64 patch and make x86_64 generic arch + subarchs amd64 and ia32e
8 %bcond_with distver # build with distversion field
9 %bcond_with static # build static rpmi (not supported at the moment)
10 %bcond_without apidocs # don't generate documentation with doxygen
11 %bcond_without pkgnameinautoreq # don't put package name in autogenerated dependancy
12 %bcond_without python # don't build python bindings
13 %bcond_without selinux # dont enable selinux support
14 # force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
15 # force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
16 # force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
19 # versions of required libraries
20 %define reqdb_ver 4.2.50-1
21 %define reqpopt_ver 1.10.1
22 %define beecrypt_ver 2:4.1.0
23 %define rpm_macros_rev 1.188
24 Summary: RPM Package Manager
25 Summary(de): RPM Packet-Manager
26 Summary(es): Gestor de paquetes RPM
27 Summary(pl): Aplikacja do zarz±dzania pakietami RPM
28 Summary(pt_BR): Gerenciador de pacotes RPM
29 Summary(ru): íÅÎÅÄÖÅÒ ÐÁËÅÔÏ× ÏÔ RPM
30 Summary(uk): íÅÎÅÄÖÅÒ ÐÁËÅÔ¦× ×¦Ä RPM
37 #Source0: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.2.x/%{name}-%{version}.%{snap}.tar.gz
38 # Snap tarball is generated from rpm-4_4 branch
39 Source0: ftp://jbj.org/pub/rpm-4.4.x/%{name}-%{version}.tar.gz
40 # Source0-md5: 90ded9047b1b69d918c6c7c7b56fd7a9
41 Source1: %{name}.groups
42 Source2: %{name}.platform
43 Source3: %{name}-install-tree
44 Source4: %{name}-find-spec-bcond
45 Source5: %{name}-find-lang
46 Source6: %{name}-groups-po.awk
47 Source7: %{name}-compress-doc
48 Source8: %{name}-check-files
49 Source9: %{name}-php-provides
50 Source10: %{name}-php-requires
51 Source11: %{name}.macros
53 Source13: %{name}-user_group.sh
54 Source14: %{name}.sysconfig
57 Source32: pldnotify.awk
58 # http://svn.pld-linux.org/banner.sh/
60 Patch0: %{name}-pl.po.patch
61 Patch1: %{name}-rpmrc.patch
62 Patch2: %{name}-arch.patch
63 Patch3: %{name}-rpmpopt.patch
64 Patch4: %{name}-perl-macros.patch
65 Patch5: %{name}-perl-req-perlfile.patch
66 Patch6: %{name}-noexpand.patch
67 Patch7: %{name}-scripts-closefds.patch
68 Patch8: %{name}-python-macros.patch
69 Patch9: %{name}-gettext-in-header.patch
70 Patch10: %{name}-compress-doc.patch
71 Patch11: %{name}-build.patch
72 Patch12: %{name}-system_libs.patch
73 Patch13: %{name}-bb-and-short-circuit.patch
74 Patch14: %{name}-etc_dir.patch
75 Patch15: %{name}-system_libs-more.patch
76 Patch16: %{name}-php-deps.patch
77 Patch17: %{name}-ldconfig-always.patch
78 Patch18: %{name}-perl_req.patch
79 Patch19: %{name}-no-bin-env.patch
80 Patch20: %{name}-magic-usesystem.patch
81 Patch21: %{name}-dontneedutils.patch
82 Patch22: %{name}-provides-dont-obsolete.patch
83 Patch23: %{name}-examplesaredoc.patch
84 Patch24: %{name}-po.patch
85 Patch25: %{name}-amd64.patch
86 Patch26: %{name}-notsc.patch
87 Patch27: %{name}-hack-norpmlibdep.patch
88 Patch28: %{name}-makefile-no_myLDADD_deps.patch
89 Patch29: %{name}-libdir64.patch
90 Patch30: %{name}-libdir-links.patch
91 Patch31: %{name}-missing-prototypes.patch
92 Patch32: %{name}-pld-autodep.patch
93 Patch33: %{name}-rpmsq.patch
94 Patch34: %{name}-epoch0.patch
95 Patch35: %{name}-perl_req-INC_dirs.patch
96 Patch36: %{name}-debuginfo.patch
97 Patch37: %{name}-doxygen_hack.patch
98 Patch38: %{name}-distver.patch
99 Patch39: %{name}-gcc4.patch
100 URL: http://www.rpm.org/
102 BuildRequires: autoconf >= 2.52
103 BuildRequires: automake
104 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
105 BuildRequires: bzip2-devel >= 1.0.1
106 BuildRequires: db-devel >= %{reqdb_ver}
107 %{?with_apidocs:BuildRequires: doxygen}
108 BuildRequires: elfutils-devel
109 BuildRequires: findutils
110 BuildRequires: gettext-devel >= 0.11.4-2
111 #BuildRequires: libmagic-devel
112 %{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
113 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
114 BuildRequires: libstdc++-devel
115 BuildRequires: libtool
116 BuildRequires: libxml2-devel
117 BuildRequires: neon-devel >= 0.24.7-3
118 BuildRequires: patch >= 2.2
119 BuildRequires: popt-devel >= %{reqpopt_ver}
120 %{?with_python:BuildRequires: python-devel >= 2.2}
121 BuildRequires: python-modules >= 2.2
122 BuildRequires: readline-devel
123 BuildRequires: rpm-perlprov
124 BuildRequires: rpm-pythonprov
125 BuildRequires: zlib-devel
127 # Require static library only for static build
128 BuildRequires: beecrypt-static >= %{beecrypt_ver}
129 BuildRequires: bzip2-static >= 1.0.2-5
130 BuildRequires: db-static >= %{reqdb_ver}
131 BuildRequires: glibc-static >= 2.2.94
132 BuildRequires: elfutils-static
133 #BuildRequires: libmagic-static
134 %{?with_selinux:BuildRequires: libselinux-static >= 1.18}
135 BuildRequires: popt-static >= %{reqpopt_ver}
136 BuildRequires: zlib-static
138 Requires: beecrypt >= %{beecrypt_ver}
139 Requires: popt >= %{reqpopt_ver}
140 Requires: %{name}-lib = %{version}-%{release}
141 %{!?with_static:Obsoletes: rpm-utils-static}
142 Conflicts: glibc < 2.2.92
143 # avoid SEGV caused by mixed db versions
144 Conflicts: poldek < 0.18.1-16
145 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
147 %define _binary_payload w9.gzdio
148 %define _noPayloadPrefix 1
150 # don't require very fresh rpm.macros to build
151 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
152 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
154 # stabilize new build environment
155 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
156 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
157 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
159 %define _rpmlibdir /usr/lib/rpm
162 RPM is a powerful package manager, which can be used to build,
163 install, query, verify, update, and uninstall individual software
164 packages. A package consists of an archive of files, and package
165 information, including name, version, and description.
168 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
169 Installation, Anfrage, Verifizierung, Aktualisierung und
170 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
171 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
175 RPM es un poderoso administrador de paquetes, que puede ser usado para
176 construir, instalar, pesquisar, verificar, actualizar y desinstalar
177 paquetes individuales de software. Un paquete consiste en un
178 almacenaje de archivos, y información sobre el paquete, incluyendo
179 nombre, versión y descripción.
182 RPM jest doskona³ym programem zarz±dzaj±cym pakietami. Umo¿liwia on
183 przebudowanie, instalacjê czy weryfikacjê dowolnego pakietu.
184 Informacje dotycz±ce ka¿dego pakietu, takie jak jego opis, lista
185 plików wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
186 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
187 odpytywania programu rpm.
189 %description -l pt_BR
190 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
191 construir, instalar, pesquisar, verificar, atualizar e desinstalar
192 pacotes individuais de software. Um pacote consiste de um conjunto de
193 arquivos e informações adicionais, incluindo nome, versão e descrição
194 do pacote, permissões dos arquivos, etc.
197 RPM - ÜÔÏ ÍÏÝÎÙÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔÏ×, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ÄÌÑ
198 ÓÏÚÄÁÎÉÑ, ÉÎÓÔÁÌÌÑÃÉÉ, ÚÁÐÒÏÓÏ× (query), ÐÒÏ×ÅÒËÉ, ÏÂÎÏ×ÌÅÎÉÑ É
199 ÕÄÁÌÅÎÉÑ ÐÒÏÇÒÁÍÍÎÙÈ ÐÁËÅÔÏ×. ðÁËÅÔ ÓÏÓÔÏÉÔ ÉÚ ÆÁÊÌÏ×ÏÇÏ ÁÒÈÉ×Á É
200 ÓÌÕÖÅÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ, ×ËÌÀÞÁÀÝÅÊ ÎÁÚ×ÁÎÉÅ, ×ÅÒÓÉÀ, ÏÐÉÓÁÎÉÅ É ÄÒÕÇÉÅ
204 RPM - ÃÅ ÐÏÔÕÖÎÉÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔ¦×, ÝÏ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÄÌÑ
205 ÓÔ×ÏÒÅÎÎÑ, ¦ÎÓÔÁÌÑæ§, ÚÁÐÉÔ¦× (query), ÐÅÒÅצÒËÉ, ÐÏÎÏ×ÌÅÎÎÑ ÔÁ
206 ×ÉÄÁÌÅÎÎÑ ÐÒÏÇÒÁÍÎÉÈ ÐÁËÅÔ¦×. ðÁËÅÔ ÓËÌÁÄÁ¤ÔØÓÑ Ú ÆÁÊÌÏ×ÏÇÏ ÁÒȦ×Õ ÔÁ
207 ÓÌÕÖÂÏ×ϧ ¦ÎÆÏÒÍÁæ§, ÝÏ Í¦ÓÔÉÔØ ÎÁÚ×Õ, ×ÅÒÓ¦À, ÏÐÉÓ ÔÁ ¦ÎÛÕ
208 ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÐÁËÅÔ.
211 Summary: RPMs library
212 Summary(pl): Biblioteki RPM-a
214 Requires: db >= %{reqdb_ver}
215 %{?with_selinux:BuildRequires: libselinux >= 1.18}
216 Requires: popt >= %{reqpopt_ver}
217 %{?with_distver:Provides: rpm-lib(distver)}
218 # avoid SEGV caused by mixed db versions
219 Conflicts: poldek < 0.18.1-16
224 %description lib -l pl
228 Summary: Header files for rpm libraries
229 Summary(de): Header-Dateien für rpm Libraries
230 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
231 Summary(pl): Pliki nag³ówkowe bibliotek rpm
232 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
233 Summary(ru): èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
234 Summary(uk): èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
235 Group: Development/Libraries
236 Requires: %{name}-lib = %{version}-%{release}
237 Requires: beecrypt-devel >= %{beecrypt_ver}
238 Requires: bzip2-devel
239 Requires: db-devel >= %{reqdb_ver}
240 Requires: elfutils-devel
241 %{?with_selinux:Requires: libselinux-devel}
242 Requires: popt-devel >= %{reqpopt_ver}
246 The RPM packaging system includes C libraries that make it easy to
247 manipulate RPM packages and databases. They are intended to ease the
248 creation of graphical package managers and other tools that need
249 intimate knowledge of RPM packages. This package contains header files
252 %description devel -l de
253 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
254 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
255 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
256 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
258 %description devel -l es
259 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
260 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
261 facilitar la creación de administradores gráficos de paquetes y otras
262 herramientas que necesiten un conocimiento profundo de paquetes RPM.
264 %description devel -l pl
265 System RPM zawiera biblioteki C, które u³atwiaj± manipulowanie
266 pakietami RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
267 graficznych programów zarz±dzaj±cych pakietami oraz innych narzêdzi,
268 które wymagaj± szczegó³owej wiedzy na temat pakietów RPM. Ten pakiet
269 zawiera pliki nag³ówkowe wspomnianych bibliotek.
271 %description devel -l pt_BR
272 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
273 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
274 facilitar a criação de gerenciadores gráficos de pacotes e outras
275 ferramentas que precisem de conhecimento profundo de pacotes RPM.
277 %description devel -l ru
278 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
279 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
280 üÔÁ ÂÉÂÌÉÏÔÅËÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÏÂÌÅÇÞÅÎÉÑ ÓÏÚÄÁÎÉÑ ÇÒÁÆÉÞÅÓËÉÈ
281 ÐÁËÅÔÎÙÈ ÍÅÎÅÄÖÅÒÏ× É ÄÒÕÇÉÈ ÕÔÉÌÉÔ, ËÏÔÏÒÙÍ ÎÅÏÂÈÏÄÉÍÏ ÒÁÂÏÔÁÔØ Ó
284 %description devel -l uk
285 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
286 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÑ Â¦Â̦ÏÔÅËÁ
287 ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ÐÏÌÅÇÛÅÎÎÑ ÓÔ×ÏÒÅÎÎÑ ÇÒÁƦÞÎÉÈ ÐÁËÅÔÎÉÈ ÍÅÎÅÄÖÅÒ¦× ÔÁ
288 ¦ÎÛÉÈ ÕÔÉ̦Ô, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ RPM.
291 Summary: RPM static libraries
292 Summary(de): RPMs statische Libraries
293 Summary(pl): Biblioteki statyczne RPM-a
294 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
295 Summary(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
296 Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
297 Group: Development/Libraries
298 Requires: %{name}-devel = %{version}-%{release}
299 Requires: beecrypt-static >= %{beecrypt_ver}
300 Requires: bzip2-static
301 Requires: db-static >= %{reqdb_ver}
302 Requires: elfutils-static
303 Requires: popt-static >= %{reqpopt_ver}
304 Requires: zlib-static
307 RPM static libraries.
309 %description static -l de
310 RPMs statische Libraries.
312 %description static -l pl
313 Biblioteki statyczne RPM-a.
315 %description static -l pt_BR
316 Bibliotecas estáticas para desenvolvimento.
318 %description static -l ru
319 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
320 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
321 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ RPM.
323 %description static -l uk
324 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
325 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÅ ÓÔÁÔÉÞÎÁ
329 Summary: Additional utilities for managing rpm packages and database
330 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
331 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
332 Group: Applications/File
333 Requires: %{name} = %{version}-%{release}
334 Requires: popt >= %{reqpopt_ver}
337 Additional utilities for managing rpm packages and database.
339 %description utils -l de
340 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
342 %description utils -l pl
343 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
346 Summary: Additional utilities for managing rpm packages and database
347 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
348 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
349 Group: Applications/File
350 Requires: %{name}-utils = %{version}-%{release}
351 Requires: popt >= %{reqpopt_ver}
353 %description utils-perl
354 Additional utilities for managing rpm packages and database.
356 %description utils-perl -l de
357 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
359 %description utils-perl -l pl
360 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
362 %package utils-static
363 Summary: Static rpm utilities
364 Summary(pl): Statyczne narzêdzia rpm
365 Group: Applications/System
366 Requires: %{name} = %{version}-%{release}
368 %description utils-static
369 Static rpm utilities for repairing system in case something with
370 shared libraries used by rpm become broken. Currently it contains rpmi
371 binary, which can be used to install/upgrade/remove packages without
372 using shared libraries (well, in fact with exception of NSS modules).
374 %description utils-static -l pl
375 Statyczne narzêdzia rpm do naprawy systemu w przypadku zepsucia czego¶
376 zwi±zanego z bibliotekami wspó³dzielonymi u¿ywanymi przez rpm-a.
377 Aktualnie pakiet zawiera binarkê rpmi, któr± mo¿na u¿yæ do instalacji,
378 uaktualniania lub usuwania pakietów bez udzia³u bibliotek statycznych
379 (z wyj±tkiem modu³ów NSS).
382 Summary: Scripts for building binary RPM packages
383 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
384 Summary(pl): Skrypty pomocnicze do budowania binarnych RPM-ów
385 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
386 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
387 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
388 Group: Applications/File
389 Requires(pre): findutils
390 Requires: %{name}-utils = %{version}-%{release}
395 Requires: chrpath >= 0.10-4
399 Requires: file >= 4.01
403 Requires: gcc >= 3.0.3
406 # because of -mtune in rpmrc
407 Requires: gcc >= 5:3.4
412 Requires: glibc-devel
417 Requires: popt >= 1.7
422 Provides: rpmbuild(macros) = %{rpm_macros_rev}
423 Provides: rpmbuild(noauto) = 3
424 # because of -fvisibility-inlines-hidden in rpm.macros
425 Conflicts: gcc-c++ < 5:3.4
427 Conflicts: automake < 1:1.7.9-2
428 Conflicts: libtool < 2:1.5-13
432 Scripts for building binary RPM packages.
434 %description build -l de
435 Scripts fürs Bauen binärer RPM-Pakete.
437 %description build -l pl
438 Skrypty pomocnicze do budowania binarnych RPM-ów.
440 %description build -l pt_BR
441 Este pacote contém scripts e programas executáveis que são usados para
442 construir pacotes usando o RPM.
444 %description build -l ru
445 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
446 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
448 %description build -l uk
449 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
453 Summary: Scripts for managing .spec files and building RPM packages
454 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
455 Summary(pl): Skrypty pomocnicze do zarz±dznia plikami .spec i budowania RPM-ów
456 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
457 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
458 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
459 Group: Applications/File
460 Requires: %{name}-build = %{version}-%{release}
465 %description build-tools
466 Scripts for managing .spec files and building RPM packages.
468 %description build-tools -l de
469 Scripts fürs Bauen RPM-Pakete.
471 %description build-tools -l pl
472 Skrypty pomocnicze do zarz±dzania plikami .spec i do budowania RPM-ów.
474 %description build-tools -l pt_BR
475 Este pacote contém scripts e programas executáveis que são usados para
476 construir pacotes usando o RPM.
478 %description build-tools -l ru
479 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
480 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
482 %description build-tools -l uk
483 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
487 Summary: Additional utilities for checking perl provides/requires in rpm packages
488 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
489 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
490 Group: Applications/File
491 Requires: %{name} = %{version}-%{release}
493 Requires: perl-modules
495 %description perlprov
496 Additional utilities for checking perl provides/requires in rpm
499 %description perlprov -l de
500 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
502 %description perlprov -l pl
503 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
507 Summary: Python macros, which simplifies creation of rpm packages with Python software
508 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
509 Group: Applications/File
510 Requires: %{name} = %{version}-%{release}
511 Requires: python-modules
513 %description pythonprov
514 Python macros, which simplifies creation of rpm packages with Python
517 %description pythonprov -l pl
518 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
521 %package php-pearprov
522 Summary: Additional utilities for managing rpm packages and database
523 Summary(pl): Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm
524 Group: Applications/File
525 Requires: %{name} = %{version}-%{release}
527 %description php-pearprov
528 Additional utilities for checking php pear provides/requires in rpm
531 %description php-pearprov -l pl
532 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
535 %package -n python-rpm
536 Summary: Python interface to RPM library
537 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
538 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
539 Group: Development/Languages/Python
540 Requires: %{name} = %{version}-%{release}
541 %pyrequires_eq python
542 Obsoletes: rpm-python
544 %description -n python-rpm
545 The rpm-python package contains a module which permits applications
546 written in the Python programming language to use the interface
547 supplied by RPM (RPM Package Manager) libraries.
549 This package should be installed if you want to develop Python
550 programs that will manipulate RPM packages and databases.
552 %description -n python-rpm -l pl
553 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
554 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
556 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
557 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
559 %description -n python-rpm -l pt_BR
560 O pacote rpm-python contém um módulo que permite que aplicações
561 escritas em Python utilizem a interface fornecida pelas bibliotecas
562 RPM (RPM Package Manager).
564 Esse pacote deve ser instalado se você quiser desenvolver programas em
565 Python para manipular pacotes e bancos de dados RPM.
568 Summary: RPM API documentation and guides
569 Summary(pl): Documentacja API RPM-a i przewodniki
573 Documentation for RPM API and guides in HTML format generated
574 from rpm sources by doxygen.
576 %description apidocs -l pl
577 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane
578 ze ¼rode³ RPM-a przez doxygen.
584 # temporarily moved after patch0 - messes too much in pl.po
603 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
604 cp -f platform.in macros.pld.in
605 echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
606 echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
607 echo '# obsoleted file' > macros.python
608 echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
609 echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
610 install %{SOURCE5} scripts/find-lang.sh
611 install %{SOURCE9} scripts/php.prov.in
612 install %{SOURCE10} scripts/php.req.in
613 install %{SOURCE12} scripts/perl.prov
614 cat %{SOURCE11} >> macros.in
633 %{?with_distver:%patch38 -p1}
639 mv -f perl.req perl.req.in
640 mv -f perl.prov perl.prov.in
644 mv -f po/{sr,sr@Latn}.po
646 rm -rf neon zlib libelf db db3 popt rpmdb/db.h
648 # generate Group translations to *.po
649 awk -f %{SOURCE6} %{SOURCE1}
651 # update macros paths
652 for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
653 sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
657 # ... and make some cleanings
658 rm -fr $(find ./ -type d -name CVS )
659 rm -f $(find ./ -type f -name ".cvsignore" )
677 # config.guess doesn't handle athlon, so we have to change it by hand.
678 # rpm checks for CPU type at runtime, but it looks better
679 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' \
680 -e 's|@host_cpu@|%{_target_cpu}|' macros.in > macros.tmp
681 mv -f macros.tmp macros.in
683 # pass CC and CXX too in case of building with some older configure macro
690 %{?with_apidoc:--with-apidocs} \
691 %{?with_pkgnameinautoreq:--enable-adding-packages-names-in-autogenerated-dependancies} \
692 %{?with_python:--with-python=auto} \
693 %{!?with_python:--without-python} \
694 %{!?with_selinux:--without-selinux} \
697 # file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
702 pylibdir=%{py_libdir} \
703 myLDFLAGS="%{rpmldflags}" \
705 debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt"
707 # %{!?with_static:rpm_LDFLAGS="\$(myLDFLAGS)"} \
708 %{?with_apidocs:%{__make} doxygen}
711 rm -rf $RPM_BUILD_ROOT
712 install -d $RPM_BUILD_ROOT{/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm}
715 DESTDIR=$RPM_BUILD_ROOT \
716 pylibdir=%{py_libdir} \
717 pkgbindir="%{_bindir}"
719 rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
720 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
721 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
723 install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
724 install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
725 install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
727 install %{SOURCE1} doc/manual/groups
728 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
729 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
730 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
731 install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
732 install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
733 install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
734 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
735 install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
737 install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
738 install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
739 install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
740 install %{SOURCE33} $RPM_BUILD_ROOT%{_bindir}/banner.sh
742 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
745 ix86re=$(echo "(%{ix86})"|sed 's/ /|/g')
746 perl -p -i -e 's/^(buildarchtranslate: '"$ix86re"': ).*/\1%{_target_cpu}/' \
747 $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
750 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
751 # customized rpm macros - global for host
753 #%%_install_langs pl_PL:en_US
756 # remove or replace with file_contexts path if you want to use custom
757 # SELinux file contexts policy instead of one stored in packages payload
758 %%_install_file_context_path %%{nil}
759 %%_verify_file_context_path %%{nil}
762 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
763 # global list of files (regexps) which don't generate Provides
765 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
766 # global list of script capabilities (regexps) not to be used in Provides
768 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
769 # global list of files (regexps) which don't generate Requires
773 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
774 # global list of script capabilities (regexps) not to be used in Requires
776 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
777 # global list of capabilities (SONAME, perl(module), php(module) regexps)
778 # which don't generate dependencies on package NAMES
779 # -- OpenGL implementation
789 # -- X11 implementation
832 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
833 # global list of file masks not to be compressed in DOCDIR
836 # for rpm -e|-U --repackage
837 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
838 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
841 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
842 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
843 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
846 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
847 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
849 for f in $RPM_BUILD_ROOT%{_datadir}/locale/{en_RN,eu_ES,gl,hu,ro,wa,zh,zh_CN.GB2312}/LC_MESSAGES/rpm.mo ; do
850 [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f
855 cp -a doc/manual manual
856 rm -f manual/Makefile*
859 rm -rf $RPM_BUILD_ROOT
861 %post lib -p /sbin/ldconfig
862 %postun lib -p /sbin/ldconfig
865 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
867 %files -f %{name}.lang
868 %defattr(644,root,root,755)
869 %doc RPM-PGP-KEY CHANGES manual
871 %attr(755,root,root) /bin/rpm
872 #%attr(755,root,root) %{_bindir}/rpmdb
873 #%attr(755,root,root) %{_bindir}/rpmquery
874 #%attr(755,root,root) %{_bindir}/rpmsign
875 #%attr(755,root,root) %{_bindir}/rpmverify
877 %dir %{_sysconfdir}/rpm
878 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
879 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rpm
881 %{_mandir}/man8/rpm.8*
882 %lang(fr) %{_mandir}/fr/man8/rpm.8*
883 %lang(ja) %{_mandir}/ja/man8/rpm.8*
884 %lang(ko) %{_mandir}/ko/man8/rpm.8*
885 %lang(pl) %{_mandir}/pl/man8/rpm.8*
886 %lang(ru) %{_mandir}/ru/man8/rpm.8*
887 %lang(sk) %{_mandir}/sk/man8/rpm.8*
890 %dir %attr(700,root,root) /var/spool/repackage
892 /var/lock/rpm/transaction
895 #%attr(755,root,root) %{_rpmlibdir}/rpmd
896 #%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
897 #%attr(755,root,root) %{_rpmlibdir}/rpmk
898 #%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
900 %doc %attr(755,root,root) %{_rpmlibdir}/convertrpmrc.sh
901 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
903 %attr(755,root,root) %{_bindir}/banner.sh
906 %{_rpmlibdir}/rpmpopt*
910 %defattr(644,root,root,755)
911 %attr(755,root,root) /%{_lib}/librpm*-*.so
912 %attr(755,root,root) %{_libdir}/librpm*-*.so
915 %defattr(644,root,root,755)
917 %{_libdir}/librpm*.la
918 %attr(755,root,root) %{_libdir}/librpm.so
919 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
920 %attr(755,root,root) %{_libdir}/librpmio.so
921 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
922 %attr(755,root,root) %{_libdir}/librpmdb.so
923 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
924 %attr(755,root,root) %{_libdir}/librpmbuild.so
927 %defattr(644,root,root,755)
931 %defattr(644,root,root,755)
932 %attr(755,root,root) %{_bindir}/debugedit
933 %attr(755,root,root) %{_bindir}/rpm2cpio
934 %attr(755,root,root) %{_bindir}/rpmcache
935 %attr(755,root,root) %{_bindir}/rpmdeps
936 %attr(755,root,root) %{_bindir}/rpmgraph
937 %attr(755,root,root) %{_bindir}/rpmfile
938 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
939 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
940 %attr(755,root,root) %{_rpmlibdir}/tgpg
941 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
942 %{_mandir}/man8/rpm2cpio.8*
943 %{_mandir}/man8/rpmdeps.8*
944 %{_mandir}/man8/rpmcache.8*
945 %{_mandir}/man8/rpmgraph.8*
946 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
947 %lang(ja) %{_mandir}/ja/man8/rpmcache.8*
948 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
949 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
950 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
951 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
952 %lang(pl) %{_mandir}/pl/man8/rpmcache.8*
953 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
954 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
957 %defattr(644,root,root,755)
958 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
960 #%%{_rpmlibdir}/rpm.daily
961 #%%{_rpmlibdir}/rpm.log
962 #%%{_rpmlibdir}/rpm.xinetd
966 %defattr(644,root,root,755)
967 %attr(755,root,root) %{_bindir}/rpm[ieu]
968 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
972 %defattr(644,root,root,755)
973 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/noauto*
974 %attr(755,root,root) %{_rpmlibdir}/compress-doc
975 %attr(755,root,root) %{_rpmlibdir}/cross-build
976 #%attr(755,root,root) %{_rpmlibdir}/find-provides
977 #%attr(755,root,root) %{_rpmlibdir}/find-provides-wrapper
978 #%attr(755,root,root) %{_rpmlibdir}/find-requires
979 #%attr(755,root,root) %{_rpmlibdir}/find-requires-wrapper
980 #%attr(755,root,root) %{_rpmlibdir}/find-rpm-provides
981 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
982 %attr(755,root,root) %{_rpmlibdir}/find-lang.sh
983 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
984 %attr(755,root,root) %{_rpmlibdir}/config.*
985 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
986 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
987 %attr(755,root,root) %{_rpmlibdir}/brp-*
988 %attr(755,root,root) %{_rpmlibdir}/check-files
989 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
990 #%attr(755,root,root) %{_rpmlibdir}/cpanflute
991 #%attr(755,root,root) %{_rpmlibdir}/cpanflute2
992 #%attr(755,root,root) %{_rpmlibdir}/Specfile.pm
993 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
994 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides.sh
995 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides2.sh
996 %attr(755,root,root) %{_rpmlibdir}/rpmb
997 %attr(755,root,root) %{_rpmlibdir}/rpmt
998 %{_rpmlibdir}/noarch-*
1001 %{_rpmlibdir}/pentium*
1002 %{_rpmlibdir}/athlon*
1005 %{_rpmlibdir}/alpha*
1008 %{_rpmlibdir}/amd64*
1013 %ifarch mips mipsel mips64 mips64el
1019 %ifarch sparc sparc64
1020 %{_rpmlibdir}/sparc*
1022 # must be here for "Requires: rpm-*prov" to work
1023 %{_rpmlibdir}/macros.perl
1024 %{_rpmlibdir}/macros.php
1025 # not used yet ... these six depend on perl
1026 #%attr(755,root,root) %{_rpmlibdir}/http.req
1027 #%attr(755,root,root) %{_rpmlibdir}/magic.prov
1028 #%attr(755,root,root) %{_rpmlibdir}/magic.req
1029 #%{_rpmlibdir}/sql.prov
1030 #%{_rpmlibdir}/sql.req
1031 #%{_rpmlibdir}/tcl.req
1034 %attr(755,root,root) %{_bindir}/javadeps
1035 %attr(755,root,root) %{_bindir}/gendiff
1036 %attr(755,root,root) %{_bindir}/rpmbuild
1038 %{_mandir}/man1/gendiff.1*
1039 %{_mandir}/man8/rpmbuild.8*
1040 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1041 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1042 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_bindir}/builder
1047 %attr(755,root,root) %{_bindir}/adapter.awk
1048 %attr(755,root,root) %{_bindir}/pldnotify.awk
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_rpmlibdir}/perl.*
1053 #%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1054 #%attr(755,root,root) %{_rpmlibdir}/find-perl-*
1055 #%attr(755,root,root) %{_rpmlibdir}/find-*.perl
1056 #%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
1057 #%attr(755,root,root) %{_rpmlibdir}/find-req.pl
1058 %attr(755,root,root) %{_rpmlibdir}/get_magic.pl
1061 %defattr(644,root,root,755)
1062 %{_rpmlibdir}/macros.python
1063 %{_rpmlibdir}/pythondeps.sh
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_rpmlibdir}/php*
1068 %attr(755,root,root) %{_rpmlibdir}/find-php*
1071 %files -n python-rpm
1072 %defattr(644,root,root,755)
1073 %attr(755,root,root) %{py_sitedir}/*.so
1074 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1075 %attr(755,root,root) %{py_sitedir}/rpm/*.py[co]
1076 %attr(755,root,root) %{py_sitedir}/rpmdb/*.so
1077 %{py_sitedir}/rpmdb/*.py*
1082 %defattr(644,root,root,755)