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.9
22 %define beecrypt_ver 2:4.1.0
23 %define rpm_macros_rev 1.167
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
35 Release: 0.%{snap}.0.1
38 #Source0: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.2.x/%{name}-%{version}.%{snap}.tar.gz
39 Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.%{snap}.tar.bz2
40 # Source0-md5: 5033d2c69d8db97ab0886e48743e96c7
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 Patch1: %{name}-rpmrc.patch
59 Patch2: %{name}-arch.patch
60 Patch3: %{name}-rpmpopt.patch
61 Patch4: %{name}-perl-macros.patch
62 Patch5: %{name}-perl-req-perlfile.patch
63 Patch7: %{name}-noexpand.patch
64 Patch8: %{name}-scripts-closefds.patch
65 Patch9: %{name}-python-macros.patch
66 Patch10: %{name}-gettext-in-header.patch
67 Patch11: %{name}-compress-doc.patch
68 Patch12: %{name}-build.patch
69 Patch13: %{name}-system_libs.patch
70 Patch14: %{name}-bb-and-short-circuit.patch
71 Patch15: %{name}-etc_dir.patch
72 Patch16: %{name}-system_libs-more.patch
73 Patch17: %{name}-php-deps.patch
74 Patch19: %{name}-ldconfig-always.patch
75 Patch20: %{name}-perl_req.patch
76 Patch21: %{name}-no-bin-env.patch
77 Patch22: %{name}-magic-usesystem.patch
78 Patch23: %{name}-dontneedutils.patch
79 Patch24: %{name}-provides-dont-obsolete.patch
80 Patch25: %{name}-examplesaredoc.patch
81 Patch26: %{name}-po.patch
82 Patch27: %{name}-amd64.patch
83 Patch28: %{name}-notsc.patch
84 Patch29: %{name}-hack-norpmlibdep.patch
85 Patch30: %{name}-makefile-no_myLDADD_deps.patch
86 Patch31: %{name}-libdir64.patch
87 Patch32: %{name}-libdir-links.patch
88 Patch35: %{name}-missing-prototypes.patch
89 Patch36: %{name}-pld-autodep.patch
90 Patch37: %{name}-rpmsq.patch
91 Patch40: %{name}-epoch0.patch
92 Patch43: %{name}-perl_req-INC_dirs.patch
93 Patch44: %{name}-debuginfo.patch
94 Patch45: %{name}-beecrypt4.patch
95 Patch46: %{name}-doxygen_hack.patch
96 Patch47: %{name}-distver.patch
97 Patch100: %{name}-pl.po.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_apidocs:BuildRequires: doxygen}
106 BuildRequires: elfutils-devel
107 BuildRequires: findutils
108 BuildRequires: gettext-devel >= 0.11.4-2
109 #BuildRequires: libmagic-devel
110 %{?with_selinux:BuildRequires: libselinux-devel}
111 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
112 BuildRequires: libstdc++-devel
113 BuildRequires: libtool
114 BuildRequires: libxml2-devel
115 BuildRequires: neon-devel
116 BuildRequires: patch >= 2.2
117 BuildRequires: popt-devel >= %{reqpopt_ver}
118 %{?with_python:BuildRequires: python-devel >= 2.2}
119 BuildRequires: python-modules >= 2.2
120 BuildRequires: readline-devel
121 BuildRequires: rpm-perlprov
122 BuildRequires: rpm-pythonprov
123 BuildRequires: zlib-devel
125 # Require static library only for static build
126 BuildRequires: beecrypt-static >= %{beecrypt_ver}
127 BuildRequires: bzip2-static >= 1.0.2-5
128 BuildRequires: db-static >= %{reqdb_ver}
129 BuildRequires: glibc-static >= 2.2.94
130 BuildRequires: elfutils-static
131 #BuildRequires: libmagic-static
132 %{?with_selinux:BuildRequires: libselinux-static}
133 BuildRequires: popt-static >= %{reqpopt_ver}
134 BuildRequires: zlib-static
136 Requires: beecrypt >= %{beecrypt_ver}
137 Requires: popt >= %{reqpopt_ver}
138 Requires: %{name}-lib = %{version}-%{release}
139 %{!?with_static:Obsoletes: rpm-utils-static}
140 Conflicts: glibc < 2.2.92
141 # avoid SEGV caused by mixed db versions
142 Conflicts: poldek < 0.18.1-16
143 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
145 %define _binary_payload w9.gzdio
146 %define _noPayloadPrefix 1
148 # don't require very fresh rpm.macros to build
149 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
150 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
152 # stabilize new build environment
153 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
154 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
155 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
157 %define _rpmlibdir /usr/lib/rpm
160 RPM is a powerful package manager, which can be used to build,
161 install, query, verify, update, and uninstall individual software
162 packages. A package consists of an archive of files, and package
163 information, including name, version, and description.
166 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
167 Installation, Anfrage, Verifizierung, Aktualisierung und
168 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
169 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
173 RPM es un poderoso administrador de paquetes, que puede ser usado para
174 construir, instalar, pesquisar, verificar, actualizar y desinstalar
175 paquetes individuales de software. Un paquete consiste en un
176 almacenaje de archivos, y información sobre el paquete, incluyendo
177 nombre, versión y descripción.
180 RPM jest doskona³ym programem zarz±dzaj±cym pakietami. Umo¿liwia on
181 przebudowanie, instalacjê czy weryfikacjê dowolnego pakietu.
182 Informacje dotycz±ce ka¿dego pakietu, takie jak jego opis, lista
183 plików wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
184 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
185 odpytywania programu rpm.
187 %description -l pt_BR
188 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
189 construir, instalar, pesquisar, verificar, atualizar e desinstalar
190 pacotes individuais de software. Um pacote consiste de um conjunto de
191 arquivos e informações adicionais, incluindo nome, versão e descrição
192 do pacote, permissões dos arquivos, etc.
195 RPM - ÜÔÏ ÍÏÝÎÙÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔÏ×, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ÄÌÑ
196 ÓÏÚÄÁÎÉÑ, ÉÎÓÔÁÌÌÑÃÉÉ, ÚÁÐÒÏÓÏ× (query), ÐÒÏ×ÅÒËÉ, ÏÂÎÏ×ÌÅÎÉÑ É
197 ÕÄÁÌÅÎÉÑ ÐÒÏÇÒÁÍÍÎÙÈ ÐÁËÅÔÏ×. ðÁËÅÔ ÓÏÓÔÏÉÔ ÉÚ ÆÁÊÌÏ×ÏÇÏ ÁÒÈÉ×Á É
198 ÓÌÕÖÅÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ, ×ËÌÀÞÁÀÝÅÊ ÎÁÚ×ÁÎÉÅ, ×ÅÒÓÉÀ, ÏÐÉÓÁÎÉÅ É ÄÒÕÇÉÅ
202 RPM - ÃÅ ÐÏÔÕÖÎÉÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔ¦×, ÝÏ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÄÌÑ
203 ÓÔ×ÏÒÅÎÎÑ, ¦ÎÓÔÁÌÑæ§, ÚÁÐÉÔ¦× (query), ÐÅÒÅצÒËÉ, ÐÏÎÏ×ÌÅÎÎÑ ÔÁ
204 ×ÉÄÁÌÅÎÎÑ ÐÒÏÇÒÁÍÎÉÈ ÐÁËÅÔ¦×. ðÁËÅÔ ÓËÌÁÄÁ¤ÔØÓÑ Ú ÆÁÊÌÏ×ÏÇÏ ÁÒȦ×Õ ÔÁ
205 ÓÌÕÖÂÏ×ϧ ¦ÎÆÏÒÍÁæ§, ÝÏ Í¦ÓÔÉÔØ ÎÁÚ×Õ, ×ÅÒÓ¦À, ÏÐÉÓ ÔÁ ¦ÎÛÕ
206 ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÐÁËÅÔ.
209 Summary: Header files for rpm libraries
210 Summary(de): Header-Dateien für rpm Libraries
211 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
212 Summary(pl): Pliki nag³ówkowe bibliotek rpm
213 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
214 Summary(ru): èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
215 Summary(uk): èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
216 Group: Development/Libraries
217 Requires: %{name}-lib = %{version}-%{release}
218 Requires: beecrypt-devel >= %{beecrypt_ver}
219 Requires: bzip2-devel
220 Requires: db-devel >= %{reqdb_ver}
221 Requires: elfutils-devel
222 %{?with_selinux:Requires: libselinux-devel}
223 Requires: popt-devel >= %{reqpopt_ver}
227 The RPM packaging system includes C libraries that make it easy to
228 manipulate RPM packages and databases. They are intended to ease the
229 creation of graphical package managers and other tools that need
230 intimate knowledge of RPM packages. This package contains header files
233 %description devel -l de
234 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
235 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
236 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
237 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
239 %description devel -l es
240 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
241 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
242 facilitar la creación de administradores gráficos de paquetes y otras
243 herramientas que necesiten un conocimiento profundo de paquetes RPM.
245 %description devel -l pl
246 System RPM zawiera biblioteki C, które u³atwiaj± manipulowanie
247 pakietami RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
248 graficznych programów zarz±dzaj±cych pakietami oraz innych narzêdzi,
249 które wymagaj± szczegó³owej wiedzy na temat pakietów RPM. Ten pakiet
250 zawiera pliki nag³ówkowe wspomnianych bibliotek.
252 %description devel -l pt_BR
253 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
254 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
255 facilitar a criação de gerenciadores gráficos de pacotes e outras
256 ferramentas que precisem de conhecimento profundo de pacotes RPM.
258 %description devel -l ru
259 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
260 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
261 üÔÁ ÂÉÂÌÉÏÔÅËÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÏÂÌÅÇÞÅÎÉÑ ÓÏÚÄÁÎÉÑ ÇÒÁÆÉÞÅÓËÉÈ
262 ÐÁËÅÔÎÙÈ ÍÅÎÅÄÖÅÒÏ× É ÄÒÕÇÉÈ ÕÔÉÌÉÔ, ËÏÔÏÒÙÍ ÎÅÏÂÈÏÄÉÍÏ ÒÁÂÏÔÁÔØ Ó
265 %description devel -l uk
266 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
267 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÑ Â¦Â̦ÏÔÅËÁ
268 ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ÐÏÌÅÇÛÅÎÎÑ ÓÔ×ÏÒÅÎÎÑ ÇÒÁƦÞÎÉÈ ÐÁËÅÔÎÉÈ ÍÅÎÅÄÖÅÒ¦× ÔÁ
269 ¦ÎÛÉÈ ÕÔÉ̦Ô, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ RPM.
272 Summary: RPM static libraries
273 Summary(de): RPMs statische Libraries
274 Summary(pl): Biblioteki statyczne RPM-a
275 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
276 Summary(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
277 Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
278 Group: Development/Libraries
279 Requires: %{name}-devel = %{version}-%{release}
280 Requires: beecrypt-static >= %{beecrypt_ver}
281 Requires: bzip2-static
282 Requires: db-static >= %{reqdb_ver}
283 Requires: elfutils-static
284 Requires: popt-static >= %{reqpopt_ver}
285 Requires: zlib-static
288 RPM static libraries.
290 %description static -l de
291 RPMs statische Libraries.
293 %description static -l pl
294 Biblioteki statyczne RPM-a.
296 %description static -l pt_BR
297 Bibliotecas estáticas para desenvolvimento.
299 %description static -l ru
300 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
301 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
302 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ RPM.
304 %description static -l uk
305 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
306 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÅ ÓÔÁÔÉÞÎÁ
310 Summary: Additional utilities for managing rpm packages and database
311 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
312 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
313 Group: Applications/File
314 Requires: %{name} = %{version}-%{release}
315 Requires: popt >= %{reqpopt_ver}
318 Additional utilities for managing rpm packages and database.
320 %description utils -l de
321 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
323 %description utils -l pl
324 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
327 Summary: Additional utilities for managing rpm packages and database
328 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
329 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
330 Group: Applications/File
331 Requires: %{name}-utils = %{version}-%{release}
332 Requires: popt >= %{reqpopt_ver}
334 %description utils-perl
335 Additional utilities for managing rpm packages and database.
337 %description utils-perl -l de
338 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
340 %description utils-perl -l pl
341 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
343 %package utils-static
344 Summary: Static rpm utilities
345 Summary(pl): Statyczne narzêdzia rpm
346 Group: Applications/System
347 Requires: %{name} = %{version}-%{release}
349 %description utils-static
350 Static rpm utilities for repairing system in case something with
351 shared libraries used by rpm become broken. Currently it contains rpmi
352 binary, which can be used to install/upgrade/remove packages without
353 using shared libraries (well, in fact with exception of NSS modules).
355 %description utils-static -l pl
356 Statyczne narzêdzia rpm do naprawy systemu w przypadku zepsucia czego¶
357 zwi±zanego z bibliotekami wspó³dzielonymi u¿ywanymi przez rpm-a.
358 Aktualnie pakiet zawiera binarkê rpmi, któr± mo¿na u¿yæ do instalacji,
359 uaktualniania lub usuwania pakietów bez udzia³u bibliotek statycznych
360 (z wyj±tkiem modu³ów NSS).
363 Summary: Additional utilities for checking perl provides/requires in rpm packages
364 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
365 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
366 Group: Applications/File
367 Requires: %{name} = %{version}-%{release}
369 Requires: perl-modules
371 %description perlprov
372 Additional utilities for checking perl provides/requires in rpm
375 %description perlprov -l de
376 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
378 %description perlprov -l pl
379 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
383 Summary: Python macros, which simplifies creation of rpm packages with Python software
384 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
385 Group: Applications/File
386 Requires: %{name} = %{version}-%{release}
387 Requires: python-modules
389 %description pythonprov
390 Python macros, which simplifies creation of rpm packages with Python
393 %description pythonprov -l pl
394 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
397 %package php-pearprov
398 Summary: Additional utilities for managing rpm packages and database
399 Summary(pl): Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm
400 Group: Applications/File
401 Requires: %{name} = %{version}-%{release}
403 %description php-pearprov
404 Additional utilities for checking php pear provides/requires in rpm
407 %description php-pearprov -l pl
408 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
411 %package -n python-rpm
412 Summary: Python interface to RPM library
413 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
414 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
415 Group: Development/Languages/Python
416 Requires: %{name} = %{version}-%{release}
417 %pyrequires_eq python
418 Obsoletes: rpm-python
420 %description -n python-rpm
421 The rpm-python package contains a module which permits applications
422 written in the Python programming language to use the interface
423 supplied by RPM (RPM Package Manager) libraries.
425 This package should be installed if you want to develop Python
426 programs that will manipulate RPM packages and databases.
428 %description -n python-rpm -l pl
429 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
430 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
432 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
433 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
435 %description -n python-rpm -l pt_BR
436 O pacote rpm-python contém um módulo que permite que aplicações
437 escritas em Python utilizem a interface fornecida pelas bibliotecas
438 RPM (RPM Package Manager).
440 Esse pacote deve ser instalado se você quiser desenvolver programas em
441 Python para manipular pacotes e bancos de dados RPM.
444 Summary: RPMs library
445 Summary(pl): Biblioteki RPM-a
447 Requires: db >= %{reqdb_ver}
448 Requires: popt >= %{reqpopt_ver}
449 %{?with_distver:Provides: rpm-lib(distver)}
450 # avoid SEGV caused by mixed db versions
451 Conflicts: poldek < 0.18.1-16
456 %description lib -l pl
460 Summary: Scripts for building binary RPM packages
461 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
462 Summary(pl): Skrypty pomocnicze do budowania binarnych RPM-ów
463 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
464 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
465 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
466 Group: Applications/File
467 Requires(pre): findutils
468 Requires: %{name}-utils = %{version}-%{release}
472 Requires: chrpath >= 0.10-4
476 Requires: file >= 4.01
480 Requires: gcc >= 3.0.3
484 Requires: glibc-devel
489 Requires: popt >= 1.7
494 Provides: rpmbuild(macros) = %{rpm_macros_rev}
495 Provides: rpmbuild(noauto) = 3
497 Conflicts: automake < 1:1.7.9-2
498 Conflicts: libtool < 2:1.5-13
502 Scripts for building binary RPM packages.
504 %description build -l de
505 Scripts fürs Bauen binärer RPM-Pakete.
507 %description build -l pl
508 Skrypty pomocnicze do budowania binarnych RPM-ów.
510 %description build -l pt_BR
511 Este pacote contém scripts e programas executáveis que são usados para
512 construir pacotes usando o RPM.
514 %description build -l ru
515 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
516 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
518 %description build -l uk
519 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
523 Summary: Scripts for managing .spec files and building RPM packages
524 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
525 Summary(pl): Skrypty pomocnicze do zarz±dznia plikami .spec i budowania RPM-ów
526 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
527 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
528 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
529 Group: Applications/File
530 Requires: %{name}-build = %{version}-%{release}
535 %description build-tools
536 Scripts for managing .spec files and building RPM packages.
538 %description build-tools -l de
539 Scripts fürs Bauen RPM-Pakete.
541 %description build-tools -l pl
542 Skrypty pomocnicze do zarz±dzania plikami .spec i do budowania RPM-ów.
544 %description build-tools -l pt_BR
545 Este pacote contém scripts e programas executáveis que são usados para
546 construir pacotes usando o RPM.
548 %description build-tools -l ru
549 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
550 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
552 %description build-tools -l uk
553 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
558 Summary: rpm API documentation and guides
559 Summary(pl): Documentacja API rpm i przewodniki.
563 Documentation for rpm API and guides in html format generated
564 from rpm sources by doxygen.
566 %description apidocs -l pl
567 Dokumentacja API rpm oraz przewodniki w formacie html generowana
568 ze ¼rode³ rpm przez doxygen.
575 # temporarily moved after patch100 - messes too much in pl.po
594 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
595 cp -f platform.in macros.pld.in
596 echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
597 echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
598 echo '# obsoleted file' > macros.python
599 echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
600 echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
601 install %{SOURCE5} scripts/find-lang.sh
602 install %{SOURCE9} scripts/php.prov.in
603 install %{SOURCE10} scripts/php.req.in
604 install %{SOURCE12} scripts/perl.prov
605 cat %{SOURCE11} >> macros.in
627 %{?with_distver:%patch47 -p1}
633 mv -f perl.req perl.req.in
634 mv -f perl.prov perl.prov.in
638 mv -f po/{sr,sr@Latn}.po
640 rm -rf neon zlib libelf db db3 popt rpmdb/db.h
642 # generate Group translations to *.po
643 awk -f %{SOURCE6} %{SOURCE1}
645 # update macros paths
646 for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
647 sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
651 # ... and make some cleanings
652 rm -fr $(find ./ -type d -name CVS )
653 rm -f $(find ./ -type f -name ".cvsignore" )
671 # config.guess doesn't handle athlon, so we have to change it by hand.
672 # rpm checks for CPU type at runtime, but it looks better
673 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' \
674 -e 's|@host_cpu@|%{_target_cpu}|' macros.in > macros.tmp
675 mv -f macros.tmp macros.in
677 # pass CC and CXX too in case of building with some older configure macro
684 %{?with_apidoc:--with-apidocs} \
685 %{?with_pkgnameinautoreq:--enable-adding-packages-names-in-autogenerated-dependancies} \
686 %{?with_python:--with-python=auto} \
687 %{!?with_python:--without-python} \
688 %{!?with_selinux:--without-selinux} \
691 # file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
696 pylibdir=%{py_libdir} \
697 myLDFLAGS="%{rpmldflags}" \
699 debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt"
701 # %{!?with_static:rpm_LDFLAGS="\$(myLDFLAGS)"} \
702 %{?with_apidocs:%{__make} doxygen}
705 rm -rf $RPM_BUILD_ROOT
706 install -d $RPM_BUILD_ROOT{/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm}
709 DESTDIR=$RPM_BUILD_ROOT \
710 pylibdir=%{py_libdir} \
711 pkgbindir="%{_bindir}"
713 rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
714 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
715 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
717 install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
718 install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
719 install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
721 install %{SOURCE1} doc/manual/groups
722 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
723 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
724 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
725 install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
726 install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
727 install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
728 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
729 install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
731 install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
732 install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
733 install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
735 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
738 ix86re=$(echo "(%{ix86})"|sed 's/ /|/g')
739 perl -p -i -e 's/^(buildarchtranslate: '"$ix86re"': ).*/\1%{_target_cpu}/' \
740 $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
743 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
744 # customized rpm macros - global for host
746 #%%_install_langs pl_PL:en_US
749 # remove or replace with file_contexts path if you want to use custom
750 # SELinux file contexts policy instead of one stored in packages payload
751 %%_install_file_context_path %%{nil}
752 %%_verify_file_context_path %%{nil}
755 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
756 # global list of files (regexps) which don't generate Provides
758 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
759 # global list of script capabilities (regexps) not to be used in Provides
761 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
762 # global list of files (regexps) which don't generate Requires
766 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
767 # global list of script capabilities (regexps) not to be used in Requires
769 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
770 # global list of capabilities (SONAME, perl(module), php(module) regexps)
771 # which don't generate dependencies on package NAMES
772 # -- OpenGL implementation
782 # -- X11 implementation
825 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
826 # global list of file masks not to be compressed in DOCDIR
829 # for rpm -e|-U --repackage
830 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
831 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
834 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
835 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
836 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
839 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
840 [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f
845 cp -a doc/manual manual
846 rm -f manual/Makefile*
849 rm -rf $RPM_BUILD_ROOT
851 %post lib -p /sbin/ldconfig
852 %postun lib -p /sbin/ldconfig
855 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
857 %files -f %{name}.lang
858 %defattr(644,root,root,755)
859 %doc RPM-PGP-KEY CHANGES manual
861 %attr(755,root,root) /bin/rpm
862 #%attr(755,root,root) %{_bindir}/rpmdb
863 #%attr(755,root,root) %{_bindir}/rpmquery
864 #%attr(755,root,root) %{_bindir}/rpmsign
865 #%attr(755,root,root) %{_bindir}/rpmverify
867 %dir %{_sysconfdir}/rpm
868 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
869 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rpm
871 %{_mandir}/man8/rpm.8*
872 %lang(fr) %{_mandir}/fr/man8/rpm.8*
873 %lang(ja) %{_mandir}/ja/man8/rpm.8*
874 %lang(ko) %{_mandir}/ko/man8/rpm.8*
875 %lang(pl) %{_mandir}/pl/man8/rpm.8*
876 %lang(ru) %{_mandir}/ru/man8/rpm.8*
877 %lang(sk) %{_mandir}/sk/man8/rpm.8*
880 %dir %attr(700,root,root) /var/spool/repackage
882 /var/lock/rpm/transaction
885 #%attr(755,root,root) %{_rpmlibdir}/rpmd
886 #%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
887 #%attr(755,root,root) %{_rpmlibdir}/rpmk
888 #%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
890 %doc %attr(755,root,root) %{_rpmlibdir}/convertrpmrc.sh
891 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
894 %{_rpmlibdir}/rpmpopt*
898 %defattr(644,root,root,755)
899 %attr(755,root,root) /%{_lib}/librpm*-*.so
900 %attr(755,root,root) %{_libdir}/librpm*-*.so
903 %defattr(644,root,root,755)
904 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/noauto*
905 %attr(755,root,root) %{_rpmlibdir}/compress-doc
906 %attr(755,root,root) %{_rpmlibdir}/cross-build
907 #%attr(755,root,root) %{_rpmlibdir}/find-provides
908 #%attr(755,root,root) %{_rpmlibdir}/find-provides-wrapper
909 #%attr(755,root,root) %{_rpmlibdir}/find-requires
910 #%attr(755,root,root) %{_rpmlibdir}/find-requires-wrapper
911 #%attr(755,root,root) %{_rpmlibdir}/find-rpm-provides
912 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
913 %attr(755,root,root) %{_rpmlibdir}/find-lang.sh
914 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
915 %attr(755,root,root) %{_rpmlibdir}/config.*
916 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
917 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
918 %attr(755,root,root) %{_rpmlibdir}/brp-*
919 %attr(755,root,root) %{_rpmlibdir}/check-files
920 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
921 #%attr(755,root,root) %{_rpmlibdir}/cpanflute
922 #%attr(755,root,root) %{_rpmlibdir}/cpanflute2
923 #%attr(755,root,root) %{_rpmlibdir}/Specfile.pm
924 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
925 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides.sh
926 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides2.sh
927 %attr(755,root,root) %{_rpmlibdir}/rpmb
928 %attr(755,root,root) %{_rpmlibdir}/rpmt
929 %{_rpmlibdir}/noarch-*
932 %{_rpmlibdir}/pentium*
933 %{_rpmlibdir}/athlon*
944 %ifarch mips mipsel mips64 mips64el
950 %ifarch sparc sparc64
953 # must be here for "Requires: rpm-*prov" to work
954 %{_rpmlibdir}/macros.perl
955 %{_rpmlibdir}/macros.php
956 # not used yet ... these six depend on perl
957 #%attr(755,root,root) %{_rpmlibdir}/http.req
958 #%attr(755,root,root) %{_rpmlibdir}/magic.prov
959 #%attr(755,root,root) %{_rpmlibdir}/magic.req
960 #%{_rpmlibdir}/sql.prov
961 #%{_rpmlibdir}/sql.req
962 #%{_rpmlibdir}/tcl.req
965 %attr(755,root,root) %{_bindir}/javadeps
966 %attr(755,root,root) %{_bindir}/gendiff
967 %attr(755,root,root) %{_bindir}/rpmbuild
969 %{_mandir}/man1/gendiff.1*
970 %{_mandir}/man8/rpmbuild.8*
971 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
972 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
973 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
976 %defattr(644,root,root,755)
978 %{_libdir}/librpm*.la
979 %attr(755,root,root) %{_libdir}/librpm.so
980 %attr(755,root,root) %{_libdir}/librpmio.so
981 %attr(755,root,root) %{_libdir}/librpmdb.so
982 %attr(755,root,root) %{_libdir}/librpmbuild.so
985 %defattr(644,root,root,755)
989 %defattr(644,root,root,755)
990 %attr(755,root,root) %{_bindir}/debugedit
991 %attr(755,root,root) %{_bindir}/rpm2cpio
992 %attr(755,root,root) %{_bindir}/rpmcache
993 %attr(755,root,root) %{_bindir}/rpmdeps
994 %attr(755,root,root) %{_bindir}/rpmgraph
995 %attr(755,root,root) %{_bindir}/rpmfile
996 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
997 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
998 %attr(755,root,root) %{_rpmlibdir}/tgpg
999 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1000 %{_mandir}/man8/rpm2cpio.8*
1001 %{_mandir}/man8/rpmdeps.8*
1002 %{_mandir}/man8/rpmcache.8*
1003 %{_mandir}/man8/rpmgraph.8*
1004 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1005 %lang(ja) %{_mandir}/ja/man8/rpmcache.8*
1006 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
1007 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1008 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1009 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1010 %lang(pl) %{_mandir}/pl/man8/rpmcache.8*
1011 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
1012 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1015 %defattr(644,root,root,755)
1016 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1018 #%%{_rpmlibdir}/rpm.daily
1019 #%%{_rpmlibdir}/rpm.log
1020 #%%{_rpmlibdir}/rpm.xinetd
1025 %defattr(644,root,root,755)
1026 %attr(755,root,root) %{_bindir}/rpm[ieu]
1027 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1031 %defattr(644,root,root,755)
1032 %attr(755,root,root) %{_rpmlibdir}/perl.*
1033 #%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1034 #%attr(755,root,root) %{_rpmlibdir}/find-perl-*
1035 #%attr(755,root,root) %{_rpmlibdir}/find-*.perl
1036 #%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
1037 #%attr(755,root,root) %{_rpmlibdir}/find-req.pl
1038 %attr(755,root,root) %{_rpmlibdir}/get_magic.pl
1041 %defattr(644,root,root,755)
1042 %{_rpmlibdir}/macros.python
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_rpmlibdir}/php*
1047 %attr(755,root,root) %{_rpmlibdir}/find-php*
1050 %files -n python-rpm
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{py_sitedir}/*.so
1053 %attr(755,root,root) %{py_sitedir}/rpmdb/*.so
1054 %{py_sitedir}/rpmdb/*.py*
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_bindir}/builder
1060 %attr(755,root,root) %{_bindir}/adapter.awk
1061 %attr(755,root,root) %{_bindir}/pldnotify.awk
1065 %defattr(644,root,root,755)