3 # - consider using system libmagic not internal libfmagic
4 # (but internal has different method of passing output)
5 # - after ac drop amd64 patch and make x86_64 generic arch + subarchs amd64 and ia32e
8 %bcond_with static # build static rpmi (not supported at the moment)
9 %bcond_without doc # don't generate documentation with doxygen
10 %bcond_without python # don't build python bindings
11 %bcond_without selinux # dont enable selinux support
12 # force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
13 # force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
14 # force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
16 %include /usr/lib/rpm/macros.python
18 # versions of required libraries
19 %define reqdb_ver 4.2.50-1
20 %define reqpopt_ver 1.9
21 %define beecrypt_ver 3.0.0-0.20030610.1
22 %define rpm_macros_rev 1.158
23 Summary: RPM Package Manager
24 Summary(de): RPM Packet-Manager
25 Summary(es): Gestor de paquetes RPM
26 Summary(pl): Aplikacja do zarz±dzania pakietami RPM
27 Summary(pt_BR): Gerenciador de pacotes RPM
28 Summary(ru): íÅÎÅÄÖÅÒ ÐÁËÅÔÏ× ÏÔ RPM
29 Summary(uk): íÅÎÅÄÖÅÒ ÐÁËÅÔ¦× ×¦Ä RPM
34 Release: 0.%{snap}.0.1
37 #Source0: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.2.x/%{name}-%{version}.%{snap}.tar.gz
38 Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.%{snap}.tar.bz2
39 # Source0-md5: a91b8e17f6e69208b188d2876e80aef9
40 Source1: %{name}.groups
41 Source2: %{name}.platform
42 Source3: %{name}-install-tree
43 Source4: %{name}-find-spec-bcond
44 Source5: %{name}-find-lang
45 Source6: %{name}-groups-po.awk
46 Source7: %{name}-compress-doc
47 Source8: %{name}-check-files
48 Source9: %{name}-php-provides
49 Source10: %{name}-php-requires
50 Source11: %{name}.macros
54 Source32: pldnotify.awk
55 Patch0: %{name}-pl.po.patch
56 Patch1: %{name}-rpmrc.patch
57 Patch2: %{name}-arch.patch
58 Patch3: %{name}-rpmpopt.patch
59 Patch4: %{name}-perl-macros.patch
60 Patch5: %{name}-perl-req-perlfile.patch
61 Patch7: %{name}-noexpand.patch
62 Patch8: %{name}-scripts-closefds.patch
63 Patch9: %{name}-python-macros.patch
64 Patch10: %{name}-gettext-in-header.patch
65 Patch11: %{name}-compress-doc.patch
66 Patch12: %{name}-build.patch
67 Patch13: %{name}-system_libs.patch
68 Patch14: %{name}-bb-and-short-circuit.patch
69 Patch15: %{name}-etc_dir.patch
70 Patch16: %{name}-system_libs-more.patch
71 Patch17: %{name}-php-deps.patch
72 Patch18: %{name}-python-fix.patch
73 Patch19: %{name}-ldconfig-always.patch
74 Patch20: %{name}-perl_req.patch
75 Patch21: %{name}-no-bin-env.patch
76 Patch22: %{name}-magic-usesystem.patch
77 Patch23: %{name}-dontneedutils.patch
78 Patch24: %{name}-provides-dont-obsolete.patch
79 Patch25: %{name}-examplesaredoc.patch
80 Patch26: %{name}-po.patch
81 Patch27: %{name}-amd64.patch
82 Patch28: %{name}-notsc.patch
83 Patch29: %{name}-hack-norpmlibdep.patch
84 Patch30: %{name}-makefile-no_myLDADD_deps.patch
85 Patch31: %{name}-libdir64.patch
86 Patch32: %{name}-libdir-links.patch
87 Patch33: %{name}-context.patch
88 Patch34: %{name}-nls-fixes.patch
89 Patch35: %{name}-missing-prototypes.patch
90 Patch36: %{name}-pld-autodep.patch
91 Patch37: %{name}-rpmsq.patch
92 Patch38: %{name}-file-readelf.patch
93 Patch39: %{name}-pentiumX.patch
94 Patch40: %{name}-epoch0.patch
95 Patch41: %{name}-file-readelf-fix.patch
96 Patch42: %{name}-cpuid.patch
97 Patch43: %{name}-perl_req-INC_dirs.patch
98 Patch44: %{name}-debuginfo.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_doc: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: patch >= 2.2
116 BuildRequires: popt-devel >= %{reqpopt_ver}
117 %{?with_python:BuildRequires: python-devel >= 2.2}
118 BuildRequires: python-modules >= 2.2
119 BuildRequires: rpm-perlprov
120 BuildRequires: rpm-pythonprov
121 BuildRequires: zlib-devel
123 # Require static library only for static build
124 BuildRequires: beecrypt-static >= %{beecrypt_ver}
125 BuildRequires: bzip2-static >= 1.0.2-5
126 BuildRequires: db-static >= %{reqdb_ver}
127 BuildRequires: glibc-static >= 2.2.94
128 BuildRequires: elfutils-static
129 #BuildRequires: libmagic-static
130 %{?with_selinux:BuildRequires: libselinux-static}
131 BuildRequires: popt-static >= %{reqpopt_ver}
132 BuildRequires: zlib-static
134 Requires: popt >= %{reqpopt_ver}
135 Requires: %{name}-lib = %{version}-%{release}
136 %{!?with_static:Obsoletes: rpm-utils-static}
137 Conflicts: glibc < 2.2.92
138 # avoid SEGV caused by mixed db versions
139 Conflicts: poldek < 0.18.1-16
140 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
142 %define _binary_payload w9.gzdio
143 %define _noPayloadPrefix 1
145 # don't require very fresh rpm.macros to build
146 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
147 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
149 # stabilize new build environment
150 %define __cc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
151 %define __cxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
152 %define __cpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
154 %define _rpmlibdir /usr/lib/rpm
157 RPM is a powerful package manager, which can be used to build,
158 install, query, verify, update, and uninstall individual software
159 packages. A package consists of an archive of files, and package
160 information, including name, version, and description.
163 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
164 Installation, Anfrage, Verifizierung, Aktualisierung und
165 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
166 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
170 RPM es un poderoso administrador de paquetes, que puede ser usado para
171 construir, instalar, pesquisar, verificar, actualizar y desinstalar
172 paquetes individuales de software. Un paquete consiste en un
173 almacenaje de archivos, y información sobre el paquete, incluyendo
174 nombre, versión y descripción.
177 RPM jest doskona³ym programem zarz±dzaj±cym pakietami. Umo¿liwia on
178 przebudowanie, instalacjê czy weryfikacjê dowolnego pakietu.
179 Informacje dotycz±ce ka¿dego pakietu, takie jak jego opis, lista
180 plików wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
181 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
182 odpytywania programu rpm.
184 %description -l pt_BR
185 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
186 construir, instalar, pesquisar, verificar, atualizar e desinstalar
187 pacotes individuais de software. Um pacote consiste de um conjunto de
188 arquivos e informações adicionais, incluindo nome, versão e descrição
189 do pacote, permissões dos arquivos, etc.
192 RPM - ÜÔÏ ÍÏÝÎÙÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔÏ×, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ÄÌÑ
193 ÓÏÚÄÁÎÉÑ, ÉÎÓÔÁÌÌÑÃÉÉ, ÚÁÐÒÏÓÏ× (query), ÐÒÏ×ÅÒËÉ, ÏÂÎÏ×ÌÅÎÉÑ É
194 ÕÄÁÌÅÎÉÑ ÐÒÏÇÒÁÍÍÎÙÈ ÐÁËÅÔÏ×. ðÁËÅÔ ÓÏÓÔÏÉÔ ÉÚ ÆÁÊÌÏ×ÏÇÏ ÁÒÈÉ×Á É
195 ÓÌÕÖÅÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ, ×ËÌÀÞÁÀÝÅÊ ÎÁÚ×ÁÎÉÅ, ×ÅÒÓÉÀ, ÏÐÉÓÁÎÉÅ É ÄÒÕÇÉÅ
199 RPM - ÃÅ ÐÏÔÕÖÎÉÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔ¦×, ÝÏ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÄÌÑ
200 ÓÔ×ÏÒÅÎÎÑ, ¦ÎÓÔÁÌÑæ§, ÚÁÐÉÔ¦× (query), ÐÅÒÅצÒËÉ, ÐÏÎÏ×ÌÅÎÎÑ ÔÁ
201 ×ÉÄÁÌÅÎÎÑ ÐÒÏÇÒÁÍÎÉÈ ÐÁËÅÔ¦×. ðÁËÅÔ ÓËÌÁÄÁ¤ÔØÓÑ Ú ÆÁÊÌÏ×ÏÇÏ ÁÒȦ×Õ ÔÁ
202 ÓÌÕÖÂÏ×ϧ ¦ÎÆÏÒÍÁæ§, ÝÏ Í¦ÓÔÉÔØ ÎÁÚ×Õ, ×ÅÒÓ¦À, ÏÐÉÓ ÔÁ ¦ÎÛÕ
203 ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÐÁËÅÔ.
206 Summary: Header files for rpm libraries
207 Summary(de): Header-Dateien für rpm Libraries
208 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
209 Summary(pl): Pliki nag³ówkowe bibliotek rpm
210 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
211 Summary(ru): èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
212 Summary(uk): èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
213 Group: Development/Libraries
214 Requires: %{name}-lib = %{version}-%{release}
215 Requires: beecrypt-devel >= %{beecrypt_ver}
216 Requires: bzip2-devel
217 Requires: db-devel >= %{reqdb_ver}
218 Requires: elfutils-devel
219 %{?with_selinux:Requires: libselinux-devel}
220 Requires: popt-devel >= %{reqpopt_ver}
224 The RPM packaging system includes C libraries that make it easy to
225 manipulate RPM packages and databases. They are intended to ease the
226 creation of graphical package managers and other tools that need
227 intimate knowledge of RPM packages. This package contains header files
230 %description devel -l de
231 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
232 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
233 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
234 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
236 %description devel -l es
237 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
238 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
239 facilitar la creación de administradores gráficos de paquetes y otras
240 herramientas que necesiten un conocimiento profundo de paquetes RPM.
242 %description devel -l pl
243 System RPM zawiera biblioteki C, które u³atwiaj± manipulowanie
244 pakietami RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
245 graficznych programów zarz±dzaj±cych pakietami oraz innych narzêdzi,
246 które wymagaj± szczegó³owej wiedzy na temat pakietów RPM. Ten pakiet
247 zawiera pliki nag³ówkowe wspomnianych bibliotek.
249 %description devel -l pt_BR
250 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
251 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
252 facilitar a criação de gerenciadores gráficos de pacotes e outras
253 ferramentas que precisem de conhecimento profundo de pacotes RPM.
255 %description devel -l ru
256 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
257 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
258 üÔÁ ÂÉÂÌÉÏÔÅËÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÏÂÌÅÇÞÅÎÉÑ ÓÏÚÄÁÎÉÑ ÇÒÁÆÉÞÅÓËÉÈ
259 ÐÁËÅÔÎÙÈ ÍÅÎÅÄÖÅÒÏ× É ÄÒÕÇÉÈ ÕÔÉÌÉÔ, ËÏÔÏÒÙÍ ÎÅÏÂÈÏÄÉÍÏ ÒÁÂÏÔÁÔØ Ó
262 %description devel -l uk
263 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
264 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÑ Â¦Â̦ÏÔÅËÁ
265 ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ÐÏÌÅÇÛÅÎÎÑ ÓÔ×ÏÒÅÎÎÑ ÇÒÁƦÞÎÉÈ ÐÁËÅÔÎÉÈ ÍÅÎÅÄÖÅÒ¦× ÔÁ
266 ¦ÎÛÉÈ ÕÔÉ̦Ô, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ RPM.
269 Summary: RPM static libraries
270 Summary(de): RPMs statische Libraries
271 Summary(pl): Biblioteki statyczne RPM-a
272 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
273 Summary(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
274 Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
275 Group: Development/Libraries
276 Requires: %{name}-devel = %{version}-%{release}
277 Requires: beecrypt-static >= %{beecrypt_ver}
278 Requires: bzip2-static
279 Requires: db-static >= %{reqdb_ver}
280 Requires: elfutils-static
281 Requires: popt-static >= %{reqpopt_ver}
282 Requires: zlib-static
285 RPM static libraries.
287 %description static -l de
288 RPMs statische Libraries.
290 %description static -l pl
291 Biblioteki statyczne RPM-a.
293 %description static -l pt_BR
294 Bibliotecas estáticas para desenvolvimento.
296 %description static -l ru
297 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
298 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
299 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ RPM.
301 %description static -l uk
302 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
303 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÅ ÓÔÁÔÉÞÎÁ
307 Summary: Additional utilities for managing rpm packages and database
308 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
309 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
310 Group: Applications/File
311 Requires: %{name} = %{version}-%{release}
312 Requires: popt >= %{reqpopt_ver}
315 Additional utilities for managing rpm packages and database.
317 %description utils -l de
318 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
320 %description utils -l pl
321 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
324 Summary: Additional utilities for managing rpm packages and database
325 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
326 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
327 Group: Applications/File
328 Requires: %{name}-utils = %{version}-%{release}
329 Requires: popt >= %{reqpopt_ver}
331 %description utils-perl
332 Additional utilities for managing rpm packages and database.
334 %description utils-perl -l de
335 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
337 %description utils-perl -l pl
338 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
340 %package utils-static
341 Summary: Static rpm utilities
342 Summary(pl): Statyczne narzêdzia rpm
343 Group: Applications/System
344 Requires: %{name} = %{version}-%{release}
346 %description utils-static
347 Static rpm utilities for repairing system in case something with
348 shared libraries used by rpm become broken. Currently it contains rpmi
349 binary, which can be used to install/upgrade/remove packages without
350 using shared libraries (well, in fact with exception of NSS modules).
352 %description utils-static -l pl
353 Statyczne narzêdzia rpm do naprawy systemu w przypadku zepsucia czego¶
354 zwi±zanego z bibliotekami wspó³dzielonymi u¿ywanymi przez rpm-a.
355 Aktualnie pakiet zawiera binarkê rpmi, któr± mo¿na u¿yæ do instalacji,
356 uaktualniania lub usuwania pakietów bez udzia³u bibliotek statycznych
357 (z wyj±tkiem modu³ów NSS).
360 Summary: Additional utilities for checking perl provides/requires in rpm packages
361 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
362 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
363 Group: Applications/File
364 Requires: %{name} = %{version}-%{release}
366 Requires: perl-modules
368 %description perlprov
369 Additional utilities for checking perl provides/requires in rpm
372 %description perlprov -l de
373 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
375 %description perlprov -l pl
376 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
380 Summary: Python macros, which simplifies creation of rpm packages with Python software
381 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
382 Group: Applications/File
383 Requires: %{name} = %{version}-%{release}
384 Requires: python-modules
386 %description pythonprov
387 Python macros, which simplifies creation of rpm packages with Python
390 %description pythonprov -l pl
391 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
394 %package php-pearprov
395 Summary: Additional utilities for managing rpm packages and database
396 Summary(pl): Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm
397 Group: Applications/File
398 Requires: %{name} = %{version}-%{release}
400 %description php-pearprov
401 Additional utilities for checking php pear provides/requires in rpm
404 %description php-pearprov -l pl
405 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
408 %package -n python-rpm
409 Summary: Python interface to RPM library
410 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
411 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
412 Group: Development/Languages/Python
413 Requires: %{name} = %{version}-%{release}
414 %pyrequires_eq python
415 Obsoletes: rpm-python
417 %description -n python-rpm
418 The rpm-python package contains a module which permits applications
419 written in the Python programming language to use the interface
420 supplied by RPM (RPM Package Manager) libraries.
422 This package should be installed if you want to develop Python
423 programs that will manipulate RPM packages and databases.
425 %description -n python-rpm -l pl
426 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
427 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
429 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
430 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
432 %description -n python-rpm -l pt_BR
433 O pacote rpm-python contém um módulo que permite que aplicações
434 escritas em Python utilizem a interface fornecida pelas bibliotecas
435 RPM (RPM Package Manager).
437 Esse pacote deve ser instalado se você quiser desenvolver programas em
438 Python para manipular pacotes e bancos de dados RPM.
441 Summary: RPMs library
442 Summary(pl): Biblioteki RPM-a
444 Requires: db >= %{reqdb_ver}
445 Requires: popt >= %{reqpopt_ver}
446 # avoid SEGV caused by mixed db versions
447 Conflicts: poldek < 0.18.1-16
452 %description lib -l pl
456 Summary: Scripts for building binary RPM packages
457 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
458 Summary(pl): Skrypty pomocnicze do budowania binarnych RPM-ów
459 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
460 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
461 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
462 Group: Applications/File
463 Requires(pre): findutils
464 Requires: %{name}-utils = %{version}-%{release}
468 Requires: chrpath >= 0.10-4
470 Requires: file >= 4.01
474 Requires: gcc >= 3.0.3
479 Conflicts: automake < 1:1.7.9-2
480 Conflicts: libtool < 2:1.5-13
482 Requires: glibc-devel
487 Requires: popt >= 1.7
492 Provides: rpmbuild(macros) = %{rpm_macros_rev}
495 Scripts for building binary RPM packages.
497 %description build -l de
498 Scripts fürs Bauen binärer RPM-Pakete.
500 %description build -l pl
501 Skrypty pomocnicze do budowania binarnych RPM-ów.
503 %description build -l pt_BR
504 Este pacote contém scripts e programas executáveis que são usados para
505 construir pacotes usando o RPM.
507 %description build -l ru
508 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
509 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
511 %description build -l uk
512 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
516 Summary: Scripts for managing .spec files and building RPM packages
517 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
518 Summary(pl): Skrypty pomocnicze do zarz±dznia plikami .spec i budowania RPM-ów
519 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
520 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
521 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
522 Group: Applications/File
523 Requires: %{name}-build = %{version}-%{release}
528 %description build-tools
529 Scripts for managing .spec files and building RPM packages.
531 %description build-tools -l de
532 Scripts fürs Bauen RPM-Pakete.
534 %description build-tools -l pl
535 Skrypty pomocnicze do zarz±dzania plikami .spec i do budowania RPM-ów.
537 %description build-tools -l pt_BR
538 Este pacote contém scripts e programas executáveis que são usados para
539 construir pacotes usando o RPM.
541 %description build-tools -l ru
542 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
543 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
545 %description build-tools -l uk
546 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
574 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
575 cp -f platform.in macros.pld.in
576 echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
577 echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
578 echo '# obsoleted file' > macros.python
579 echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
580 echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
581 install %{SOURCE5} scripts/find-lang.sh
582 install %{SOURCE9} scripts/php.prov.in
583 install %{SOURCE10} scripts/php.req.in
584 install %{SOURCE12} scripts/perl.prov
585 cat %{SOURCE11} >> macros.in
604 # STILL NOT FIXED IN RPM???
606 # OBSOLETE, merged upstream
611 # OBSOLETE, merged upstream
617 mv -f perl.req perl.req.in
618 mv -f perl.prov perl.prov.in
622 mv -f po/{sr,sr@Latn}.po
624 rm -rf zlib libelf db db3 popt rpmdb/db.h
626 # generate Group translations to *.po
627 awk -f %{SOURCE6} %{SOURCE1}
629 # update macros paths
630 for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
631 sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
635 # ... and make some cleanings
636 rm -fr $(find ./ -type d -name CVS )
637 rm -f $(find ./ -type f -name ".cvsignore" )
655 # config.guess doesn't handle athlon, so we have to change it by hand.
656 # rpm checks for CPU type at runtime, but it looks better
657 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' \
658 -e 's|@host_cpu@|%{_target_cpu}|' macros.in > macros.tmp
659 mv -f macros.tmp macros.in
661 # pass CC and CXX too in case of building with some older configure macro
668 %{?with_doc:--with-apidocs} \
669 %{?with_python:--with-python=auto} \
670 %{!?with_python:--without-python} \
671 %{!?with_selinux:--without-selinux} \
674 # file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
676 pylibdir=%{py_libdir} \
677 myLDFLAGS="%{rpmldflags}" \
679 debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt"
681 # %{!?with_static:rpm_LDFLAGS="\$(myLDFLAGS)"} \
684 rm -rf $RPM_BUILD_ROOT
685 install -d $RPM_BUILD_ROOT/%{_lib}
688 DESTDIR=$RPM_BUILD_ROOT \
689 pylibdir=%{py_libdir} \
690 pkgbindir="%{_bindir}"
692 rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
693 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
694 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
696 install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
697 install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
698 install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
700 install %{SOURCE1} doc/manual/groups
701 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
702 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
703 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
704 install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
705 install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
706 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
708 install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
709 install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
710 install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
712 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
714 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
717 ix86re=$(echo "(%{ix86})"|sed 's/ /|/g')
718 perl -p -i -e 's/^(buildarchtranslate: '"$ix86re"': ).*/\1%{_target_cpu}/' \
719 $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
722 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
723 # customized rpm macros - global for host
725 #%%_install_langs pl_PL:en_US
728 # remove or replace with file_contexts path if you want to use custom
729 # SELinux file contexts policy instead of one stored in packages payload
730 %%_install_file_context_path %%{nil}
731 %%_verify_file_context_path %%{nil}
734 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
735 # global list of files (regexps) which don't generate Provides
737 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
738 # global list of script capabilities (regexps) not to be used in Provides
740 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
741 # global list of files (regexps) which don't generate Requires
745 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
746 # global list of script capabilities (regexps) not to be used in Requires
748 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
749 # global list of capabilities (SONAME, perl(module), php(module) regexps)
750 # which don't generate dependencies on package NAMES
759 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
760 # global list of file masks not to be compressed in DOCDIR
763 # for rpm -e|-U --repackage
764 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
765 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
768 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
769 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
770 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
773 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
774 [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f
779 cp -a doc/manual manual
780 rm -f manual/Makefile*
783 rm -rf $RPM_BUILD_ROOT
785 %post lib -p /sbin/ldconfig
786 %postun lib -p /sbin/ldconfig
789 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
791 %files -f %{name}.lang
792 %defattr(644,root,root,755)
793 %doc RPM-PGP-KEY CHANGES manual
795 %attr(755,root,root) /bin/rpm
796 #%attr(755,root,root) %{_bindir}/rpmdb
797 #%attr(755,root,root) %{_bindir}/rpmquery
798 #%attr(755,root,root) %{_bindir}/rpmsign
799 #%attr(755,root,root) %{_bindir}/rpmverify
801 %dir %{_sysconfdir}/rpm
802 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
804 %{_mandir}/man8/rpm.8*
805 %lang(fr) %{_mandir}/fr/man8/rpm.8*
806 %lang(ja) %{_mandir}/ja/man8/rpm.8*
807 %lang(ko) %{_mandir}/ko/man8/rpm.8*
808 %lang(pl) %{_mandir}/pl/man8/rpm.8*
809 %lang(ru) %{_mandir}/ru/man8/rpm.8*
810 %lang(sk) %{_mandir}/sk/man8/rpm.8*
813 %dir %attr(700,root,root) /var/spool/repackage
815 /var/lock/rpm/transaction
818 #%attr(755,root,root) %{_rpmlibdir}/rpmd
819 #%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
820 #%attr(755,root,root) %{_rpmlibdir}/rpmk
821 #%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
823 %doc %attr(755,root,root) %{_rpmlibdir}/convertrpmrc.sh
826 %{_rpmlibdir}/rpmpopt*
830 %defattr(644,root,root,755)
831 %attr(755,root,root) /%{_lib}/librpm*-*.so
832 %attr(755,root,root) %{_libdir}/librpm*-*.so
835 %defattr(644,root,root,755)
836 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/noauto*
837 %attr(755,root,root) %{_rpmlibdir}/compress-doc
838 %attr(755,root,root) %{_rpmlibdir}/cross-build
839 #%attr(755,root,root) %{_rpmlibdir}/find-provides
840 #%attr(755,root,root) %{_rpmlibdir}/find-provides-wrapper
841 #%attr(755,root,root) %{_rpmlibdir}/find-requires
842 #%attr(755,root,root) %{_rpmlibdir}/find-requires-wrapper
843 #%attr(755,root,root) %{_rpmlibdir}/find-rpm-provides
844 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
845 %attr(755,root,root) %{_rpmlibdir}/find-lang.sh
846 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
847 %attr(755,root,root) %{_rpmlibdir}/config.*
848 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
849 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
850 %attr(755,root,root) %{_rpmlibdir}/brp-*
851 %attr(755,root,root) %{_rpmlibdir}/check-files
852 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
853 #%attr(755,root,root) %{_rpmlibdir}/cpanflute
854 #%attr(755,root,root) %{_rpmlibdir}/cpanflute2
855 #%attr(755,root,root) %{_rpmlibdir}/Specfile.pm
856 %attr(755,root,root) %{_rpmlibdir}/http.req
857 %attr(755,root,root) %{_rpmlibdir}/magic.prov
858 %attr(755,root,root) %{_rpmlibdir}/magic.req
859 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
860 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides.sh
861 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides2.sh
862 %attr(755,root,root) %{_rpmlibdir}/rpmb
863 %attr(755,root,root) %{_rpmlibdir}/rpmt
864 %{_rpmlibdir}/noarch-*
867 %{_rpmlibdir}/pentium*
868 %{_rpmlibdir}/athlon*
872 %{_rpmlibdir}/x86_64*
874 %ifarch sparc sparc64
883 # must be here for "Requires: rpm-*prov" to work
884 %{_rpmlibdir}/macros.perl
885 %{_rpmlibdir}/macros.php
887 %{_rpmlibdir}/sql.prov
888 %{_rpmlibdir}/sql.req
889 %{_rpmlibdir}/tcl.req
892 %attr(755,root,root) %{_bindir}/javadeps
893 %attr(755,root,root) %{_bindir}/gendiff
894 %attr(755,root,root) %{_bindir}/rpmbuild
896 %{_mandir}/man1/gendiff.1*
897 %{_mandir}/man8/rpmbuild.8*
898 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
899 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
900 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
903 %defattr(644,root,root,755)
905 %{_libdir}/librpm*.la
906 %attr(755,root,root) %{_libdir}/librpm.so
907 %attr(755,root,root) %{_libdir}/librpmio.so
908 %attr(755,root,root) %{_libdir}/librpmdb.so
909 %attr(755,root,root) %{_libdir}/librpmbuild.so
912 %defattr(644,root,root,755)
916 %defattr(644,root,root,755)
917 %attr(755,root,root) %{_bindir}/debugedit
918 %attr(755,root,root) %{_bindir}/rpm2cpio
919 %attr(755,root,root) %{_bindir}/rpmcache
920 %attr(755,root,root) %{_bindir}/rpmdeps
921 %attr(755,root,root) %{_bindir}/rpmgraph
922 %attr(755,root,root) %{_bindir}/rpmfile
923 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
924 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
925 %attr(755,root,root) %{_rpmlibdir}/tgpg
926 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
929 %defattr(644,root,root,755)
930 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
932 #%%{_rpmlibdir}/rpm.daily
933 #%%{_rpmlibdir}/rpm.log
934 #%%{_rpmlibdir}/rpm.xinetd
936 %{_mandir}/man8/rpm2cpio.8*
937 %{_mandir}/man8/rpmdeps.8*
938 %{_mandir}/man8/rpmcache.8*
939 %{_mandir}/man8/rpmgraph.8*
940 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
941 %lang(ja) %{_mandir}/ja/man8/rpmcache.8*
942 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
943 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
944 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
945 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
946 %lang(pl) %{_mandir}/pl/man8/rpmcache.8*
947 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
948 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
952 %defattr(644,root,root,755)
953 %attr(755,root,root) %{_bindir}/rpm[ieu]
954 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
958 %defattr(644,root,root,755)
959 %attr(755,root,root) %{_rpmlibdir}/perl.*
960 #%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
961 #%attr(755,root,root) %{_rpmlibdir}/find-perl-*
962 #%attr(755,root,root) %{_rpmlibdir}/find-*.perl
963 #%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
964 #%attr(755,root,root) %{_rpmlibdir}/find-req.pl
965 %attr(755,root,root) %{_rpmlibdir}/get_magic.pl
968 %defattr(644,root,root,755)
969 %{_rpmlibdir}/macros.python
972 %defattr(644,root,root,755)
973 %attr(755,root,root) %{_rpmlibdir}/php*
974 %attr(755,root,root) %{_rpmlibdir}/find-php*
978 %defattr(644,root,root,755)
979 %attr(755,root,root) %{py_sitedir}/*.so
980 %attr(755,root,root) %{py_sitedir}/rpmdb/*.so
981 %{py_sitedir}/rpmdb/*.py*
985 %defattr(644,root,root,755)
986 %attr(755,root,root) %{_bindir}/builder
987 %attr(755,root,root) %{_bindir}/adapter.awk
988 %attr(755,root,root) %{_bindir}/pldnotify.awk