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 static # build static rpmi (not supported at the moment)
9 %bcond_without doc # don't generate documentation with doxygen
10 %bcond_without python # don't build python bindings
11 %bcond_without selinux # dont enable selinux support
12 # force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
13 # force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
14 # force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
17 # versions of required libraries
18 %define reqdb_ver 4.2.50-1
19 %define reqpopt_ver 1.9
20 %define beecrypt_ver 4.0.0
21 %define rpm_macros_rev 1.158
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
33 Release: 0.%{snap}.0.4
36 #Source0: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.2.x/%{name}-%{version}.%{snap}.tar.gz
37 Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.%{snap}.tar.bz2
38 # Source0-md5: a91b8e17f6e69208b188d2876e80aef9
39 Source1: %{name}.groups
40 Source2: %{name}.platform
41 Source3: %{name}-install-tree
42 Source4: %{name}-find-spec-bcond
43 Source5: %{name}-find-lang
44 Source6: %{name}-groups-po.awk
45 Source7: %{name}-compress-doc
46 Source8: %{name}-check-files
47 Source9: %{name}-php-provides
48 Source10: %{name}-php-requires
49 Source11: %{name}.macros
53 Source32: pldnotify.awk
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 Patch7: %{name}-noexpand.patch
60 Patch8: %{name}-scripts-closefds.patch
61 Patch9: %{name}-python-macros.patch
62 Patch10: %{name}-gettext-in-header.patch
63 Patch11: %{name}-compress-doc.patch
64 Patch12: %{name}-build.patch
65 Patch13: %{name}-system_libs.patch
66 Patch14: %{name}-bb-and-short-circuit.patch
67 Patch15: %{name}-etc_dir.patch
68 Patch16: %{name}-system_libs-more.patch
69 Patch17: %{name}-php-deps.patch
70 Patch18: %{name}-python-fix.patch
71 Patch19: %{name}-ldconfig-always.patch
72 Patch20: %{name}-perl_req.patch
73 Patch21: %{name}-no-bin-env.patch
74 Patch22: %{name}-magic-usesystem.patch
75 Patch23: %{name}-dontneedutils.patch
76 Patch24: %{name}-provides-dont-obsolete.patch
77 Patch25: %{name}-examplesaredoc.patch
78 Patch26: %{name}-po.patch
79 Patch27: %{name}-amd64.patch
80 Patch28: %{name}-notsc.patch
81 Patch29: %{name}-hack-norpmlibdep.patch
82 Patch30: %{name}-makefile-no_myLDADD_deps.patch
83 Patch31: %{name}-libdir64.patch
84 Patch32: %{name}-libdir-links.patch
85 Patch33: %{name}-context.patch
86 Patch35: %{name}-missing-prototypes.patch
87 Patch36: %{name}-pld-autodep.patch
88 Patch37: %{name}-rpmsq.patch
89 Patch38: %{name}-file-readelf.patch
90 Patch40: %{name}-epoch0.patch
91 Patch41: %{name}-file-readelf-fix.patch
92 Patch43: %{name}-perl_req-INC_dirs.patch
93 Patch44: %{name}-debuginfo.patch
94 Patch45: %{name}-beecrypt4.patch
95 Patch100: %{name}-pl.po.patch
96 URL: http://www.rpm.org/
98 BuildRequires: autoconf >= 2.52
99 BuildRequires: automake
100 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
101 BuildRequires: bzip2-devel >= 1.0.1
102 BuildRequires: db-devel >= %{reqdb_ver}
103 %{?with_doc:BuildRequires: doxygen}
104 BuildRequires: elfutils-devel
105 BuildRequires: findutils
106 BuildRequires: gettext-devel >= 0.11.4-2
107 #BuildRequires: libmagic-devel
108 %{?with_selinux:BuildRequires: libselinux-devel}
109 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
110 BuildRequires: libstdc++-devel
111 BuildRequires: libtool
112 BuildRequires: libxml2-devel
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: readline-devel
118 BuildRequires: rpm-perlprov
119 BuildRequires: rpm-pythonprov
120 BuildRequires: zlib-devel
122 # Require static library only for static build
123 BuildRequires: beecrypt-static >= %{beecrypt_ver}
124 BuildRequires: bzip2-static >= 1.0.2-5
125 BuildRequires: db-static >= %{reqdb_ver}
126 BuildRequires: glibc-static >= 2.2.94
127 BuildRequires: elfutils-static
128 #BuildRequires: libmagic-static
129 %{?with_selinux:BuildRequires: libselinux-static}
130 BuildRequires: popt-static >= %{reqpopt_ver}
131 BuildRequires: zlib-static
133 Requires: popt >= %{reqpopt_ver}
134 Requires: %{name}-lib = %{version}-%{release}
135 %{!?with_static:Obsoletes: rpm-utils-static}
136 Conflicts: glibc < 2.2.92
137 # avoid SEGV caused by mixed db versions
138 Conflicts: poldek < 0.18.1-16
139 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
141 %define _binary_payload w9.gzdio
142 %define _noPayloadPrefix 1
144 # don't require very fresh rpm.macros to build
145 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
146 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
148 # stabilize new build environment
149 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
150 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
151 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
153 %define _rpmlibdir /usr/lib/rpm
156 RPM is a powerful package manager, which can be used to build,
157 install, query, verify, update, and uninstall individual software
158 packages. A package consists of an archive of files, and package
159 information, including name, version, and description.
162 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
163 Installation, Anfrage, Verifizierung, Aktualisierung und
164 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
165 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
169 RPM es un poderoso administrador de paquetes, que puede ser usado para
170 construir, instalar, pesquisar, verificar, actualizar y desinstalar
171 paquetes individuales de software. Un paquete consiste en un
172 almacenaje de archivos, y información sobre el paquete, incluyendo
173 nombre, versión y descripción.
176 RPM jest doskona³ym programem zarz±dzaj±cym pakietami. Umo¿liwia on
177 przebudowanie, instalacjê czy weryfikacjê dowolnego pakietu.
178 Informacje dotycz±ce ka¿dego pakietu, takie jak jego opis, lista
179 plików wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
180 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
181 odpytywania programu rpm.
183 %description -l pt_BR
184 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
185 construir, instalar, pesquisar, verificar, atualizar e desinstalar
186 pacotes individuais de software. Um pacote consiste de um conjunto de
187 arquivos e informações adicionais, incluindo nome, versão e descrição
188 do pacote, permissões dos arquivos, etc.
191 RPM - ÜÔÏ ÍÏÝÎÙÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔÏ×, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ÄÌÑ
192 ÓÏÚÄÁÎÉÑ, ÉÎÓÔÁÌÌÑÃÉÉ, ÚÁÐÒÏÓÏ× (query), ÐÒÏ×ÅÒËÉ, ÏÂÎÏ×ÌÅÎÉÑ É
193 ÕÄÁÌÅÎÉÑ ÐÒÏÇÒÁÍÍÎÙÈ ÐÁËÅÔÏ×. ðÁËÅÔ ÓÏÓÔÏÉÔ ÉÚ ÆÁÊÌÏ×ÏÇÏ ÁÒÈÉ×Á É
194 ÓÌÕÖÅÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ, ×ËÌÀÞÁÀÝÅÊ ÎÁÚ×ÁÎÉÅ, ×ÅÒÓÉÀ, ÏÐÉÓÁÎÉÅ É ÄÒÕÇÉÅ
198 RPM - ÃÅ ÐÏÔÕÖÎÉÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔ¦×, ÝÏ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÄÌÑ
199 ÓÔ×ÏÒÅÎÎÑ, ¦ÎÓÔÁÌÑæ§, ÚÁÐÉÔ¦× (query), ÐÅÒÅצÒËÉ, ÐÏÎÏ×ÌÅÎÎÑ ÔÁ
200 ×ÉÄÁÌÅÎÎÑ ÐÒÏÇÒÁÍÎÉÈ ÐÁËÅÔ¦×. ðÁËÅÔ ÓËÌÁÄÁ¤ÔØÓÑ Ú ÆÁÊÌÏ×ÏÇÏ ÁÒȦ×Õ ÔÁ
201 ÓÌÕÖÂÏ×ϧ ¦ÎÆÏÒÍÁæ§, ÝÏ Í¦ÓÔÉÔØ ÎÁÚ×Õ, ×ÅÒÓ¦À, ÏÐÉÓ ÔÁ ¦ÎÛÕ
202 ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÐÁËÅÔ.
205 Summary: Header files for rpm libraries
206 Summary(de): Header-Dateien für rpm Libraries
207 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
208 Summary(pl): Pliki nag³ówkowe bibliotek rpm
209 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
210 Summary(ru): èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
211 Summary(uk): èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
212 Group: Development/Libraries
213 Requires: %{name}-lib = %{version}-%{release}
214 Requires: beecrypt-devel >= %{beecrypt_ver}
215 Requires: bzip2-devel
216 Requires: db-devel >= %{reqdb_ver}
217 Requires: elfutils-devel
218 %{?with_selinux:Requires: libselinux-devel}
219 Requires: popt-devel >= %{reqpopt_ver}
223 The RPM packaging system includes C libraries that make it easy to
224 manipulate RPM packages and databases. They are intended to ease the
225 creation of graphical package managers and other tools that need
226 intimate knowledge of RPM packages. This package contains header files
229 %description devel -l de
230 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
231 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
232 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
233 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
235 %description devel -l es
236 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
237 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
238 facilitar la creación de administradores gráficos de paquetes y otras
239 herramientas que necesiten un conocimiento profundo de paquetes RPM.
241 %description devel -l pl
242 System RPM zawiera biblioteki C, które u³atwiaj± manipulowanie
243 pakietami RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
244 graficznych programów zarz±dzaj±cych pakietami oraz innych narzêdzi,
245 które wymagaj± szczegó³owej wiedzy na temat pakietów RPM. Ten pakiet
246 zawiera pliki nag³ówkowe wspomnianych bibliotek.
248 %description devel -l pt_BR
249 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
250 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
251 facilitar a criação de gerenciadores gráficos de pacotes e outras
252 ferramentas que precisem de conhecimento profundo de pacotes RPM.
254 %description devel -l ru
255 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
256 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
257 üÔÁ ÂÉÂÌÉÏÔÅËÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÏÂÌÅÇÞÅÎÉÑ ÓÏÚÄÁÎÉÑ ÇÒÁÆÉÞÅÓËÉÈ
258 ÐÁËÅÔÎÙÈ ÍÅÎÅÄÖÅÒÏ× É ÄÒÕÇÉÈ ÕÔÉÌÉÔ, ËÏÔÏÒÙÍ ÎÅÏÂÈÏÄÉÍÏ ÒÁÂÏÔÁÔØ Ó
261 %description devel -l uk
262 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
263 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÑ Â¦Â̦ÏÔÅËÁ
264 ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ÐÏÌÅÇÛÅÎÎÑ ÓÔ×ÏÒÅÎÎÑ ÇÒÁƦÞÎÉÈ ÐÁËÅÔÎÉÈ ÍÅÎÅÄÖÅÒ¦× ÔÁ
265 ¦ÎÛÉÈ ÕÔÉ̦Ô, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ RPM.
268 Summary: RPM static libraries
269 Summary(de): RPMs statische Libraries
270 Summary(pl): Biblioteki statyczne RPM-a
271 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
272 Summary(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
273 Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
274 Group: Development/Libraries
275 Requires: %{name}-devel = %{version}-%{release}
276 Requires: beecrypt-static >= %{beecrypt_ver}
277 Requires: bzip2-static
278 Requires: db-static >= %{reqdb_ver}
279 Requires: elfutils-static
280 Requires: popt-static >= %{reqpopt_ver}
281 Requires: zlib-static
284 RPM static libraries.
286 %description static -l de
287 RPMs statische Libraries.
289 %description static -l pl
290 Biblioteki statyczne RPM-a.
292 %description static -l pt_BR
293 Bibliotecas estáticas para desenvolvimento.
295 %description static -l ru
296 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
297 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
298 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ RPM.
300 %description static -l uk
301 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
302 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÅ ÓÔÁÔÉÞÎÁ
306 Summary: Additional utilities for managing rpm packages and database
307 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
308 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
309 Group: Applications/File
310 Requires: %{name} = %{version}-%{release}
311 Requires: popt >= %{reqpopt_ver}
314 Additional utilities for managing rpm packages and database.
316 %description utils -l de
317 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
319 %description utils -l pl
320 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
323 Summary: Additional utilities for managing rpm packages and database
324 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
325 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
326 Group: Applications/File
327 Requires: %{name}-utils = %{version}-%{release}
328 Requires: popt >= %{reqpopt_ver}
330 %description utils-perl
331 Additional utilities for managing rpm packages and database.
333 %description utils-perl -l de
334 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
336 %description utils-perl -l pl
337 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
339 %package utils-static
340 Summary: Static rpm utilities
341 Summary(pl): Statyczne narzêdzia rpm
342 Group: Applications/System
343 Requires: %{name} = %{version}-%{release}
345 %description utils-static
346 Static rpm utilities for repairing system in case something with
347 shared libraries used by rpm become broken. Currently it contains rpmi
348 binary, which can be used to install/upgrade/remove packages without
349 using shared libraries (well, in fact with exception of NSS modules).
351 %description utils-static -l pl
352 Statyczne narzêdzia rpm do naprawy systemu w przypadku zepsucia czego¶
353 zwi±zanego z bibliotekami wspó³dzielonymi u¿ywanymi przez rpm-a.
354 Aktualnie pakiet zawiera binarkê rpmi, któr± mo¿na u¿yæ do instalacji,
355 uaktualniania lub usuwania pakietów bez udzia³u bibliotek statycznych
356 (z wyj±tkiem modu³ów NSS).
359 Summary: Additional utilities for checking perl provides/requires in rpm packages
360 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
361 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
362 Group: Applications/File
363 Requires: %{name} = %{version}-%{release}
365 Requires: perl-modules
367 %description perlprov
368 Additional utilities for checking perl provides/requires in rpm
371 %description perlprov -l de
372 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
374 %description perlprov -l pl
375 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
379 Summary: Python macros, which simplifies creation of rpm packages with Python software
380 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
381 Group: Applications/File
382 Requires: %{name} = %{version}-%{release}
383 Requires: python-modules
385 %description pythonprov
386 Python macros, which simplifies creation of rpm packages with Python
389 %description pythonprov -l pl
390 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
393 %package php-pearprov
394 Summary: Additional utilities for managing rpm packages and database
395 Summary(pl): Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm
396 Group: Applications/File
397 Requires: %{name} = %{version}-%{release}
399 %description php-pearprov
400 Additional utilities for checking php pear provides/requires in rpm
403 %description php-pearprov -l pl
404 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
407 %package -n python-rpm
408 Summary: Python interface to RPM library
409 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
410 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
411 Group: Development/Languages/Python
412 Requires: %{name} = %{version}-%{release}
413 %pyrequires_eq python
414 Obsoletes: rpm-python
416 %description -n python-rpm
417 The rpm-python package contains a module which permits applications
418 written in the Python programming language to use the interface
419 supplied by RPM (RPM Package Manager) libraries.
421 This package should be installed if you want to develop Python
422 programs that will manipulate RPM packages and databases.
424 %description -n python-rpm -l pl
425 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
426 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
428 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
429 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
431 %description -n python-rpm -l pt_BR
432 O pacote rpm-python contém um módulo que permite que aplicações
433 escritas em Python utilizem a interface fornecida pelas bibliotecas
434 RPM (RPM Package Manager).
436 Esse pacote deve ser instalado se você quiser desenvolver programas em
437 Python para manipular pacotes e bancos de dados RPM.
440 Summary: RPMs library
441 Summary(pl): Biblioteki RPM-a
443 Requires: db >= %{reqdb_ver}
444 Requires: popt >= %{reqpopt_ver}
445 # avoid SEGV caused by mixed db versions
446 Conflicts: poldek < 0.18.1-16
451 %description lib -l pl
455 Summary: Scripts for building binary RPM packages
456 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
457 Summary(pl): Skrypty pomocnicze do budowania binarnych RPM-ów
458 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
459 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
460 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
461 Group: Applications/File
462 Requires(pre): findutils
463 Requires: %{name}-utils = %{version}-%{release}
467 Requires: chrpath >= 0.10-4
470 Requires: file >= 4.01
474 Requires: gcc >= 3.0.3
479 Conflicts: automake < 1:1.7.9-2
480 Conflicts: libtool < 2:1.5-13
482 Requires: glibc-devel
487 Requires: popt >= 1.7
492 Provides: rpmbuild(macros) = %{rpm_macros_rev}
495 Scripts for building binary RPM packages.
497 %description build -l de
498 Scripts fürs Bauen binärer RPM-Pakete.
500 %description build -l pl
501 Skrypty pomocnicze do budowania binarnych RPM-ów.
503 %description build -l pt_BR
504 Este pacote contém scripts e programas executáveis que são usados para
505 construir pacotes usando o RPM.
507 %description build -l ru
508 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
509 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
511 %description build -l uk
512 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
516 Summary: Scripts for managing .spec files and building RPM packages
517 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
518 Summary(pl): Skrypty pomocnicze do zarz±dznia plikami .spec i budowania RPM-ów
519 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
520 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
521 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
522 Group: Applications/File
523 Requires: %{name}-build = %{version}-%{release}
528 %description build-tools
529 Scripts for managing .spec files and building RPM packages.
531 %description build-tools -l de
532 Scripts fürs Bauen RPM-Pakete.
534 %description build-tools -l pl
535 Skrypty pomocnicze do zarz±dzania plikami .spec i do budowania RPM-ów.
537 %description build-tools -l pt_BR
538 Este pacote contém scripts e programas executáveis que são usados para
539 construir pacotes usando o RPM.
541 %description build-tools -l ru
542 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
543 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
545 %description build-tools -l uk
546 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
572 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
573 cp -f platform.in macros.pld.in
574 echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
575 echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
576 echo '# obsoleted file' > macros.python
577 echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
578 echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
579 install %{SOURCE5} scripts/find-lang.sh
580 install %{SOURCE9} scripts/php.prov.in
581 install %{SOURCE10} scripts/php.req.in
582 install %{SOURCE12} scripts/perl.prov
583 cat %{SOURCE11} >> macros.in
608 mv -f perl.req perl.req.in
609 mv -f perl.prov perl.prov.in
613 mv -f po/{sr,sr@Latn}.po
615 rm -rf zlib libelf db db3 popt rpmdb/db.h
617 # generate Group translations to *.po
618 awk -f %{SOURCE6} %{SOURCE1}
620 # update macros paths
621 for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
622 sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
626 # ... and make some cleanings
627 rm -fr $(find ./ -type d -name CVS )
628 rm -f $(find ./ -type f -name ".cvsignore" )
646 # config.guess doesn't handle athlon, so we have to change it by hand.
647 # rpm checks for CPU type at runtime, but it looks better
648 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' \
649 -e 's|@host_cpu@|%{_target_cpu}|' macros.in > macros.tmp
650 mv -f macros.tmp macros.in
652 # pass CC and CXX too in case of building with some older configure macro
659 %{?with_doc:--with-apidocs} \
660 %{?with_python:--with-python=auto} \
661 %{!?with_python:--without-python} \
662 %{!?with_selinux:--without-selinux} \
665 # file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
670 pylibdir=%{py_libdir} \
671 myLDFLAGS="%{rpmldflags}" \
673 debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt"
675 # %{!?with_static:rpm_LDFLAGS="\$(myLDFLAGS)"} \
678 rm -rf $RPM_BUILD_ROOT
679 install -d $RPM_BUILD_ROOT/%{_lib}
682 DESTDIR=$RPM_BUILD_ROOT \
683 pylibdir=%{py_libdir} \
684 pkgbindir="%{_bindir}"
686 rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
687 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
688 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
690 install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
691 install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
692 install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
694 install %{SOURCE1} doc/manual/groups
695 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
696 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
697 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
698 install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
699 install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
700 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
702 install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
703 install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
704 install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
706 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
708 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
711 ix86re=$(echo "(%{ix86})"|sed 's/ /|/g')
712 perl -p -i -e 's/^(buildarchtranslate: '"$ix86re"': ).*/\1%{_target_cpu}/' \
713 $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
716 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
717 # customized rpm macros - global for host
719 #%%_install_langs pl_PL:en_US
722 # remove or replace with file_contexts path if you want to use custom
723 # SELinux file contexts policy instead of one stored in packages payload
724 %%_install_file_context_path %%{nil}
725 %%_verify_file_context_path %%{nil}
728 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
729 # global list of files (regexps) which don't generate Provides
731 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
732 # global list of script capabilities (regexps) not to be used in Provides
734 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
735 # global list of files (regexps) which don't generate Requires
739 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
740 # global list of script capabilities (regexps) not to be used in Requires
742 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
743 # global list of capabilities (SONAME, perl(module), php(module) regexps)
744 # which don't generate dependencies on package NAMES
753 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
754 # global list of file masks not to be compressed in DOCDIR
757 # for rpm -e|-U --repackage
758 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
759 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
762 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
763 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
764 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
767 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
768 [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f
773 cp -a doc/manual manual
774 rm -f manual/Makefile*
777 rm -rf $RPM_BUILD_ROOT
779 %post lib -p /sbin/ldconfig
780 %postun lib -p /sbin/ldconfig
783 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
785 %files -f %{name}.lang
786 %defattr(644,root,root,755)
787 %doc RPM-PGP-KEY CHANGES manual
789 %attr(755,root,root) /bin/rpm
790 #%attr(755,root,root) %{_bindir}/rpmdb
791 #%attr(755,root,root) %{_bindir}/rpmquery
792 #%attr(755,root,root) %{_bindir}/rpmsign
793 #%attr(755,root,root) %{_bindir}/rpmverify
795 %dir %{_sysconfdir}/rpm
796 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
798 %{_mandir}/man8/rpm.8*
799 %lang(fr) %{_mandir}/fr/man8/rpm.8*
800 %lang(ja) %{_mandir}/ja/man8/rpm.8*
801 %lang(ko) %{_mandir}/ko/man8/rpm.8*
802 %lang(pl) %{_mandir}/pl/man8/rpm.8*
803 %lang(ru) %{_mandir}/ru/man8/rpm.8*
804 %lang(sk) %{_mandir}/sk/man8/rpm.8*
807 %dir %attr(700,root,root) /var/spool/repackage
809 /var/lock/rpm/transaction
812 #%attr(755,root,root) %{_rpmlibdir}/rpmd
813 #%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
814 #%attr(755,root,root) %{_rpmlibdir}/rpmk
815 #%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
817 %doc %attr(755,root,root) %{_rpmlibdir}/convertrpmrc.sh
820 %{_rpmlibdir}/rpmpopt*
824 %defattr(644,root,root,755)
825 %attr(755,root,root) /%{_lib}/librpm*-*.so
826 %attr(755,root,root) %{_libdir}/librpm*-*.so
829 %defattr(644,root,root,755)
830 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/noauto*
831 %attr(755,root,root) %{_rpmlibdir}/compress-doc
832 %attr(755,root,root) %{_rpmlibdir}/cross-build
833 #%attr(755,root,root) %{_rpmlibdir}/find-provides
834 #%attr(755,root,root) %{_rpmlibdir}/find-provides-wrapper
835 #%attr(755,root,root) %{_rpmlibdir}/find-requires
836 #%attr(755,root,root) %{_rpmlibdir}/find-requires-wrapper
837 #%attr(755,root,root) %{_rpmlibdir}/find-rpm-provides
838 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
839 %attr(755,root,root) %{_rpmlibdir}/find-lang.sh
840 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
841 %attr(755,root,root) %{_rpmlibdir}/config.*
842 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
843 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
844 %attr(755,root,root) %{_rpmlibdir}/brp-*
845 %attr(755,root,root) %{_rpmlibdir}/check-files
846 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
847 #%attr(755,root,root) %{_rpmlibdir}/cpanflute
848 #%attr(755,root,root) %{_rpmlibdir}/cpanflute2
849 #%attr(755,root,root) %{_rpmlibdir}/Specfile.pm
850 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
851 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides.sh
852 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides2.sh
853 %attr(755,root,root) %{_rpmlibdir}/rpmb
854 %attr(755,root,root) %{_rpmlibdir}/rpmt
855 %{_rpmlibdir}/noarch-*
858 %{_rpmlibdir}/pentium*
859 %{_rpmlibdir}/athlon*
870 %ifarch mips mipsel mips64 mips64el
876 %ifarch sparc sparc64
879 # must be here for "Requires: rpm-*prov" to work
880 %{_rpmlibdir}/macros.perl
881 %{_rpmlibdir}/macros.php
882 # not used yet ... these six depend on perl
883 #%attr(755,root,root) %{_rpmlibdir}/http.req
884 #%attr(755,root,root) %{_rpmlibdir}/magic.prov
885 #%attr(755,root,root) %{_rpmlibdir}/magic.req
886 #%{_rpmlibdir}/sql.prov
887 #%{_rpmlibdir}/sql.req
888 #%{_rpmlibdir}/tcl.req
891 %attr(755,root,root) %{_bindir}/javadeps
892 %attr(755,root,root) %{_bindir}/gendiff
893 %attr(755,root,root) %{_bindir}/rpmbuild
895 %{_mandir}/man1/gendiff.1*
896 %{_mandir}/man8/rpmbuild.8*
897 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
898 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
899 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
902 %defattr(644,root,root,755)
904 %{_libdir}/librpm*.la
905 %attr(755,root,root) %{_libdir}/librpm.so
906 %attr(755,root,root) %{_libdir}/librpmio.so
907 %attr(755,root,root) %{_libdir}/librpmdb.so
908 %attr(755,root,root) %{_libdir}/librpmbuild.so
911 %defattr(644,root,root,755)
915 %defattr(644,root,root,755)
916 %attr(755,root,root) %{_bindir}/debugedit
917 %attr(755,root,root) %{_bindir}/rpm2cpio
918 %attr(755,root,root) %{_bindir}/rpmcache
919 %attr(755,root,root) %{_bindir}/rpmdeps
920 %attr(755,root,root) %{_bindir}/rpmgraph
921 %attr(755,root,root) %{_bindir}/rpmfile
922 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
923 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
924 %attr(755,root,root) %{_rpmlibdir}/tgpg
925 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
928 %defattr(644,root,root,755)
929 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
931 #%%{_rpmlibdir}/rpm.daily
932 #%%{_rpmlibdir}/rpm.log
933 #%%{_rpmlibdir}/rpm.xinetd
935 %{_mandir}/man8/rpm2cpio.8*
936 %{_mandir}/man8/rpmdeps.8*
937 %{_mandir}/man8/rpmcache.8*
938 %{_mandir}/man8/rpmgraph.8*
939 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
940 %lang(ja) %{_mandir}/ja/man8/rpmcache.8*
941 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
942 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
943 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
944 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
945 %lang(pl) %{_mandir}/pl/man8/rpmcache.8*
946 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
947 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
951 %defattr(644,root,root,755)
952 %attr(755,root,root) %{_bindir}/rpm[ieu]
953 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
957 %defattr(644,root,root,755)
958 %attr(755,root,root) %{_rpmlibdir}/perl.*
959 #%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
960 #%attr(755,root,root) %{_rpmlibdir}/find-perl-*
961 #%attr(755,root,root) %{_rpmlibdir}/find-*.perl
962 #%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
963 #%attr(755,root,root) %{_rpmlibdir}/find-req.pl
964 %attr(755,root,root) %{_rpmlibdir}/get_magic.pl
967 %defattr(644,root,root,755)
968 %{_rpmlibdir}/macros.python
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_rpmlibdir}/php*
973 %attr(755,root,root) %{_rpmlibdir}/find-php*
977 %defattr(644,root,root,755)
978 %attr(755,root,root) %{py_sitedir}/*.so
979 %attr(755,root,root) %{py_sitedir}/rpmdb/*.so
980 %{py_sitedir}/rpmdb/*.py*
984 %defattr(644,root,root,755)
985 %attr(755,root,root) %{_bindir}/builder
986 %attr(755,root,root) %{_bindir}/adapter.awk
987 %attr(755,root,root) %{_bindir}/pldnotify.awk