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.0.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.8
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: a91b8e17f6e69208b188d2876e80aef9
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 Patch18: %{name}-python-fix.patch
75 Patch19: %{name}-ldconfig-always.patch
76 Patch20: %{name}-perl_req.patch
77 Patch21: %{name}-no-bin-env.patch
78 Patch22: %{name}-magic-usesystem.patch
79 Patch23: %{name}-dontneedutils.patch
80 Patch24: %{name}-provides-dont-obsolete.patch
81 Patch25: %{name}-examplesaredoc.patch
82 Patch26: %{name}-po.patch
83 Patch27: %{name}-amd64.patch
84 Patch28: %{name}-notsc.patch
85 Patch29: %{name}-hack-norpmlibdep.patch
86 Patch30: %{name}-makefile-no_myLDADD_deps.patch
87 Patch31: %{name}-libdir64.patch
88 Patch32: %{name}-libdir-links.patch
89 Patch33: %{name}-context.patch
90 Patch35: %{name}-missing-prototypes.patch
91 Patch36: %{name}-pld-autodep.patch
92 Patch37: %{name}-rpmsq.patch
93 Patch38: %{name}-file-readelf.patch
94 Patch39: %{name}-no_version_check_in_obsoletes.patch
95 Patch40: %{name}-epoch0.patch
96 Patch41: %{name}-file-readelf-fix.patch
97 Patch43: %{name}-perl_req-INC_dirs.patch
98 Patch44: %{name}-debuginfo.patch
99 Patch45: %{name}-beecrypt4.patch
100 Patch46: %{name}-doxygen_hack.patch
101 Patch47: %{name}-distver.patch
102 Patch100: %{name}-pl.po.patch
103 URL: http://www.rpm.org/
105 BuildRequires: autoconf >= 2.52
106 BuildRequires: automake
107 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
108 BuildRequires: bzip2-devel >= 1.0.1
109 BuildRequires: db-devel >= %{reqdb_ver}
110 %{?with_apidocs:BuildRequires: doxygen}
111 BuildRequires: elfutils-devel
112 BuildRequires: findutils
113 BuildRequires: gettext-devel >= 0.11.4-2
114 #BuildRequires: libmagic-devel
115 %{?with_selinux:BuildRequires: libselinux-devel}
116 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
117 BuildRequires: libstdc++-devel
118 BuildRequires: libtool
119 BuildRequires: libxml2-devel
120 BuildRequires: patch >= 2.2
121 BuildRequires: popt-devel >= %{reqpopt_ver}
122 %{?with_python:BuildRequires: python-devel >= 2.2}
123 BuildRequires: python-modules >= 2.2
124 BuildRequires: readline-devel
125 BuildRequires: rpm-perlprov
126 BuildRequires: rpm-pythonprov
127 BuildRequires: zlib-devel
129 # Require static library only for static build
130 BuildRequires: beecrypt-static >= %{beecrypt_ver}
131 BuildRequires: bzip2-static >= 1.0.2-5
132 BuildRequires: db-static >= %{reqdb_ver}
133 BuildRequires: glibc-static >= 2.2.94
134 BuildRequires: elfutils-static
135 #BuildRequires: libmagic-static
136 %{?with_selinux:BuildRequires: libselinux-static}
137 BuildRequires: popt-static >= %{reqpopt_ver}
138 BuildRequires: zlib-static
140 Requires: beecrypt >= %{beecrypt_ver}
141 Requires: popt >= %{reqpopt_ver}
142 Requires: %{name}-lib = %{version}-%{release}
143 %{!?with_static:Obsoletes: rpm-utils-static}
144 Conflicts: glibc < 2.2.92
145 # avoid SEGV caused by mixed db versions
146 Conflicts: poldek < 0.18.1-16
147 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
149 %define _binary_payload w9.gzdio
150 %define _noPayloadPrefix 1
152 # don't require very fresh rpm.macros to build
153 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
154 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
156 # stabilize new build environment
157 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
158 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
159 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
161 %define _rpmlibdir /usr/lib/rpm
164 RPM is a powerful package manager, which can be used to build,
165 install, query, verify, update, and uninstall individual software
166 packages. A package consists of an archive of files, and package
167 information, including name, version, and description.
170 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
171 Installation, Anfrage, Verifizierung, Aktualisierung und
172 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
173 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
177 RPM es un poderoso administrador de paquetes, que puede ser usado para
178 construir, instalar, pesquisar, verificar, actualizar y desinstalar
179 paquetes individuales de software. Un paquete consiste en un
180 almacenaje de archivos, y información sobre el paquete, incluyendo
181 nombre, versión y descripción.
184 RPM jest doskona³ym programem zarz±dzaj±cym pakietami. Umo¿liwia on
185 przebudowanie, instalacjê czy weryfikacjê dowolnego pakietu.
186 Informacje dotycz±ce ka¿dego pakietu, takie jak jego opis, lista
187 plików wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
188 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
189 odpytywania programu rpm.
191 %description -l pt_BR
192 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
193 construir, instalar, pesquisar, verificar, atualizar e desinstalar
194 pacotes individuais de software. Um pacote consiste de um conjunto de
195 arquivos e informações adicionais, incluindo nome, versão e descrição
196 do pacote, permissões dos arquivos, etc.
199 RPM - ÜÔÏ ÍÏÝÎÙÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔÏ×, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ÄÌÑ
200 ÓÏÚÄÁÎÉÑ, ÉÎÓÔÁÌÌÑÃÉÉ, ÚÁÐÒÏÓÏ× (query), ÐÒÏ×ÅÒËÉ, ÏÂÎÏ×ÌÅÎÉÑ É
201 ÕÄÁÌÅÎÉÑ ÐÒÏÇÒÁÍÍÎÙÈ ÐÁËÅÔÏ×. ðÁËÅÔ ÓÏÓÔÏÉÔ ÉÚ ÆÁÊÌÏ×ÏÇÏ ÁÒÈÉ×Á É
202 ÓÌÕÖÅÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ, ×ËÌÀÞÁÀÝÅÊ ÎÁÚ×ÁÎÉÅ, ×ÅÒÓÉÀ, ÏÐÉÓÁÎÉÅ É ÄÒÕÇÉÅ
206 RPM - ÃÅ ÐÏÔÕÖÎÉÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔ¦×, ÝÏ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÄÌÑ
207 ÓÔ×ÏÒÅÎÎÑ, ¦ÎÓÔÁÌÑæ§, ÚÁÐÉÔ¦× (query), ÐÅÒÅצÒËÉ, ÐÏÎÏ×ÌÅÎÎÑ ÔÁ
208 ×ÉÄÁÌÅÎÎÑ ÐÒÏÇÒÁÍÎÉÈ ÐÁËÅÔ¦×. ðÁËÅÔ ÓËÌÁÄÁ¤ÔØÓÑ Ú ÆÁÊÌÏ×ÏÇÏ ÁÒȦ×Õ ÔÁ
209 ÓÌÕÖÂÏ×ϧ ¦ÎÆÏÒÍÁæ§, ÝÏ Í¦ÓÔÉÔØ ÎÁÚ×Õ, ×ÅÒÓ¦À, ÏÐÉÓ ÔÁ ¦ÎÛÕ
210 ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÐÁËÅÔ.
213 Summary: Header files for rpm libraries
214 Summary(de): Header-Dateien für rpm Libraries
215 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
216 Summary(pl): Pliki nag³ówkowe bibliotek rpm
217 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
218 Summary(ru): èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
219 Summary(uk): èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
220 Group: Development/Libraries
221 Requires: %{name}-lib = %{version}-%{release}
222 Requires: beecrypt-devel >= %{beecrypt_ver}
223 Requires: bzip2-devel
224 Requires: db-devel >= %{reqdb_ver}
225 Requires: elfutils-devel
226 %{?with_selinux:Requires: libselinux-devel}
227 Requires: popt-devel >= %{reqpopt_ver}
231 The RPM packaging system includes C libraries that make it easy to
232 manipulate RPM packages and databases. They are intended to ease the
233 creation of graphical package managers and other tools that need
234 intimate knowledge of RPM packages. This package contains header files
237 %description devel -l de
238 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
239 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
240 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
241 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
243 %description devel -l es
244 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
245 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
246 facilitar la creación de administradores gráficos de paquetes y otras
247 herramientas que necesiten un conocimiento profundo de paquetes RPM.
249 %description devel -l pl
250 System RPM zawiera biblioteki C, które u³atwiaj± manipulowanie
251 pakietami RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
252 graficznych programów zarz±dzaj±cych pakietami oraz innych narzêdzi,
253 które wymagaj± szczegó³owej wiedzy na temat pakietów RPM. Ten pakiet
254 zawiera pliki nag³ówkowe wspomnianych bibliotek.
256 %description devel -l pt_BR
257 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
258 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
259 facilitar a criação de gerenciadores gráficos de pacotes e outras
260 ferramentas que precisem de conhecimento profundo de pacotes RPM.
262 %description devel -l ru
263 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
264 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
265 üÔÁ ÂÉÂÌÉÏÔÅËÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÏÂÌÅÇÞÅÎÉÑ ÓÏÚÄÁÎÉÑ ÇÒÁÆÉÞÅÓËÉÈ
266 ÐÁËÅÔÎÙÈ ÍÅÎÅÄÖÅÒÏ× É ÄÒÕÇÉÈ ÕÔÉÌÉÔ, ËÏÔÏÒÙÍ ÎÅÏÂÈÏÄÉÍÏ ÒÁÂÏÔÁÔØ Ó
269 %description devel -l uk
270 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
271 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÑ Â¦Â̦ÏÔÅËÁ
272 ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ÐÏÌÅÇÛÅÎÎÑ ÓÔ×ÏÒÅÎÎÑ ÇÒÁƦÞÎÉÈ ÐÁËÅÔÎÉÈ ÍÅÎÅÄÖÅÒ¦× ÔÁ
273 ¦ÎÛÉÈ ÕÔÉ̦Ô, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ RPM.
276 Summary: RPM static libraries
277 Summary(de): RPMs statische Libraries
278 Summary(pl): Biblioteki statyczne RPM-a
279 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
280 Summary(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
281 Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
282 Group: Development/Libraries
283 Requires: %{name}-devel = %{version}-%{release}
284 Requires: beecrypt-static >= %{beecrypt_ver}
285 Requires: bzip2-static
286 Requires: db-static >= %{reqdb_ver}
287 Requires: elfutils-static
288 Requires: popt-static >= %{reqpopt_ver}
289 Requires: zlib-static
292 RPM static libraries.
294 %description static -l de
295 RPMs statische Libraries.
297 %description static -l pl
298 Biblioteki statyczne RPM-a.
300 %description static -l pt_BR
301 Bibliotecas estáticas para desenvolvimento.
303 %description static -l ru
304 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
305 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
306 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ RPM.
308 %description static -l uk
309 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
310 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÅ ÓÔÁÔÉÞÎÁ
314 Summary: Additional utilities for managing rpm packages and database
315 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
316 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
317 Group: Applications/File
318 Requires: %{name} = %{version}-%{release}
319 Requires: popt >= %{reqpopt_ver}
322 Additional utilities for managing rpm packages and database.
324 %description utils -l de
325 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
327 %description utils -l pl
328 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
331 Summary: Additional utilities for managing rpm packages and database
332 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
333 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
334 Group: Applications/File
335 Requires: %{name}-utils = %{version}-%{release}
336 Requires: popt >= %{reqpopt_ver}
338 %description utils-perl
339 Additional utilities for managing rpm packages and database.
341 %description utils-perl -l de
342 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
344 %description utils-perl -l pl
345 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
347 %package utils-static
348 Summary: Static rpm utilities
349 Summary(pl): Statyczne narzêdzia rpm
350 Group: Applications/System
351 Requires: %{name} = %{version}-%{release}
353 %description utils-static
354 Static rpm utilities for repairing system in case something with
355 shared libraries used by rpm become broken. Currently it contains rpmi
356 binary, which can be used to install/upgrade/remove packages without
357 using shared libraries (well, in fact with exception of NSS modules).
359 %description utils-static -l pl
360 Statyczne narzêdzia rpm do naprawy systemu w przypadku zepsucia czego¶
361 zwi±zanego z bibliotekami wspó³dzielonymi u¿ywanymi przez rpm-a.
362 Aktualnie pakiet zawiera binarkê rpmi, któr± mo¿na u¿yæ do instalacji,
363 uaktualniania lub usuwania pakietów bez udzia³u bibliotek statycznych
364 (z wyj±tkiem modu³ów NSS).
367 Summary: Additional utilities for checking perl provides/requires in rpm packages
368 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
369 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
370 Group: Applications/File
371 Requires: %{name} = %{version}-%{release}
373 Requires: perl-modules
375 %description perlprov
376 Additional utilities for checking perl provides/requires in rpm
379 %description perlprov -l de
380 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
382 %description perlprov -l pl
383 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
387 Summary: Python macros, which simplifies creation of rpm packages with Python software
388 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
389 Group: Applications/File
390 Requires: %{name} = %{version}-%{release}
391 Requires: python-modules
393 %description pythonprov
394 Python macros, which simplifies creation of rpm packages with Python
397 %description pythonprov -l pl
398 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
401 %package php-pearprov
402 Summary: Additional utilities for managing rpm packages and database
403 Summary(pl): Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm
404 Group: Applications/File
405 Requires: %{name} = %{version}-%{release}
407 %description php-pearprov
408 Additional utilities for checking php pear provides/requires in rpm
411 %description php-pearprov -l pl
412 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
415 %package -n python-rpm
416 Summary: Python interface to RPM library
417 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
418 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
419 Group: Development/Languages/Python
420 Requires: %{name} = %{version}-%{release}
421 %pyrequires_eq python
422 Obsoletes: rpm-python
424 %description -n python-rpm
425 The rpm-python package contains a module which permits applications
426 written in the Python programming language to use the interface
427 supplied by RPM (RPM Package Manager) libraries.
429 This package should be installed if you want to develop Python
430 programs that will manipulate RPM packages and databases.
432 %description -n python-rpm -l pl
433 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
434 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
436 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
437 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
439 %description -n python-rpm -l pt_BR
440 O pacote rpm-python contém um módulo que permite que aplicações
441 escritas em Python utilizem a interface fornecida pelas bibliotecas
442 RPM (RPM Package Manager).
444 Esse pacote deve ser instalado se você quiser desenvolver programas em
445 Python para manipular pacotes e bancos de dados RPM.
448 Summary: RPMs library
449 Summary(pl): Biblioteki RPM-a
451 Requires: db >= %{reqdb_ver}
452 Requires: popt >= %{reqpopt_ver}
453 %{?with_distver:Provides: rpm-lib(distver)}
454 # avoid SEGV caused by mixed db versions
455 Conflicts: poldek < 0.18.1-16
460 %description lib -l pl
464 Summary: Scripts for building binary RPM packages
465 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
466 Summary(pl): Skrypty pomocnicze do budowania binarnych RPM-ów
467 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
468 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
469 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
470 Group: Applications/File
471 Requires(pre): findutils
472 Requires: %{name}-utils = %{version}-%{release}
476 Requires: chrpath >= 0.10-4
480 Requires: file >= 4.01
484 Requires: gcc >= 3.0.3
488 Requires: glibc-devel
493 Requires: popt >= 1.7
498 Provides: rpmbuild(macros) = %{rpm_macros_rev}
499 Provides: rpmbuild(noauto) = 3
501 Conflicts: automake < 1:1.7.9-2
502 Conflicts: libtool < 2:1.5-13
506 Scripts for building binary RPM packages.
508 %description build -l de
509 Scripts fürs Bauen binärer RPM-Pakete.
511 %description build -l pl
512 Skrypty pomocnicze do budowania binarnych RPM-ów.
514 %description build -l pt_BR
515 Este pacote contém scripts e programas executáveis que são usados para
516 construir pacotes usando o RPM.
518 %description build -l ru
519 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
520 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
522 %description build -l uk
523 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
527 Summary: Scripts for managing .spec files and building RPM packages
528 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
529 Summary(pl): Skrypty pomocnicze do zarz±dznia plikami .spec i budowania RPM-ów
530 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
531 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
532 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
533 Group: Applications/File
534 Requires: %{name}-build = %{version}-%{release}
539 %description build-tools
540 Scripts for managing .spec files and building RPM packages.
542 %description build-tools -l de
543 Scripts fürs Bauen RPM-Pakete.
545 %description build-tools -l pl
546 Skrypty pomocnicze do zarz±dzania plikami .spec i do budowania RPM-ów.
548 %description build-tools -l pt_BR
549 Este pacote contém scripts e programas executáveis que são usados para
550 construir pacotes usando o RPM.
552 %description build-tools -l ru
553 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
554 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
556 %description build-tools -l uk
557 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
562 Summary: rpm API documentation and guides
563 Summary(pl): Documentacja API rpm i przewodniki.
567 Documentation for rpm API and guides in html format generated
568 from rpm sources by doxygen.
570 %description apidocs -l pl
571 Dokumentacja API rpm oraz przewodniki w formacie html generowana
572 ze ¼rode³ rpm przez doxygen.
579 # temporarily moved after patch100 - messes too much in pl.po
599 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
600 cp -f platform.in macros.pld.in
601 echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
602 echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
603 echo '# obsoleted file' > macros.python
604 echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
605 echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
606 install %{SOURCE5} scripts/find-lang.sh
607 install %{SOURCE9} scripts/php.prov.in
608 install %{SOURCE10} scripts/php.req.in
609 install %{SOURCE12} scripts/perl.prov
610 cat %{SOURCE11} >> macros.in
634 %{?with_distver:%patch47 -p1}
639 mv -f perl.req perl.req.in
640 mv -f perl.prov perl.prov.in
644 mv -f po/{sr,sr@Latn}.po
646 rm -rf zlib libelf db db3 popt rpmdb/db.h
648 # generate Group translations to *.po
649 awk -f %{SOURCE6} %{SOURCE1}
651 # update macros paths
652 for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
653 sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
657 # ... and make some cleanings
658 rm -fr $(find ./ -type d -name CVS )
659 rm -f $(find ./ -type f -name ".cvsignore" )
677 # config.guess doesn't handle athlon, so we have to change it by hand.
678 # rpm checks for CPU type at runtime, but it looks better
679 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' \
680 -e 's|@host_cpu@|%{_target_cpu}|' macros.in > macros.tmp
681 mv -f macros.tmp macros.in
683 # pass CC and CXX too in case of building with some older configure macro
690 %{?with_apidoc:--with-apidocs} \
691 %{?with_pkgnameinautoreq:--enable-adding-packages-names-in-autogenerated-dependancies} \
692 %{?with_python:--with-python=auto} \
693 %{!?with_python:--without-python} \
694 %{!?with_selinux:--without-selinux} \
697 # file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
702 pylibdir=%{py_libdir} \
703 myLDFLAGS="%{rpmldflags}" \
705 debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt"
707 # %{!?with_static:rpm_LDFLAGS="\$(myLDFLAGS)"} \
708 %{?with_apidocs:%{__make} doxygen}
711 rm -rf $RPM_BUILD_ROOT
712 install -d $RPM_BUILD_ROOT{/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm}
715 DESTDIR=$RPM_BUILD_ROOT \
716 pylibdir=%{py_libdir} \
717 pkgbindir="%{_bindir}"
719 rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
720 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
721 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
723 install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
724 install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
725 install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
727 install %{SOURCE1} doc/manual/groups
728 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
729 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
730 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
731 install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
732 install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
733 install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
734 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
735 install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
737 install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
738 install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
739 install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
741 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
744 ix86re=$(echo "(%{ix86})"|sed 's/ /|/g')
745 perl -p -i -e 's/^(buildarchtranslate: '"$ix86re"': ).*/\1%{_target_cpu}/' \
746 $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
749 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
750 # customized rpm macros - global for host
752 #%%_install_langs pl_PL:en_US
755 # remove or replace with file_contexts path if you want to use custom
756 # SELinux file contexts policy instead of one stored in packages payload
757 %%_install_file_context_path %%{nil}
758 %%_verify_file_context_path %%{nil}
761 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
762 # global list of files (regexps) which don't generate Provides
764 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
765 # global list of script capabilities (regexps) not to be used in Provides
767 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
768 # global list of files (regexps) which don't generate Requires
772 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
773 # global list of script capabilities (regexps) not to be used in Requires
775 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
776 # global list of capabilities (SONAME, perl(module), php(module) regexps)
777 # which don't generate dependencies on package NAMES
778 # -- OpenGL implementation
788 # -- X11 implementation
831 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
832 # global list of file masks not to be compressed in DOCDIR
835 # for rpm -e|-U --repackage
836 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
837 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
840 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
841 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
842 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
845 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
846 [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f
851 cp -a doc/manual manual
852 rm -f manual/Makefile*
855 rm -rf $RPM_BUILD_ROOT
857 %post lib -p /sbin/ldconfig
858 %postun lib -p /sbin/ldconfig
861 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
863 %files -f %{name}.lang
864 %defattr(644,root,root,755)
865 %doc RPM-PGP-KEY CHANGES manual
867 %attr(755,root,root) /bin/rpm
868 #%attr(755,root,root) %{_bindir}/rpmdb
869 #%attr(755,root,root) %{_bindir}/rpmquery
870 #%attr(755,root,root) %{_bindir}/rpmsign
871 #%attr(755,root,root) %{_bindir}/rpmverify
873 %dir %{_sysconfdir}/rpm
874 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
875 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rpm
877 %{_mandir}/man8/rpm.8*
878 %lang(fr) %{_mandir}/fr/man8/rpm.8*
879 %lang(ja) %{_mandir}/ja/man8/rpm.8*
880 %lang(ko) %{_mandir}/ko/man8/rpm.8*
881 %lang(pl) %{_mandir}/pl/man8/rpm.8*
882 %lang(ru) %{_mandir}/ru/man8/rpm.8*
883 %lang(sk) %{_mandir}/sk/man8/rpm.8*
886 %dir %attr(700,root,root) /var/spool/repackage
888 /var/lock/rpm/transaction
891 #%attr(755,root,root) %{_rpmlibdir}/rpmd
892 #%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
893 #%attr(755,root,root) %{_rpmlibdir}/rpmk
894 #%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
896 %doc %attr(755,root,root) %{_rpmlibdir}/convertrpmrc.sh
897 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
900 %{_rpmlibdir}/rpmpopt*
904 %defattr(644,root,root,755)
905 %attr(755,root,root) /%{_lib}/librpm*-*.so
906 %attr(755,root,root) %{_libdir}/librpm*-*.so
909 %defattr(644,root,root,755)
910 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/noauto*
911 %attr(755,root,root) %{_rpmlibdir}/compress-doc
912 %attr(755,root,root) %{_rpmlibdir}/cross-build
913 #%attr(755,root,root) %{_rpmlibdir}/find-provides
914 #%attr(755,root,root) %{_rpmlibdir}/find-provides-wrapper
915 #%attr(755,root,root) %{_rpmlibdir}/find-requires
916 #%attr(755,root,root) %{_rpmlibdir}/find-requires-wrapper
917 #%attr(755,root,root) %{_rpmlibdir}/find-rpm-provides
918 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
919 %attr(755,root,root) %{_rpmlibdir}/find-lang.sh
920 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
921 %attr(755,root,root) %{_rpmlibdir}/config.*
922 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
923 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
924 %attr(755,root,root) %{_rpmlibdir}/brp-*
925 %attr(755,root,root) %{_rpmlibdir}/check-files
926 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
927 #%attr(755,root,root) %{_rpmlibdir}/cpanflute
928 #%attr(755,root,root) %{_rpmlibdir}/cpanflute2
929 #%attr(755,root,root) %{_rpmlibdir}/Specfile.pm
930 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
931 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides.sh
932 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides2.sh
933 %attr(755,root,root) %{_rpmlibdir}/rpmb
934 %attr(755,root,root) %{_rpmlibdir}/rpmt
935 %{_rpmlibdir}/noarch-*
938 %{_rpmlibdir}/pentium*
939 %{_rpmlibdir}/athlon*
950 %ifarch mips mipsel mips64 mips64el
956 %ifarch sparc sparc64
959 # must be here for "Requires: rpm-*prov" to work
960 %{_rpmlibdir}/macros.perl
961 %{_rpmlibdir}/macros.php
962 # not used yet ... these six depend on perl
963 #%attr(755,root,root) %{_rpmlibdir}/http.req
964 #%attr(755,root,root) %{_rpmlibdir}/magic.prov
965 #%attr(755,root,root) %{_rpmlibdir}/magic.req
966 #%{_rpmlibdir}/sql.prov
967 #%{_rpmlibdir}/sql.req
968 #%{_rpmlibdir}/tcl.req
971 %attr(755,root,root) %{_bindir}/javadeps
972 %attr(755,root,root) %{_bindir}/gendiff
973 %attr(755,root,root) %{_bindir}/rpmbuild
975 %{_mandir}/man1/gendiff.1*
976 %{_mandir}/man8/rpmbuild.8*
977 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
978 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
979 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
982 %defattr(644,root,root,755)
984 %{_libdir}/librpm*.la
985 %attr(755,root,root) %{_libdir}/librpm.so
986 %attr(755,root,root) %{_libdir}/librpmio.so
987 %attr(755,root,root) %{_libdir}/librpmdb.so
988 %attr(755,root,root) %{_libdir}/librpmbuild.so
991 %defattr(644,root,root,755)
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_bindir}/debugedit
997 %attr(755,root,root) %{_bindir}/rpm2cpio
998 %attr(755,root,root) %{_bindir}/rpmcache
999 %attr(755,root,root) %{_bindir}/rpmdeps
1000 %attr(755,root,root) %{_bindir}/rpmgraph
1001 %attr(755,root,root) %{_bindir}/rpmfile
1002 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1003 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
1004 %attr(755,root,root) %{_rpmlibdir}/tgpg
1005 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1006 %{_mandir}/man8/rpm2cpio.8*
1007 %{_mandir}/man8/rpmdeps.8*
1008 %{_mandir}/man8/rpmcache.8*
1009 %{_mandir}/man8/rpmgraph.8*
1010 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1011 %lang(ja) %{_mandir}/ja/man8/rpmcache.8*
1012 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
1013 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1014 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1015 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1016 %lang(pl) %{_mandir}/pl/man8/rpmcache.8*
1017 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
1018 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1021 %defattr(644,root,root,755)
1022 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1024 #%%{_rpmlibdir}/rpm.daily
1025 #%%{_rpmlibdir}/rpm.log
1026 #%%{_rpmlibdir}/rpm.xinetd
1031 %defattr(644,root,root,755)
1032 %attr(755,root,root) %{_bindir}/rpm[ieu]
1033 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_rpmlibdir}/perl.*
1039 #%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1040 #%attr(755,root,root) %{_rpmlibdir}/find-perl-*
1041 #%attr(755,root,root) %{_rpmlibdir}/find-*.perl
1042 #%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
1043 #%attr(755,root,root) %{_rpmlibdir}/find-req.pl
1044 %attr(755,root,root) %{_rpmlibdir}/get_magic.pl
1047 %defattr(644,root,root,755)
1048 %{_rpmlibdir}/macros.python
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_rpmlibdir}/php*
1053 %attr(755,root,root) %{_rpmlibdir}/find-php*
1056 %files -n python-rpm
1057 %defattr(644,root,root,755)
1058 %attr(755,root,root) %{py_sitedir}/*.so
1059 %attr(755,root,root) %{py_sitedir}/rpmdb/*.so
1060 %{py_sitedir}/rpmdb/*.py*
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_bindir}/builder
1066 %attr(755,root,root) %{_bindir}/adapter.awk
1067 %attr(755,root,root) %{_bindir}/pldnotify.awk
1071 %defattr(644,root,root,755)