3 # - use system libmagic not internal libfmagic
4 # - when really needed: _noauto{req,prov} for non-helper-generated deps
7 %bcond_with static # build static rpmi (not supported at the moment)
8 %bcond_without doc # don't generate documentation with doxygen
9 %bcond_without python # don't build python bindings
10 %bcond_without selinux # dont enable selinux support
11 # force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
12 # force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
13 # force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
15 %include /usr/lib/rpm/macros.python
17 # versions of required libraries
18 %define reqdb_ver 4.2.50-1
19 %define reqpopt_ver 1.9
20 %define beecrypt_ver 3.0.0-0.20030610.1
21 %define rpm_macros_rev 1.145
22 Summary: RPM Package Manager
23 Summary(de): RPM Packet-Manager
24 Summary(es): Gestor de paquetes RPM
25 Summary(pl): Aplikacja do zarz±dzania pakietami RPM
26 Summary(pt_BR): Gerenciador de pacotes RPM
27 Summary(ru): íÅÎÅÄÖÅÒ ÐÁËÅÔÏ× ÏÔ RPM
28 Summary(uk): íÅÎÅÄÖÅÒ ÐÁËÅÔ¦× ×¦Ä RPM
35 #Source0: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.2.x/%{name}-%{version}.%{snap}.tar.gz
36 Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.%{snap}.tar.bz2
37 # Source0-md5: c1bc4a2ae441fbd4da8dd90149bab2f2
38 Source1: %{name}.groups
39 Source2: %{name}.platform
40 Source3: %{name}-install-tree
41 Source4: %{name}-find-spec-bcond
42 Source5: %{name}-find-lang
43 Source6: %{name}-groups-po.awk
44 Source7: %{name}-compress-doc
45 Source8: %{name}-check-files
46 Source9: %{name}-php-provides
47 Source10: %{name}-php-requires
48 Source11: %{name}.macros
52 Source32: pldnotify.awk
53 Patch0: %{name}-pl.po.patch
54 Patch1: %{name}-rpmrc.patch
55 Patch2: %{name}-arch.patch
56 Patch3: %{name}-rpmpopt.patch
57 Patch4: %{name}-perl-macros.patch
58 Patch5: %{name}-perl-req-perlfile.patch
59 Patch6: %{name}-glob.patch
60 Patch7: %{name}-noexpand.patch
61 Patch8: %{name}-scripts-closefds.patch
62 Patch9: %{name}-python-macros.patch
63 Patch10: %{name}-gettext-in-header.patch
64 Patch11: %{name}-compress-doc.patch
65 Patch12: %{name}-build.patch
66 Patch13: %{name}-system_libs.patch
67 Patch14: %{name}-bb-and-short-circuit.patch
68 Patch15: %{name}-etc_dir.patch
69 Patch16: %{name}-system_libs-more.patch
70 Patch17: %{name}-php-deps.patch
71 Patch18: %{name}-python-fix.patch
72 Patch19: %{name}-ldconfig-always.patch
73 Patch20: %{name}-perl_req.patch
74 Patch21: %{name}-no-bin-env.patch
75 Patch22: %{name}-magic-usesystem.patch
76 Patch23: %{name}-dontneedutils.patch
77 Patch24: %{name}-provides-dont-obsolete.patch
78 Patch25: %{name}-examplesaredoc.patch
79 Patch26: %{name}-po.patch
80 Patch27: %{name}-amd64.patch
81 Patch28: %{name}-notsc.patch
82 Patch29: %{name}-hack-norpmlibdep.patch
83 Patch30: %{name}-makefile-no_myLDADD_deps.patch
84 Patch31: %{name}-libdir64.patch
85 Patch32: %{name}-libdir-links.patch
86 Patch33: %{name}-context.patch
87 Patch34: %{name}-nls-fixes.patch
88 Patch35: %{name}-missing-prototypes.patch
89 Patch36: %{name}-pld-autodep.patch
90 Patch37: %{name}-rpmsq.patch
91 Patch38: %{name}-file-readelf.patch
92 Patch39: %{name}-pentiumX.patch
93 Patch40: %{name}-epoch0.patch
94 Patch41: %{name}-file-readelf-fix.patch
95 Patch42: %{name}-cpuid.patch
96 Patch43: %{name}-perl_req-INC_dirs.patch
97 Patch44: %{name}-debuginfo.patch
98 URL: http://www.rpm.org/
100 BuildRequires: autoconf >= 2.52
101 BuildRequires: automake
102 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
103 BuildRequires: bzip2-devel >= 1.0.1
104 BuildRequires: db-devel >= %{reqdb_ver}
105 %{?with_doc:BuildRequires: doxygen}
106 BuildRequires: gettext-devel >= 0.11.4-2
107 BuildRequires: elfutils-devel
108 #BuildRequires: libmagic-devel
109 %{?with_selinux:BuildRequires: libselinux-devel}
110 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
111 BuildRequires: libstdc++-devel
112 BuildRequires: libtool
113 BuildRequires: patch >= 2.2
114 BuildRequires: popt-devel >= %{reqpopt_ver}
115 %{?with_python:BuildRequires: python-devel >= 2.2}
116 BuildRequires: python-modules >= 2.2
117 BuildRequires: rpm-perlprov
118 BuildRequires: rpm-pythonprov
119 BuildRequires: zlib-devel
121 # Require static library only for static build
122 BuildRequires: beecrypt-static >= %{beecrypt_ver}
123 BuildRequires: bzip2-static >= 1.0.2-5
124 BuildRequires: db-static >= %{reqdb_ver}
125 BuildRequires: glibc-static >= 2.2.94
126 BuildRequires: elfutils-static
127 #BuildRequires: libmagic-static
128 %{?with_selinux:BuildRequires: libselinux-static}
129 BuildRequires: popt-static >= %{reqpopt_ver}
130 BuildRequires: zlib-static
132 Requires: popt >= %{reqpopt_ver}
133 Requires: %{name}-lib = %{version}-%{release}
134 %{!?with_static:Obsoletes: rpm-utils-static}
135 Conflicts: glibc < 2.2.92
136 # avoid SEGV caused by mixed db versions
137 Conflicts: poldek < 0.18.1-16
138 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
140 %define _binary_payload w9.gzdio
141 %define _noPayloadPrefix 1
143 # don't require very fresh rpm.macros to build
144 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
146 # stabilize new build environment
147 %define __cc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
148 %define __cxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
149 %define __cpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
151 %define _rpmlibdir /usr/lib/rpm
154 RPM is a powerful package manager, which can be used to build,
155 install, query, verify, update, and uninstall individual software
156 packages. A package consists of an archive of files, and package
157 information, including name, version, and description.
160 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
161 Installation, Anfrage, Verifizierung, Aktualisierung und
162 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
163 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
167 RPM es un poderoso administrador de paquetes, que puede ser usado para
168 construir, instalar, pesquisar, verificar, actualizar y desinstalar
169 paquetes individuales de software. Un paquete consiste en un
170 almacenaje de archivos, y información sobre el paquete, incluyendo
171 nombre, versión y descripción.
174 RPM jest doskona³ym programem zarz±dzaj±cym pakietami. Umo¿liwia on
175 przebudowanie, instalacjê czy weryfikacjê dowolnego pakietu.
176 Informacje dotycz±ce ka¿dego pakietu, takie jak jego opis, lista
177 plików wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
178 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
179 odpytywania programu rpm.
181 %description -l pt_BR
182 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
183 construir, instalar, pesquisar, verificar, atualizar e desinstalar
184 pacotes individuais de software. Um pacote consiste de um conjunto de
185 arquivos e informações adicionais, incluindo nome, versão e descrição
186 do pacote, permissões dos arquivos, etc.
189 RPM - ÜÔÏ ÍÏÝÎÙÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔÏ×, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ÄÌÑ
190 ÓÏÚÄÁÎÉÑ, ÉÎÓÔÁÌÌÑÃÉÉ, ÚÁÐÒÏÓÏ× (query), ÐÒÏ×ÅÒËÉ, ÏÂÎÏ×ÌÅÎÉÑ É
191 ÕÄÁÌÅÎÉÑ ÐÒÏÇÒÁÍÍÎÙÈ ÐÁËÅÔÏ×. ðÁËÅÔ ÓÏÓÔÏÉÔ ÉÚ ÆÁÊÌÏ×ÏÇÏ ÁÒÈÉ×Á É
192 ÓÌÕÖÅÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ, ×ËÌÀÞÁÀÝÅÊ ÎÁÚ×ÁÎÉÅ, ×ÅÒÓÉÀ, ÏÐÉÓÁÎÉÅ É ÄÒÕÇÉÅ
196 RPM - ÃÅ ÐÏÔÕÖÎÉÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔ¦×, ÝÏ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÄÌÑ
197 ÓÔ×ÏÒÅÎÎÑ, ¦ÎÓÔÁÌÑæ§, ÚÁÐÉÔ¦× (query), ÐÅÒÅצÒËÉ, ÐÏÎÏ×ÌÅÎÎÑ ÔÁ
198 ×ÉÄÁÌÅÎÎÑ ÐÒÏÇÒÁÍÎÉÈ ÐÁËÅÔ¦×. ðÁËÅÔ ÓËÌÁÄÁ¤ÔØÓÑ Ú ÆÁÊÌÏ×ÏÇÏ ÁÒȦ×Õ ÔÁ
199 ÓÌÕÖÂÏ×ϧ ¦ÎÆÏÒÍÁæ§, ÝÏ Í¦ÓÔÉÔØ ÎÁÚ×Õ, ×ÅÒÓ¦À, ÏÐÉÓ ÔÁ ¦ÎÛÕ
200 ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÐÁËÅÔ.
203 Summary: Header files for rpm libraries
204 Summary(de): Header-Dateien für rpm Libraries
205 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
206 Summary(pl): Pliki nag³ówkowe bibliotek rpm
207 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
208 Summary(ru): èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
209 Summary(uk): èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
210 Group: Development/Libraries
211 Requires: %{name}-lib = %{version}-%{release}
212 Requires: beecrypt-devel >= %{beecrypt_ver}
213 Requires: bzip2-devel
214 Requires: db-devel >= %{reqdb_ver}
215 Requires: elfutils-devel
216 %{?with_selinux:Requires: libselinux-devel}
217 Requires: popt-devel >= %{reqpopt_ver}
221 The RPM packaging system includes C libraries that make it easy to
222 manipulate RPM packages and databases. They are intended to ease the
223 creation of graphical package managers and other tools that need
224 intimate knowledge of RPM packages. This package contains header files
227 %description devel -l de
228 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
229 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
230 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
231 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
233 %description devel -l es
234 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
235 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
236 facilitar la creación de administradores gráficos de paquetes y otras
237 herramientas que necesiten un conocimiento profundo de paquetes RPM.
239 %description devel -l pl
240 System RPM zawiera biblioteki C, które u³atwiaj± manipulowanie
241 pakietami RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
242 graficznych programów zarz±dzaj±cych pakietami oraz innych narzêdzi,
243 które wymagaj± szczegó³owej wiedzy na temat pakietów RPM. Ten pakiet
244 zawiera pliki nag³ówkowe wspomnianych bibliotek.
246 %description devel -l pt_BR
247 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
248 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
249 facilitar a criação de gerenciadores gráficos de pacotes e outras
250 ferramentas que precisem de conhecimento profundo de pacotes RPM.
252 %description devel -l ru
253 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
254 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
255 üÔÁ ÂÉÂÌÉÏÔÅËÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÏÂÌÅÇÞÅÎÉÑ ÓÏÚÄÁÎÉÑ ÇÒÁÆÉÞÅÓËÉÈ
256 ÐÁËÅÔÎÙÈ ÍÅÎÅÄÖÅÒÏ× É ÄÒÕÇÉÈ ÕÔÉÌÉÔ, ËÏÔÏÒÙÍ ÎÅÏÂÈÏÄÉÍÏ ÒÁÂÏÔÁÔØ Ó
259 %description devel -l uk
260 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
261 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÑ Â¦Â̦ÏÔÅËÁ
262 ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ÐÏÌÅÇÛÅÎÎÑ ÓÔ×ÏÒÅÎÎÑ ÇÒÁƦÞÎÉÈ ÐÁËÅÔÎÉÈ ÍÅÎÅÄÖÅÒ¦× ÔÁ
263 ¦ÎÛÉÈ ÕÔÉ̦Ô, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ RPM.
266 Summary: RPM static libraries
267 Summary(de): RPMs statische Libraries
268 Summary(pl): Biblioteki statyczne RPM-a
269 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
270 Summary(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
271 Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
272 Group: Development/Libraries
273 Requires: %{name}-devel = %{version}-%{release}
274 Requires: beecrypt-static >= %{beecrypt_ver}
275 Requires: bzip2-static
276 Requires: db-static >= %{reqdb_ver}
277 Requires: elfutils-static
278 Requires: popt-static >= %{reqpopt_ver}
279 Requires: zlib-static
282 RPM static libraries.
284 %description static -l de
285 RPMs statische Libraries.
287 %description static -l pl
288 Biblioteki statyczne RPM-a.
290 %description static -l pt_BR
291 Bibliotecas estáticas para desenvolvimento.
293 %description static -l ru
294 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
295 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
296 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ RPM.
298 %description static -l uk
299 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
300 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÅ ÓÔÁÔÉÞÎÁ
304 Summary: Additional utilities for managing rpm packages and database
305 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
306 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
307 Group: Applications/File
308 Requires: %{name} = %{version}-%{release}
309 Requires: popt >= %{reqpopt_ver}
312 Additional utilities for managing rpm packages and database.
314 %description utils -l de
315 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
317 %description utils -l pl
318 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
321 Summary: Additional utilities for managing rpm packages and database
322 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
323 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
324 Group: Applications/File
325 Requires: %{name}-utils = %{version}-%{release}
326 Requires: popt >= %{reqpopt_ver}
328 %description utils-perl
329 Additional utilities for managing rpm packages and database.
331 %description utils-perl -l de
332 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
334 %description utils-perl -l pl
335 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
337 %package utils-static
338 Summary: Static rpm utilities
339 Summary(pl): Statyczne narzêdzia rpm
340 Group: Applications/System
341 Requires: %{name} = %{version}-%{release}
343 %description utils-static
344 Static rpm utilities for repairing system in case something with
345 shared libraries used by rpm become broken. Currently it contains rpmi
346 binary, which can be used to install/upgrade/remove packages without
347 using shared libraries (well, in fact with exception of NSS modules).
349 %description utils-static -l pl
350 Statyczne narzêdzia rpm do naprawy systemu w przypadku zepsucia czego¶
351 zwi±zanego z bibliotekami wspó³dzielonymi u¿ywanymi przez rpm-a.
352 Aktualnie pakiet zawiera binarkê rpmi, któr± mo¿na u¿yæ do instalacji,
353 uaktualniania lub usuwania pakietów bez udzia³u bibliotek statycznych
354 (z wyj±tkiem modu³ów NSS).
357 Summary: Additional utilities for checking perl provides/requires in rpm packages
358 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
359 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
360 Group: Applications/File
361 Requires: %{name} = %{version}-%{release}
363 Requires: perl-modules
365 %description perlprov
366 Additional utilities for checking perl provides/requires in rpm
369 %description perlprov -l de
370 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
372 %description perlprov -l pl
373 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
377 Summary: Python macros, which simplifies creation of rpm packages with Python software
378 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
379 Group: Applications/File
380 Requires: %{name} = %{version}-%{release}
381 Requires: python-modules
383 %description pythonprov
384 Python macros, which simplifies creation of rpm packages with Python
387 %description pythonprov -l pl
388 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
391 %package php-pearprov
392 Summary: Additional utilities for managing rpm packages and database
393 Summary(pl): Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm
394 Group: Applications/File
395 Requires: %{name} = %{version}-%{release}
397 %description php-pearprov
398 Additional utilities for checking php pear provides/requires in rpm
401 %description php-pearprov -l pl
402 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
405 %package -n python-rpm
406 Summary: Python interface to RPM library
407 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
408 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
409 Group: Development/Languages/Python
410 Requires: %{name} = %{version}-%{release}
411 %pyrequires_eq python
412 Obsoletes: rpm-python
414 %description -n python-rpm
415 The rpm-python package contains a module which permits applications
416 written in the Python programming language to use the interface
417 supplied by RPM (RPM Package Manager) libraries.
419 This package should be installed if you want to develop Python
420 programs that will manipulate RPM packages and databases.
422 %description -n python-rpm -l pl
423 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
424 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
426 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
427 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
429 %description -n python-rpm -l pt_BR
430 O pacote rpm-python contém um módulo que permite que aplicações
431 escritas em Python utilizem a interface fornecida pelas bibliotecas
432 RPM (RPM Package Manager).
434 Esse pacote deve ser instalado se você quiser desenvolver programas em
435 Python para manipular pacotes e bancos de dados RPM.
438 Summary: RPMs library
439 Summary(pl): Biblioteki RPM-a
441 Requires: db >= %{reqdb_ver}
442 Requires: popt >= %{reqpopt_ver}
443 # avoid SEGV caused by mixed db versions
444 Conflicts: poldek < 0.18.1-16
449 %description lib -l pl
453 Summary: Scripts for building binary RPM packages
454 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
455 Summary(pl): Skrypty pomocnicze do budowania binarnych 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(pre): findutils
461 Requires: %{name}-utils = %{version}-%{release}
465 Requires: chrpath >= 0.10-4
467 Requires: file >= 4.01
471 Requires: gcc >= 3.0.3
476 Conflicts: automake < 1:1.7.9-2
477 Conflicts: libtool < 2:1.5-13
479 Requires: glibc-devel
484 Requires: popt >= 1.7
489 Provides: rpmbuild(macros) = %{rpm_macros_rev}
492 Scripts for building binary RPM packages.
494 %description build -l de
495 Scripts fürs Bauen binärer RPM-Pakete.
497 %description build -l pl
498 Skrypty pomocnicze do budowania binarnych RPM-ów.
500 %description build -l pt_BR
501 Este pacote contém scripts e programas executáveis que são usados para
502 construir pacotes usando o RPM.
504 %description build -l ru
505 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
506 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
508 %description build -l uk
509 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
513 Summary: Scripts for managing .spec files and building RPM packages
514 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
515 Summary(pl): Skrypty pomocnicze do zarz±dznia plikami .spec i budowania RPM-ów
516 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
517 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
518 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
519 Group: Applications/File
520 Requires: %{name}-build = %{version}-%{release}
525 %description build-tools
526 Scripts for managing .spec files and building RPM packages.
528 %description build-tools -l de
529 Scripts fürs Bauen RPM-Pakete.
531 %description build-tools -l pl
532 Skrypty pomocnicze do zarz±dzania plikami .spec i do budowania RPM-ów.
534 %description build-tools -l pt_BR
535 Este pacote contém scripts e programas executáveis que são usados para
536 construir pacotes usando o RPM.
538 %description build-tools -l ru
539 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
540 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
542 %description build-tools -l uk
543 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
570 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
571 cp -f platform.in macros.pld.in
572 echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
573 echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
574 echo '# obsoleted file' > macros.python
575 echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
576 echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
577 install %{SOURCE5} scripts/find-lang.sh
578 install %{SOURCE9} scripts/php.prov.in
579 install %{SOURCE10} scripts/php.req.in
580 install %{SOURCE12} scripts/perl.prov
581 cat %{SOURCE11} >> macros.in
607 mv -f perl.req perl.req.in
608 mv -f perl.prov perl.prov.in
612 mv -f po/{sr,sr@Latn}.po
614 rm -rf zlib libelf db db3 popt rpmdb/db.h
616 # generate Group translations to *.po
617 awk -f %{SOURCE6} %{SOURCE1}
619 # update macros paths
620 for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
621 sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
641 # config.guess doesn't handle athlon, so we have to change it by hand.
642 # rpm checks for CPU type at runtime, but it looks better
643 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' \
644 -e 's|@host_cpu@|%{_target_cpu}|' macros.in > macros.tmp
645 mv -f macros.tmp macros.in
647 # pass CC and CXX too in case of building with some older configure macro
654 %{?with_doc:--with-apidocs} \
655 %{?with_python:--with-python=auto} \
656 %{!?with_python:--without-python} \
657 %{!?with_selinux:--without-selinux} \
660 # file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
662 pylibdir=%{py_libdir} \
663 myLDFLAGS="%{rpmldflags}" \
665 debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt"
667 # %{!?with_static:rpm_LDFLAGS="\$(myLDFLAGS)"} \
670 rm -rf $RPM_BUILD_ROOT
671 install -d $RPM_BUILD_ROOT/%{_lib}
674 DESTDIR=$RPM_BUILD_ROOT \
675 pylibdir=%{py_libdir} \
676 pkgbindir="%{_bindir}"
678 rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
679 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
680 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
682 install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
683 install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
684 install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
686 install %{SOURCE1} doc/manual/groups
687 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
688 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
689 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
690 install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
691 install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
692 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
694 install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
695 install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
696 install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
698 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
700 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
703 ix86re=$(echo "(%{ix86})"|sed 's/ /|/g')
704 perl -p -i -e 's/^(buildarchtranslate: '"$ix86re"': ).*/\1%{_target_cpu}/' \
705 $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
708 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
709 # customized rpm macros - global for host
711 #%%_install_langs pl_PL:en_US
714 # remove or replace with file_contexts path if you want to use custom
715 # SELinux file contexts policy instead of one stored in packages payload
716 %%_install_file_context_path %%{nil}
717 %%_verify_file_context_path %%{nil}
720 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
721 # global list of files (regexps) which don't generate Provides
723 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
724 # global list of script capabilities (regexps) not to be used in Provides
726 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
727 # global list of files (regexps) which don't generate Requires
731 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
732 # global list of script capabilities (regexps) not to be used in Requires
734 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
735 # global list of capabilities (SONAME, perl(module), php(module) regexps)
736 # which don't generate dependencies on package NAMES
745 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
746 # global list of file masks not to be compressed in DOCDIR
749 # for rpm -e|-U --repackage
750 install -d $RPM_BUILD_ROOT/var/spool/repackage
753 for a in librpm-%{ver}.so librpmdb-%{ver}.so librpmio-%{ver}.so ; do
754 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
755 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
758 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
759 [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f
764 cp -a doc/manual manual
765 rm -f manual/Makefile*
768 rm -rf $RPM_BUILD_ROOT
770 %post lib -p /sbin/ldconfig
771 %postun lib -p /sbin/ldconfig
774 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
776 %files -f %{name}.lang
777 %defattr(644,root,root,755)
778 %doc RPM-PGP-KEY CHANGES manual
780 %attr(755,root,root) /bin/rpm
781 #%attr(755,root,root) %{_bindir}/rpmdb
782 #%attr(755,root,root) %{_bindir}/rpmquery
783 #%attr(755,root,root) %{_bindir}/rpmsign
784 #%attr(755,root,root) %{_bindir}/rpmverify
786 %dir %{_sysconfdir}/rpm
787 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
789 %{_mandir}/man8/rpm.8*
790 %lang(fr) %{_mandir}/fr/man8/rpm.8*
791 %lang(ja) %{_mandir}/ja/man8/rpm.8*
792 %lang(ko) %{_mandir}/ko/man8/rpm.8*
793 %lang(pl) %{_mandir}/pl/man8/rpm.8*
794 %lang(ru) %{_mandir}/ru/man8/rpm.8*
795 %lang(sk) %{_mandir}/sk/man8/rpm.8*
798 %dir %attr(700,root,root) /var/spool/repackage
801 #%attr(755,root,root) %{_rpmlibdir}/rpmd
802 #%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
803 #%attr(755,root,root) %{_rpmlibdir}/rpmk
804 #%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
806 %doc %attr(755,root,root) %{_rpmlibdir}/convertrpmrc.sh
809 %{_rpmlibdir}/rpmpopt*
813 %defattr(644,root,root,755)
814 %attr(755,root,root) /%{_lib}/librpm*-*.so
815 %attr(755,root,root) %{_libdir}/librpm*-*.so
818 %defattr(644,root,root,755)
819 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/noauto*
820 %attr(755,root,root) %{_rpmlibdir}/compress-doc
821 %attr(755,root,root) %{_rpmlibdir}/cross-build
822 #%attr(755,root,root) %{_rpmlibdir}/find-provides
823 #%attr(755,root,root) %{_rpmlibdir}/find-provides-wrapper
824 #%attr(755,root,root) %{_rpmlibdir}/find-requires
825 #%attr(755,root,root) %{_rpmlibdir}/find-requires-wrapper
826 #%attr(755,root,root) %{_rpmlibdir}/find-rpm-provides
827 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
828 %attr(755,root,root) %{_rpmlibdir}/find-lang.sh
829 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
830 %attr(755,root,root) %{_rpmlibdir}/config.*
831 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
832 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
833 %attr(755,root,root) %{_rpmlibdir}/brp-*
834 %attr(755,root,root) %{_rpmlibdir}/check-files
835 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
836 #%attr(755,root,root) %{_rpmlibdir}/cpanflute
837 #%attr(755,root,root) %{_rpmlibdir}/cpanflute2
838 #%attr(755,root,root) %{_rpmlibdir}/Specfile.pm
839 %attr(755,root,root) %{_rpmlibdir}/http.req
840 %attr(755,root,root) %{_rpmlibdir}/magic.prov
841 %attr(755,root,root) %{_rpmlibdir}/magic.req
842 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
843 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides.sh
844 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides2.sh
845 %attr(755,root,root) %{_rpmlibdir}/rpmb
846 %attr(755,root,root) %{_rpmlibdir}/rpmt
847 %{_rpmlibdir}/noarch-*
850 %{_rpmlibdir}/pentium*
851 %{_rpmlibdir}/athlon*
855 %{_rpmlibdir}/x86_64*
857 %ifarch sparc sparc64
866 # must be here for "Requires: rpm-*prov" to work
867 %{_rpmlibdir}/macros.perl
868 %{_rpmlibdir}/macros.php
870 %{_rpmlibdir}/sql.prov
871 %{_rpmlibdir}/sql.req
872 %{_rpmlibdir}/tcl.req
875 %attr(755,root,root) %{_bindir}/javadeps
876 %attr(755,root,root) %{_bindir}/gendiff
877 %attr(755,root,root) %{_bindir}/rpmbuild
879 %{_mandir}/man1/gendiff.1*
880 %{_mandir}/man8/rpmbuild.8*
881 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
882 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
883 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
886 %defattr(644,root,root,755)
888 %{_libdir}/librpm*.la
889 %attr(755,root,root) %{_libdir}/librpm.so
890 %attr(755,root,root) %{_libdir}/librpmio.so
891 %attr(755,root,root) %{_libdir}/librpmdb.so
892 %attr(755,root,root) %{_libdir}/librpmbuild.so
895 %defattr(644,root,root,755)
899 %defattr(644,root,root,755)
900 %attr(755,root,root) %{_bindir}/debugedit
901 %attr(755,root,root) %{_bindir}/rpm2cpio
902 %attr(755,root,root) %{_bindir}/rpmcache
903 %attr(755,root,root) %{_bindir}/rpmdeps
904 %attr(755,root,root) %{_bindir}/rpmgraph
905 %attr(755,root,root) %{_bindir}/rpmfile
906 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
907 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
908 %attr(755,root,root) %{_rpmlibdir}/tgpg
909 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
912 %defattr(644,root,root,755)
913 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
915 #%%{_rpmlibdir}/rpm.daily
916 #%%{_rpmlibdir}/rpm.log
917 #%%{_rpmlibdir}/rpm.xinetd
919 %{_mandir}/man8/rpm2cpio.8*
920 %{_mandir}/man8/rpmdeps.8*
921 %{_mandir}/man8/rpmcache.8*
922 %{_mandir}/man8/rpmgraph.8*
923 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
924 %lang(ja) %{_mandir}/ja/man8/rpmcache.8*
925 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
926 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
927 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
928 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
929 %lang(pl) %{_mandir}/pl/man8/rpmcache.8*
930 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
931 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
935 %defattr(644,root,root,755)
936 %attr(755,root,root) %{_bindir}/rpm[ieu]
937 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
941 %defattr(644,root,root,755)
942 %attr(755,root,root) %{_rpmlibdir}/perl.*
943 #%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
944 #%attr(755,root,root) %{_rpmlibdir}/find-perl-*
945 #%attr(755,root,root) %{_rpmlibdir}/find-*.perl
946 #%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
947 #%attr(755,root,root) %{_rpmlibdir}/find-req.pl
948 %attr(755,root,root) %{_rpmlibdir}/get_magic.pl
951 %defattr(644,root,root,755)
952 %{_rpmlibdir}/macros.python
955 %defattr(644,root,root,755)
956 %attr(755,root,root) %{_rpmlibdir}/php*
957 %attr(755,root,root) %{_rpmlibdir}/find-php*
961 %defattr(644,root,root,755)
962 %attr(755,root,root) %{py_sitedir}/*.so
963 %attr(755,root,root) %{py_sitedir}/rpmdb/*.so
964 %{py_sitedir}/rpmdb/*.py*
968 %defattr(644,root,root,755)
969 %attr(755,root,root) %{_bindir}/builder
970 %attr(755,root,root) %{_bindir}/adapter.awk
971 %attr(755,root,root) %{_bindir}/pldnotify.awk