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 # Snap tarball is generated from rpm-4_4 branch
40 Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.%{snap}.tar.bz2
41 # Source0-md5: 9960ab3e3023b49b42c1e85acef33de5
42 Source1: %{name}.groups
43 Source2: %{name}.platform
44 Source3: %{name}-install-tree
45 Source4: %{name}-find-spec-bcond
46 Source5: %{name}-find-lang
47 Source6: %{name}-groups-po.awk
48 Source7: %{name}-compress-doc
49 Source8: %{name}-check-files
50 Source9: %{name}-php-provides
51 Source10: %{name}-php-requires
52 Source11: %{name}.macros
54 Source13: %{name}-user_group.sh
55 Source14: %{name}.sysconfig
58 Source32: pldnotify.awk
59 Patch1: %{name}-rpmrc.patch
60 Patch2: %{name}-arch.patch
61 Patch3: %{name}-rpmpopt.patch
62 Patch4: %{name}-perl-macros.patch
63 Patch5: %{name}-perl-req-perlfile.patch
64 Patch7: %{name}-noexpand.patch
65 Patch8: %{name}-scripts-closefds.patch
66 Patch9: %{name}-python-macros.patch
67 Patch10: %{name}-gettext-in-header.patch
68 Patch11: %{name}-compress-doc.patch
69 Patch12: %{name}-build.patch
70 Patch13: %{name}-system_libs.patch
71 Patch14: %{name}-bb-and-short-circuit.patch
72 Patch15: %{name}-etc_dir.patch
73 Patch16: %{name}-system_libs-more.patch
74 Patch17: %{name}-php-deps.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 Patch35: %{name}-missing-prototypes.patch
90 Patch36: %{name}-pld-autodep.patch
91 Patch37: %{name}-rpmsq.patch
92 Patch40: %{name}-epoch0.patch
93 Patch43: %{name}-perl_req-INC_dirs.patch
94 Patch44: %{name}-debuginfo.patch
95 Patch45: %{name}-beecrypt4.patch
96 Patch46: %{name}-doxygen_hack.patch
97 Patch47: %{name}-distver.patch
98 Patch100: %{name}-pl.po.patch
99 URL: http://www.rpm.org/
101 BuildRequires: autoconf >= 2.52
102 BuildRequires: automake
103 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
104 BuildRequires: bzip2-devel >= 1.0.1
105 BuildRequires: db-devel >= %{reqdb_ver}
106 %{?with_apidocs:BuildRequires: doxygen}
107 BuildRequires: elfutils-devel
108 BuildRequires: findutils
109 BuildRequires: gettext-devel >= 0.11.4-2
110 #BuildRequires: libmagic-devel
111 %{?with_selinux:BuildRequires: libselinux-devel}
112 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
113 BuildRequires: libstdc++-devel
114 BuildRequires: libtool
115 BuildRequires: libxml2-devel
116 BuildRequires: neon-devel >= 0.24.7-3
117 BuildRequires: patch >= 2.2
118 BuildRequires: popt-devel >= %{reqpopt_ver}
119 %{?with_python:BuildRequires: python-devel >= 2.2}
120 BuildRequires: python-modules >= 2.2
121 BuildRequires: readline-devel
122 BuildRequires: rpm-perlprov
123 BuildRequires: rpm-pythonprov
124 BuildRequires: zlib-devel
126 # Require static library only for static build
127 BuildRequires: beecrypt-static >= %{beecrypt_ver}
128 BuildRequires: bzip2-static >= 1.0.2-5
129 BuildRequires: db-static >= %{reqdb_ver}
130 BuildRequires: glibc-static >= 2.2.94
131 BuildRequires: elfutils-static
132 #BuildRequires: libmagic-static
133 %{?with_selinux:BuildRequires: libselinux-static}
134 BuildRequires: popt-static >= %{reqpopt_ver}
135 BuildRequires: zlib-static
137 Requires: beecrypt >= %{beecrypt_ver}
138 Requires: popt >= %{reqpopt_ver}
139 Requires: %{name}-lib = %{version}-%{release}
140 %{!?with_static:Obsoletes: rpm-utils-static}
141 Conflicts: glibc < 2.2.92
142 # avoid SEGV caused by mixed db versions
143 Conflicts: poldek < 0.18.1-16
144 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
146 %define _binary_payload w9.gzdio
147 %define _noPayloadPrefix 1
149 # don't require very fresh rpm.macros to build
150 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
151 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
153 # stabilize new build environment
154 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
155 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
156 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
158 %define _rpmlibdir /usr/lib/rpm
161 RPM is a powerful package manager, which can be used to build,
162 install, query, verify, update, and uninstall individual software
163 packages. A package consists of an archive of files, and package
164 information, including name, version, and description.
167 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
168 Installation, Anfrage, Verifizierung, Aktualisierung und
169 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
170 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
174 RPM es un poderoso administrador de paquetes, que puede ser usado para
175 construir, instalar, pesquisar, verificar, actualizar y desinstalar
176 paquetes individuales de software. Un paquete consiste en un
177 almacenaje de archivos, y información sobre el paquete, incluyendo
178 nombre, versión y descripción.
181 RPM jest doskona³ym programem zarz±dzaj±cym pakietami. Umo¿liwia on
182 przebudowanie, instalacjê czy weryfikacjê dowolnego pakietu.
183 Informacje dotycz±ce ka¿dego pakietu, takie jak jego opis, lista
184 plików wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
185 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
186 odpytywania programu rpm.
188 %description -l pt_BR
189 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
190 construir, instalar, pesquisar, verificar, atualizar e desinstalar
191 pacotes individuais de software. Um pacote consiste de um conjunto de
192 arquivos e informações adicionais, incluindo nome, versão e descrição
193 do pacote, permissões dos arquivos, etc.
196 RPM - ÜÔÏ ÍÏÝÎÙÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔÏ×, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ÄÌÑ
197 ÓÏÚÄÁÎÉÑ, ÉÎÓÔÁÌÌÑÃÉÉ, ÚÁÐÒÏÓÏ× (query), ÐÒÏ×ÅÒËÉ, ÏÂÎÏ×ÌÅÎÉÑ É
198 ÕÄÁÌÅÎÉÑ ÐÒÏÇÒÁÍÍÎÙÈ ÐÁËÅÔÏ×. ðÁËÅÔ ÓÏÓÔÏÉÔ ÉÚ ÆÁÊÌÏ×ÏÇÏ ÁÒÈÉ×Á É
199 ÓÌÕÖÅÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ, ×ËÌÀÞÁÀÝÅÊ ÎÁÚ×ÁÎÉÅ, ×ÅÒÓÉÀ, ÏÐÉÓÁÎÉÅ É ÄÒÕÇÉÅ
203 RPM - ÃÅ ÐÏÔÕÖÎÉÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔ¦×, ÝÏ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÄÌÑ
204 ÓÔ×ÏÒÅÎÎÑ, ¦ÎÓÔÁÌÑæ§, ÚÁÐÉÔ¦× (query), ÐÅÒÅצÒËÉ, ÐÏÎÏ×ÌÅÎÎÑ ÔÁ
205 ×ÉÄÁÌÅÎÎÑ ÐÒÏÇÒÁÍÎÉÈ ÐÁËÅÔ¦×. ðÁËÅÔ ÓËÌÁÄÁ¤ÔØÓÑ Ú ÆÁÊÌÏ×ÏÇÏ ÁÒȦ×Õ ÔÁ
206 ÓÌÕÖÂÏ×ϧ ¦ÎÆÏÒÍÁæ§, ÝÏ Í¦ÓÔÉÔØ ÎÁÚ×Õ, ×ÅÒÓ¦À, ÏÐÉÓ ÔÁ ¦ÎÛÕ
207 ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÐÁËÅÔ.
210 Summary: Header files for rpm libraries
211 Summary(de): Header-Dateien für rpm Libraries
212 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
213 Summary(pl): Pliki nag³ówkowe bibliotek rpm
214 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
215 Summary(ru): èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
216 Summary(uk): èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
217 Group: Development/Libraries
218 Requires: %{name}-lib = %{version}-%{release}
219 Requires: beecrypt-devel >= %{beecrypt_ver}
220 Requires: bzip2-devel
221 Requires: db-devel >= %{reqdb_ver}
222 Requires: elfutils-devel
223 %{?with_selinux:Requires: libselinux-devel}
224 Requires: popt-devel >= %{reqpopt_ver}
228 The RPM packaging system includes C libraries that make it easy to
229 manipulate RPM packages and databases. They are intended to ease the
230 creation of graphical package managers and other tools that need
231 intimate knowledge of RPM packages. This package contains header files
234 %description devel -l de
235 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
236 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
237 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
238 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
240 %description devel -l es
241 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
242 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
243 facilitar la creación de administradores gráficos de paquetes y otras
244 herramientas que necesiten un conocimiento profundo de paquetes RPM.
246 %description devel -l pl
247 System RPM zawiera biblioteki C, które u³atwiaj± manipulowanie
248 pakietami RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
249 graficznych programów zarz±dzaj±cych pakietami oraz innych narzêdzi,
250 które wymagaj± szczegó³owej wiedzy na temat pakietów RPM. Ten pakiet
251 zawiera pliki nag³ówkowe wspomnianych bibliotek.
253 %description devel -l pt_BR
254 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
255 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
256 facilitar a criação de gerenciadores gráficos de pacotes e outras
257 ferramentas que precisem de conhecimento profundo de pacotes RPM.
259 %description devel -l ru
260 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
261 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
262 üÔÁ ÂÉÂÌÉÏÔÅËÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÏÂÌÅÇÞÅÎÉÑ ÓÏÚÄÁÎÉÑ ÇÒÁÆÉÞÅÓËÉÈ
263 ÐÁËÅÔÎÙÈ ÍÅÎÅÄÖÅÒÏ× É ÄÒÕÇÉÈ ÕÔÉÌÉÔ, ËÏÔÏÒÙÍ ÎÅÏÂÈÏÄÉÍÏ ÒÁÂÏÔÁÔØ Ó
266 %description devel -l uk
267 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
268 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÑ Â¦Â̦ÏÔÅËÁ
269 ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ÐÏÌÅÇÛÅÎÎÑ ÓÔ×ÏÒÅÎÎÑ ÇÒÁƦÞÎÉÈ ÐÁËÅÔÎÉÈ ÍÅÎÅÄÖÅÒ¦× ÔÁ
270 ¦ÎÛÉÈ ÕÔÉ̦Ô, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ RPM.
273 Summary: RPM static libraries
274 Summary(de): RPMs statische Libraries
275 Summary(pl): Biblioteki statyczne RPM-a
276 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
277 Summary(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
278 Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
279 Group: Development/Libraries
280 Requires: %{name}-devel = %{version}-%{release}
281 Requires: beecrypt-static >= %{beecrypt_ver}
282 Requires: bzip2-static
283 Requires: db-static >= %{reqdb_ver}
284 Requires: elfutils-static
285 Requires: popt-static >= %{reqpopt_ver}
286 Requires: zlib-static
289 RPM static libraries.
291 %description static -l de
292 RPMs statische Libraries.
294 %description static -l pl
295 Biblioteki statyczne RPM-a.
297 %description static -l pt_BR
298 Bibliotecas estáticas para desenvolvimento.
300 %description static -l ru
301 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
302 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
303 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ RPM.
305 %description static -l uk
306 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
307 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÅ ÓÔÁÔÉÞÎÁ
311 Summary: Additional utilities for managing rpm packages and database
312 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
313 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
314 Group: Applications/File
315 Requires: %{name} = %{version}-%{release}
316 Requires: popt >= %{reqpopt_ver}
319 Additional utilities for managing rpm packages and database.
321 %description utils -l de
322 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
324 %description utils -l pl
325 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
328 Summary: Additional utilities for managing rpm packages and database
329 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
330 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
331 Group: Applications/File
332 Requires: %{name}-utils = %{version}-%{release}
333 Requires: popt >= %{reqpopt_ver}
335 %description utils-perl
336 Additional utilities for managing rpm packages and database.
338 %description utils-perl -l de
339 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
341 %description utils-perl -l pl
342 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
344 %package utils-static
345 Summary: Static rpm utilities
346 Summary(pl): Statyczne narzêdzia rpm
347 Group: Applications/System
348 Requires: %{name} = %{version}-%{release}
350 %description utils-static
351 Static rpm utilities for repairing system in case something with
352 shared libraries used by rpm become broken. Currently it contains rpmi
353 binary, which can be used to install/upgrade/remove packages without
354 using shared libraries (well, in fact with exception of NSS modules).
356 %description utils-static -l pl
357 Statyczne narzêdzia rpm do naprawy systemu w przypadku zepsucia czego¶
358 zwi±zanego z bibliotekami wspó³dzielonymi u¿ywanymi przez rpm-a.
359 Aktualnie pakiet zawiera binarkê rpmi, któr± mo¿na u¿yæ do instalacji,
360 uaktualniania lub usuwania pakietów bez udzia³u bibliotek statycznych
361 (z wyj±tkiem modu³ów NSS).
364 Summary: Additional utilities for checking perl provides/requires in rpm packages
365 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
366 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
367 Group: Applications/File
368 Requires: %{name} = %{version}-%{release}
370 Requires: perl-modules
372 %description perlprov
373 Additional utilities for checking perl provides/requires in rpm
376 %description perlprov -l de
377 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
379 %description perlprov -l pl
380 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
384 Summary: Python macros, which simplifies creation of rpm packages with Python software
385 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
386 Group: Applications/File
387 Requires: %{name} = %{version}-%{release}
388 Requires: python-modules
390 %description pythonprov
391 Python macros, which simplifies creation of rpm packages with Python
394 %description pythonprov -l pl
395 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
398 %package php-pearprov
399 Summary: Additional utilities for managing rpm packages and database
400 Summary(pl): Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm
401 Group: Applications/File
402 Requires: %{name} = %{version}-%{release}
404 %description php-pearprov
405 Additional utilities for checking php pear provides/requires in rpm
408 %description php-pearprov -l pl
409 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
412 %package -n python-rpm
413 Summary: Python interface to RPM library
414 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
415 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
416 Group: Development/Languages/Python
417 Requires: %{name} = %{version}-%{release}
418 %pyrequires_eq python
419 Obsoletes: rpm-python
421 %description -n python-rpm
422 The rpm-python package contains a module which permits applications
423 written in the Python programming language to use the interface
424 supplied by RPM (RPM Package Manager) libraries.
426 This package should be installed if you want to develop Python
427 programs that will manipulate RPM packages and databases.
429 %description -n python-rpm -l pl
430 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
431 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
433 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
434 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
436 %description -n python-rpm -l pt_BR
437 O pacote rpm-python contém um módulo que permite que aplicações
438 escritas em Python utilizem a interface fornecida pelas bibliotecas
439 RPM (RPM Package Manager).
441 Esse pacote deve ser instalado se você quiser desenvolver programas em
442 Python para manipular pacotes e bancos de dados RPM.
445 Summary: RPMs library
446 Summary(pl): Biblioteki RPM-a
448 Requires: db >= %{reqdb_ver}
449 Requires: popt >= %{reqpopt_ver}
450 %{?with_distver:Provides: rpm-lib(distver)}
451 # avoid SEGV caused by mixed db versions
452 Conflicts: poldek < 0.18.1-16
457 %description lib -l pl
461 Summary: Scripts for building binary RPM packages
462 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
463 Summary(pl): Skrypty pomocnicze do budowania binarnych RPM-ów
464 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
465 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
466 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
467 Group: Applications/File
468 Requires(pre): findutils
469 Requires: %{name}-utils = %{version}-%{release}
473 Requires: chrpath >= 0.10-4
477 Requires: file >= 4.01
481 Requires: gcc >= 3.0.3
485 Requires: glibc-devel
490 Requires: popt >= 1.7
495 Provides: rpmbuild(macros) = %{rpm_macros_rev}
496 Provides: rpmbuild(noauto) = 3
498 Conflicts: automake < 1:1.7.9-2
499 Conflicts: libtool < 2:1.5-13
503 Scripts for building binary RPM packages.
505 %description build -l de
506 Scripts fürs Bauen binärer RPM-Pakete.
508 %description build -l pl
509 Skrypty pomocnicze do budowania binarnych RPM-ów.
511 %description build -l pt_BR
512 Este pacote contém scripts e programas executáveis que são usados para
513 construir pacotes usando o RPM.
515 %description build -l ru
516 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
517 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
519 %description build -l uk
520 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
524 Summary: Scripts for managing .spec files and building RPM packages
525 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
526 Summary(pl): Skrypty pomocnicze do zarz±dznia plikami .spec i budowania RPM-ów
527 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
528 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
529 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
530 Group: Applications/File
531 Requires: %{name}-build = %{version}-%{release}
536 %description build-tools
537 Scripts for managing .spec files and building RPM packages.
539 %description build-tools -l de
540 Scripts fürs Bauen RPM-Pakete.
542 %description build-tools -l pl
543 Skrypty pomocnicze do zarz±dzania plikami .spec i do budowania RPM-ów.
545 %description build-tools -l pt_BR
546 Este pacote contém scripts e programas executáveis que são usados para
547 construir pacotes usando o RPM.
549 %description build-tools -l ru
550 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
551 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
553 %description build-tools -l uk
554 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
559 Summary: rpm API documentation and guides
560 Summary(pl): Documentacja API rpm i przewodniki.
564 Documentation for rpm API and guides in html format generated
565 from rpm sources by doxygen.
567 %description apidocs -l pl
568 Dokumentacja API rpm oraz przewodniki w formacie html generowana
569 ze ¼rode³ rpm przez doxygen.
576 # temporarily moved after patch100 - messes too much in pl.po
595 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
596 cp -f platform.in macros.pld.in
597 echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
598 echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
599 echo '# obsoleted file' > macros.python
600 echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
601 echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
602 install %{SOURCE5} scripts/find-lang.sh
603 install %{SOURCE9} scripts/php.prov.in
604 install %{SOURCE10} scripts/php.req.in
605 install %{SOURCE12} scripts/perl.prov
606 cat %{SOURCE11} >> macros.in
628 %{?with_distver:%patch47 -p1}
634 mv -f perl.req perl.req.in
635 mv -f perl.prov perl.prov.in
639 mv -f po/{sr,sr@Latn}.po
641 rm -rf neon zlib libelf db db3 popt rpmdb/db.h
643 # generate Group translations to *.po
644 awk -f %{SOURCE6} %{SOURCE1}
646 # update macros paths
647 for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
648 sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
652 # ... and make some cleanings
653 rm -fr $(find ./ -type d -name CVS )
654 rm -f $(find ./ -type f -name ".cvsignore" )
672 # config.guess doesn't handle athlon, so we have to change it by hand.
673 # rpm checks for CPU type at runtime, but it looks better
674 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' \
675 -e 's|@host_cpu@|%{_target_cpu}|' macros.in > macros.tmp
676 mv -f macros.tmp macros.in
678 # pass CC and CXX too in case of building with some older configure macro
685 %{?with_apidoc:--with-apidocs} \
686 %{?with_pkgnameinautoreq:--enable-adding-packages-names-in-autogenerated-dependancies} \
687 %{?with_python:--with-python=auto} \
688 %{!?with_python:--without-python} \
689 %{!?with_selinux:--without-selinux} \
692 # file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
697 pylibdir=%{py_libdir} \
698 myLDFLAGS="%{rpmldflags}" \
700 debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt"
702 # %{!?with_static:rpm_LDFLAGS="\$(myLDFLAGS)"} \
703 %{?with_apidocs:%{__make} doxygen}
706 rm -rf $RPM_BUILD_ROOT
707 install -d $RPM_BUILD_ROOT{/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm}
710 DESTDIR=$RPM_BUILD_ROOT \
711 pylibdir=%{py_libdir} \
712 pkgbindir="%{_bindir}"
714 rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
715 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
716 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
718 install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
719 install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
720 install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
722 install %{SOURCE1} doc/manual/groups
723 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
724 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
725 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
726 install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
727 install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
728 install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
729 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
730 install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
732 install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
733 install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
734 install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
736 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
739 ix86re=$(echo "(%{ix86})"|sed 's/ /|/g')
740 perl -p -i -e 's/^(buildarchtranslate: '"$ix86re"': ).*/\1%{_target_cpu}/' \
741 $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
744 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
745 # customized rpm macros - global for host
747 #%%_install_langs pl_PL:en_US
750 # remove or replace with file_contexts path if you want to use custom
751 # SELinux file contexts policy instead of one stored in packages payload
752 %%_install_file_context_path %%{nil}
753 %%_verify_file_context_path %%{nil}
756 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
757 # global list of files (regexps) which don't generate Provides
759 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
760 # global list of script capabilities (regexps) not to be used in Provides
762 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
763 # global list of files (regexps) which don't generate Requires
767 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
768 # global list of script capabilities (regexps) not to be used in Requires
770 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
771 # global list of capabilities (SONAME, perl(module), php(module) regexps)
772 # which don't generate dependencies on package NAMES
773 # -- OpenGL implementation
783 # -- X11 implementation
826 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
827 # global list of file masks not to be compressed in DOCDIR
830 # for rpm -e|-U --repackage
831 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
832 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
835 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
836 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
837 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
840 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
841 [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f
846 cp -a doc/manual manual
847 rm -f manual/Makefile*
850 rm -rf $RPM_BUILD_ROOT
852 %post lib -p /sbin/ldconfig
853 %postun lib -p /sbin/ldconfig
856 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
858 %files -f %{name}.lang
859 %defattr(644,root,root,755)
860 %doc RPM-PGP-KEY CHANGES manual
862 %attr(755,root,root) /bin/rpm
863 #%attr(755,root,root) %{_bindir}/rpmdb
864 #%attr(755,root,root) %{_bindir}/rpmquery
865 #%attr(755,root,root) %{_bindir}/rpmsign
866 #%attr(755,root,root) %{_bindir}/rpmverify
868 %dir %{_sysconfdir}/rpm
869 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
870 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rpm
872 %{_mandir}/man8/rpm.8*
873 %lang(fr) %{_mandir}/fr/man8/rpm.8*
874 %lang(ja) %{_mandir}/ja/man8/rpm.8*
875 %lang(ko) %{_mandir}/ko/man8/rpm.8*
876 %lang(pl) %{_mandir}/pl/man8/rpm.8*
877 %lang(ru) %{_mandir}/ru/man8/rpm.8*
878 %lang(sk) %{_mandir}/sk/man8/rpm.8*
881 %dir %attr(700,root,root) /var/spool/repackage
883 /var/lock/rpm/transaction
886 #%attr(755,root,root) %{_rpmlibdir}/rpmd
887 #%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
888 #%attr(755,root,root) %{_rpmlibdir}/rpmk
889 #%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
891 %doc %attr(755,root,root) %{_rpmlibdir}/convertrpmrc.sh
892 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
895 %{_rpmlibdir}/rpmpopt*
899 %defattr(644,root,root,755)
900 %attr(755,root,root) /%{_lib}/librpm*-*.so
901 %attr(755,root,root) %{_libdir}/librpm*-*.so
904 %defattr(644,root,root,755)
905 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/noauto*
906 %attr(755,root,root) %{_rpmlibdir}/compress-doc
907 %attr(755,root,root) %{_rpmlibdir}/cross-build
908 #%attr(755,root,root) %{_rpmlibdir}/find-provides
909 #%attr(755,root,root) %{_rpmlibdir}/find-provides-wrapper
910 #%attr(755,root,root) %{_rpmlibdir}/find-requires
911 #%attr(755,root,root) %{_rpmlibdir}/find-requires-wrapper
912 #%attr(755,root,root) %{_rpmlibdir}/find-rpm-provides
913 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
914 %attr(755,root,root) %{_rpmlibdir}/find-lang.sh
915 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
916 %attr(755,root,root) %{_rpmlibdir}/config.*
917 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
918 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
919 %attr(755,root,root) %{_rpmlibdir}/brp-*
920 %attr(755,root,root) %{_rpmlibdir}/check-files
921 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
922 #%attr(755,root,root) %{_rpmlibdir}/cpanflute
923 #%attr(755,root,root) %{_rpmlibdir}/cpanflute2
924 #%attr(755,root,root) %{_rpmlibdir}/Specfile.pm
925 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
926 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides.sh
927 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides2.sh
928 %attr(755,root,root) %{_rpmlibdir}/rpmb
929 %attr(755,root,root) %{_rpmlibdir}/rpmt
930 %{_rpmlibdir}/noarch-*
933 %{_rpmlibdir}/pentium*
934 %{_rpmlibdir}/athlon*
945 %ifarch mips mipsel mips64 mips64el
951 %ifarch sparc sparc64
954 # must be here for "Requires: rpm-*prov" to work
955 %{_rpmlibdir}/macros.perl
956 %{_rpmlibdir}/macros.php
957 # not used yet ... these six depend on perl
958 #%attr(755,root,root) %{_rpmlibdir}/http.req
959 #%attr(755,root,root) %{_rpmlibdir}/magic.prov
960 #%attr(755,root,root) %{_rpmlibdir}/magic.req
961 #%{_rpmlibdir}/sql.prov
962 #%{_rpmlibdir}/sql.req
963 #%{_rpmlibdir}/tcl.req
966 %attr(755,root,root) %{_bindir}/javadeps
967 %attr(755,root,root) %{_bindir}/gendiff
968 %attr(755,root,root) %{_bindir}/rpmbuild
970 %{_mandir}/man1/gendiff.1*
971 %{_mandir}/man8/rpmbuild.8*
972 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
973 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
974 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
977 %defattr(644,root,root,755)
979 %{_libdir}/librpm*.la
980 %attr(755,root,root) %{_libdir}/librpm.so
981 %attr(755,root,root) %{_libdir}/librpm-*.so
982 %attr(755,root,root) %{_libdir}/librpmio.so
983 %attr(755,root,root) %{_libdir}/librpmio-*.so
984 %attr(755,root,root) %{_libdir}/librpmdb.so
985 %attr(755,root,root) %{_libdir}/librpmdb-*.so
986 %attr(755,root,root) %{_libdir}/librpmbuild.so
989 %defattr(644,root,root,755)
993 %defattr(644,root,root,755)
994 %attr(755,root,root) %{_bindir}/debugedit
995 %attr(755,root,root) %{_bindir}/rpm2cpio
996 %attr(755,root,root) %{_bindir}/rpmcache
997 %attr(755,root,root) %{_bindir}/rpmdeps
998 %attr(755,root,root) %{_bindir}/rpmgraph
999 %attr(755,root,root) %{_bindir}/rpmfile
1000 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1001 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
1002 %attr(755,root,root) %{_rpmlibdir}/tgpg
1003 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1004 %{_mandir}/man8/rpm2cpio.8*
1005 %{_mandir}/man8/rpmdeps.8*
1006 %{_mandir}/man8/rpmcache.8*
1007 %{_mandir}/man8/rpmgraph.8*
1008 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1009 %lang(ja) %{_mandir}/ja/man8/rpmcache.8*
1010 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
1011 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1012 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1013 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1014 %lang(pl) %{_mandir}/pl/man8/rpmcache.8*
1015 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
1016 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1019 %defattr(644,root,root,755)
1020 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1022 #%%{_rpmlibdir}/rpm.daily
1023 #%%{_rpmlibdir}/rpm.log
1024 #%%{_rpmlibdir}/rpm.xinetd
1029 %defattr(644,root,root,755)
1030 %attr(755,root,root) %{_bindir}/rpm[ieu]
1031 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1035 %defattr(644,root,root,755)
1036 %attr(755,root,root) %{_rpmlibdir}/perl.*
1037 #%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1038 #%attr(755,root,root) %{_rpmlibdir}/find-perl-*
1039 #%attr(755,root,root) %{_rpmlibdir}/find-*.perl
1040 #%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
1041 #%attr(755,root,root) %{_rpmlibdir}/find-req.pl
1042 %attr(755,root,root) %{_rpmlibdir}/get_magic.pl
1045 %defattr(644,root,root,755)
1046 %{_rpmlibdir}/macros.python
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_rpmlibdir}/php*
1051 %attr(755,root,root) %{_rpmlibdir}/find-php*
1054 %files -n python-rpm
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{py_sitedir}/*.so
1057 %attr(755,root,root) %{py_sitedir}/rpmdb/*.so
1058 %{py_sitedir}/rpmdb/*.py*
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/builder
1064 %attr(755,root,root) %{_bindir}/adapter.awk
1065 %attr(755,root,root) %{_bindir}/pldnotify.awk
1069 %defattr(644,root,root,755)