3 # - python(abi) cap is not provided automatically (because /usr/bin/python matches
4 # ELF first; it should be provided by python-libs not binary anyway)
5 # - consider using system libmagic not internal libfmagic
6 # (but internal has different method of passing output)
9 %bcond_with static # build static rpmi (not supported at the moment)
10 %bcond_without apidocs # don't generate documentation with doxygen
11 %bcond_with autoreqdep # autogenerate package name deps in addition to sonames/perl(X)
12 %bcond_without python # don't build python bindings
13 %bcond_without selinux # build without 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"
18 # versions of required libraries
19 %define reqdb_ver 4.3.27-1
20 %define reqpopt_ver 1.10.1
21 %define beecrypt_ver 2:4.1.0
22 %define rpm_macros_rev 1.231
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
36 Source0: ftp://jbj.org/pub/rpm-4.4.x/%{name}-%{version}.tar.gz
37 # Source0-md5: 90ded9047b1b69d918c6c7c7b56fd7a9
38 Source1: %{name}.groups
39 Source2: %{name}.platform
40 Source3: %{name}-install-tree
41 Source4: %{name}-find-spec-bcond
42 Source5: %{name}-find-lang
43 Source6: %{name}-groups-po.awk
44 Source7: %{name}-compress-doc
45 Source8: %{name}-check-files
46 Source9: %{name}-php-provides
47 Source10: %{name}-php-requires
48 Source11: %{name}.macros
50 Source13: %{name}-user_group.sh
51 Source14: %{name}.sysconfig
54 Source32: pldnotify.awk
55 # http://svn.pld-linux.org/banner.sh/
57 Patch0: %{name}-pl.po.patch
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 Patch6: %{name}-noexpand.patch
64 Patch7: %{name}-scripts-closefds.patch
65 Patch8: %{name}-python-macros.patch
66 Patch9: %{name}-gettext-in-header.patch
67 Patch10: %{name}-compress-doc.patch
68 Patch11: %{name}-build.patch
69 Patch12: %{name}-system_libs.patch
70 Patch13: %{name}-bb-and-short-circuit.patch
71 Patch14: %{name}-etc_dir.patch
72 Patch15: %{name}-system_libs-more.patch
73 Patch16: %{name}-php-deps.patch
74 Patch17: %{name}-ldconfig-always.patch
75 Patch18: %{name}-perl_req.patch
76 Patch19: %{name}-no-bin-env.patch
77 Patch20: %{name}-magic-usesystem.patch
78 Patch21: %{name}-dontneedutils.patch
79 Patch22: %{name}-provides-dont-obsolete.patch
80 Patch23: %{name}-examplesaredoc.patch
81 Patch24: %{name}-po.patch
82 Patch25: %{name}-getcwd.patch
83 Patch26: %{name}-notsc.patch
84 Patch27: %{name}-hack-norpmlibdep.patch
85 Patch28: %{name}-makefile-no_myLDADD_deps.patch
86 Patch29: %{name}-libdir64.patch
87 Patch30: %{name}-libdir-links.patch
88 Patch31: %{name}-missing-prototypes.patch
89 Patch32: %{name}-pld-autodep.patch
90 Patch33: %{name}-rpmsq.patch
91 Patch34: %{name}-epoch0.patch
92 Patch35: %{name}-perl_req-INC_dirs.patch
93 Patch36: %{name}-debuginfo.patch
94 Patch37: %{name}-doxygen_hack.patch
95 Patch38: %{name}-gcc4.patch
96 Patch39: %{name}-pythondeps.patch
97 Patch40: %{name}-print-requires.patch
98 Patch41: %{name}-reduce-stack-usage.patch
99 Patch42: %{name}-glob.patch
100 URL: http://www.rpm.org/
102 BuildRequires: autoconf >= 2.52
103 BuildRequires: automake
104 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
105 BuildRequires: bzip2-devel >= 1.0.1
106 BuildRequires: db-devel >= %{reqdb_ver}
107 %{?with_apidocs:BuildRequires: doxygen}
108 BuildRequires: elfutils-devel
109 BuildRequires: findutils
110 BuildRequires: gettext-devel >= 0.11.4-2
111 #BuildRequires: libmagic-devel
112 %{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
113 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
114 BuildRequires: libstdc++-devel
115 BuildRequires: libtool
116 BuildRequires: libxml2-devel
117 BuildRequires: neon-devel >= 0.24.7-3
118 BuildRequires: patch >= 2.2
119 BuildRequires: popt-devel >= %{reqpopt_ver}
120 %{?with_python:BuildRequires: python-devel >= 2.2}
121 BuildRequires: python-modules >= 2.2
122 BuildRequires: readline-devel
123 BuildRequires: rpm-perlprov
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 >= 1.18}
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
152 %define x8664 amd64 ia32e x86_64
154 # stabilize new build environment
155 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
156 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
157 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
159 %define _rpmlibdir /usr/lib/rpm
162 RPM is a powerful package manager, which can be used to build,
163 install, query, verify, update, and uninstall individual software
164 packages. A package consists of an archive of files, and package
165 information, including name, version, and description.
168 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
169 Installation, Anfrage, Verifizierung, Aktualisierung und
170 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
171 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
175 RPM es un poderoso administrador de paquetes, que puede ser usado para
176 construir, instalar, pesquisar, verificar, actualizar y desinstalar
177 paquetes individuales de software. Un paquete consiste en un
178 almacenaje de archivos, y información sobre el paquete, incluyendo
179 nombre, versión y descripción.
182 RPM jest doskona³ym programem zarz±dzaj±cym pakietami. Umo¿liwia on
183 przebudowanie, instalacjê czy weryfikacjê dowolnego pakietu.
184 Informacje dotycz±ce ka¿dego pakietu, takie jak jego opis, lista
185 plików wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
186 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
187 odpytywania programu rpm.
189 %description -l pt_BR
190 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
191 construir, instalar, pesquisar, verificar, atualizar e desinstalar
192 pacotes individuais de software. Um pacote consiste de um conjunto de
193 arquivos e informações adicionais, incluindo nome, versão e descrição
194 do pacote, permissões dos arquivos, etc.
197 RPM - ÜÔÏ ÍÏÝÎÙÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔÏ×, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ÄÌÑ
198 ÓÏÚÄÁÎÉÑ, ÉÎÓÔÁÌÌÑÃÉÉ, ÚÁÐÒÏÓÏ× (query), ÐÒÏ×ÅÒËÉ, ÏÂÎÏ×ÌÅÎÉÑ É
199 ÕÄÁÌÅÎÉÑ ÐÒÏÇÒÁÍÍÎÙÈ ÐÁËÅÔÏ×. ðÁËÅÔ ÓÏÓÔÏÉÔ ÉÚ ÆÁÊÌÏ×ÏÇÏ ÁÒÈÉ×Á É
200 ÓÌÕÖÅÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ, ×ËÌÀÞÁÀÝÅÊ ÎÁÚ×ÁÎÉÅ, ×ÅÒÓÉÀ, ÏÐÉÓÁÎÉÅ É ÄÒÕÇÉÅ
204 RPM - ÃÅ ÐÏÔÕÖÎÉÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔ¦×, ÝÏ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÄÌÑ
205 ÓÔ×ÏÒÅÎÎÑ, ¦ÎÓÔÁÌÑæ§, ÚÁÐÉÔ¦× (query), ÐÅÒÅצÒËÉ, ÐÏÎÏ×ÌÅÎÎÑ ÔÁ
206 ×ÉÄÁÌÅÎÎÑ ÐÒÏÇÒÁÍÎÉÈ ÐÁËÅÔ¦×. ðÁËÅÔ ÓËÌÁÄÁ¤ÔØÓÑ Ú ÆÁÊÌÏ×ÏÇÏ ÁÒȦ×Õ ÔÁ
207 ÓÌÕÖÂÏ×ϧ ¦ÎÆÏÒÍÁæ§, ÝÏ Í¦ÓÔÉÔØ ÎÁÚ×Õ, ×ÅÒÓ¦À, ÏÐÉÓ ÔÁ ¦ÎÛÕ
208 ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÐÁËÅÔ.
211 Summary: RPMs library
212 Summary(pl): Biblioteki RPM-a
214 Requires: db >= %{reqdb_ver}
215 %{?with_selinux:BuildRequires: libselinux >= 1.18}
216 Requires: popt >= %{reqpopt_ver}
217 # avoid SEGV caused by mixed db versions
218 Conflicts: poldek < 0.18.1-16
223 %description lib -l pl
227 Summary: Header files for rpm libraries
228 Summary(de): Header-Dateien für rpm Libraries
229 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
230 Summary(pl): Pliki nag³ówkowe bibliotek rpm
231 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
232 Summary(ru): èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
233 Summary(uk): èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
234 Group: Development/Libraries
235 Requires: %{name}-lib = %{version}-%{release}
236 Requires: beecrypt-devel >= %{beecrypt_ver}
237 Requires: bzip2-devel
238 Requires: db-devel >= %{reqdb_ver}
239 Requires: elfutils-devel
240 %{?with_selinux:Requires: libselinux-devel}
241 Requires: popt-devel >= %{reqpopt_ver}
245 The RPM packaging system includes C libraries that make it easy to
246 manipulate RPM packages and databases. They are intended to ease the
247 creation of graphical package managers and other tools that need
248 intimate knowledge of RPM packages. This package contains header files
251 %description devel -l de
252 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
253 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
254 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
255 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
257 %description devel -l es
258 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
259 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
260 facilitar la creación de administradores gráficos de paquetes y otras
261 herramientas que necesiten un conocimiento profundo de paquetes RPM.
263 %description devel -l pl
264 System RPM zawiera biblioteki C, które u³atwiaj± manipulowanie
265 pakietami RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
266 graficznych programów zarz±dzaj±cych pakietami oraz innych narzêdzi,
267 które wymagaj± szczegó³owej wiedzy na temat pakietów RPM. Ten pakiet
268 zawiera pliki nag³ówkowe wspomnianych bibliotek.
270 %description devel -l pt_BR
271 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
272 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
273 facilitar a criação de gerenciadores gráficos de pacotes e outras
274 ferramentas que precisem de conhecimento profundo de pacotes RPM.
276 %description devel -l ru
277 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
278 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
279 üÔÁ ÂÉÂÌÉÏÔÅËÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÏÂÌÅÇÞÅÎÉÑ ÓÏÚÄÁÎÉÑ ÇÒÁÆÉÞÅÓËÉÈ
280 ÐÁËÅÔÎÙÈ ÍÅÎÅÄÖÅÒÏ× É ÄÒÕÇÉÈ ÕÔÉÌÉÔ, ËÏÔÏÒÙÍ ÎÅÏÂÈÏÄÉÍÏ ÒÁÂÏÔÁÔØ Ó
283 %description devel -l uk
284 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
285 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÑ Â¦Â̦ÏÔÅËÁ
286 ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ÐÏÌÅÇÛÅÎÎÑ ÓÔ×ÏÒÅÎÎÑ ÇÒÁƦÞÎÉÈ ÐÁËÅÔÎÉÈ ÍÅÎÅÄÖÅÒ¦× ÔÁ
287 ¦ÎÛÉÈ ÕÔÉ̦Ô, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ RPM.
290 Summary: RPM static libraries
291 Summary(de): RPMs statische Libraries
292 Summary(pl): Biblioteki statyczne RPM-a
293 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
294 Summary(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
295 Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
296 Group: Development/Libraries
297 Requires: %{name}-devel = %{version}-%{release}
298 Requires: beecrypt-static >= %{beecrypt_ver}
299 Requires: bzip2-static
300 Requires: db-static >= %{reqdb_ver}
301 Requires: elfutils-static
302 Requires: popt-static >= %{reqpopt_ver}
303 Requires: zlib-static
306 RPM static libraries.
308 %description static -l de
309 RPMs statische Libraries.
311 %description static -l pl
312 Biblioteki statyczne RPM-a.
314 %description static -l pt_BR
315 Bibliotecas estáticas para desenvolvimento.
317 %description static -l ru
318 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
319 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
320 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ RPM.
322 %description static -l uk
323 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
324 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ צÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÅ ÓÔÁÔÉÞÎÁ
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} = %{version}-%{release}
333 Requires: popt >= %{reqpopt_ver}
336 Additional utilities for managing rpm packages and database.
338 %description utils -l de
339 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
341 %description utils -l pl
342 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
345 Summary: Additional utilities for managing rpm packages and database
346 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
347 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
348 Group: Applications/File
349 Requires: %{name}-utils = %{version}-%{release}
350 Requires: popt >= %{reqpopt_ver}
352 %description utils-perl
353 Additional utilities for managing rpm packages and database.
355 %description utils-perl -l de
356 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
358 %description utils-perl -l pl
359 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
361 %package utils-static
362 Summary: Static rpm utilities
363 Summary(pl): Statyczne narzêdzia rpm
364 Group: Applications/System
365 Requires: %{name} = %{version}-%{release}
367 %description utils-static
368 Static rpm utilities for repairing system in case something with
369 shared libraries used by rpm become broken. Currently it contains rpmi
370 binary, which can be used to install/upgrade/remove packages without
371 using shared libraries (well, in fact with exception of NSS modules).
373 %description utils-static -l pl
374 Statyczne narzêdzia rpm do naprawy systemu w przypadku zepsucia czego¶
375 zwi±zanego z bibliotekami wspó³dzielonymi u¿ywanymi przez rpm-a.
376 Aktualnie pakiet zawiera binarkê rpmi, któr± mo¿na u¿yæ do instalacji,
377 uaktualniania lub usuwania pakietów bez udzia³u bibliotek statycznych
378 (z wyj±tkiem modu³ów NSS).
381 Summary: Scripts for building binary RPM packages
382 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
383 Summary(pl): Skrypty pomocnicze do budowania binarnych RPM-ów
384 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
385 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
386 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
387 Group: Applications/File
388 Requires(pre): findutils
389 Requires: %{name}-utils = %{version}-%{release}
394 Requires: chrpath >= 0.10-4
398 Requires: file >= 4.13-2
401 # because of -fvisibility... related fixes
402 Requires: gcc >= 5:4.0.1-0.20050514.2
403 Requires: glibc-devel
408 Requires: popt >= 1.7
413 Provides: rpmbuild(macros) = %{rpm_macros_rev}
414 Provides: rpmbuild(noauto) = 3
416 Conflicts: automake < 1:1.7.9-2
417 Conflicts: libtool < 2:1.5-13
421 Scripts for building binary RPM packages.
423 %description build -l de
424 Scripts fürs Bauen binärer RPM-Pakete.
426 %description build -l pl
427 Skrypty pomocnicze do budowania binarnych RPM-ów.
429 %description build -l pt_BR
430 Este pacote contém scripts e programas executáveis que são usados para
431 construir pacotes usando o RPM.
433 %description build -l ru
434 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
435 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
437 %description build -l uk
438 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
442 Summary: Scripts for managing .spec files and building RPM packages
443 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
444 Summary(pl): Skrypty pomocnicze do zarz±dznia plikami .spec i budowania RPM-ów
445 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
446 Summary(ru): óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
447 Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
448 Group: Applications/File
449 Requires: %{name}-build = %{version}-%{release}
454 %description build-tools
455 Scripts for managing .spec files and building RPM packages.
457 %description build-tools -l de
458 Scripts fürs Bauen RPM-Pakete.
460 %description build-tools -l pl
461 Skrypty pomocnicze do zarz±dzania plikami .spec i do budowania RPM-ów.
463 %description build-tools -l pt_BR
464 Este pacote contém scripts e programas executáveis que são usados para
465 construir pacotes usando o RPM.
467 %description build-tools -l ru
468 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
469 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
471 %description build-tools -l uk
472 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
476 Summary: Additional utilities for checking perl provides/requires in rpm packages
477 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
478 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
479 Group: Applications/File
480 Requires: %{name} = %{version}-%{release}
482 Requires: perl-modules
484 %description perlprov
485 Additional utilities for checking perl provides/requires in rpm
488 %description perlprov -l de
489 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
491 %description perlprov -l pl
492 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
496 Summary: Python macros, which simplifies creation of rpm packages with Python software
497 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
498 Group: Applications/File
499 Requires: %{name} = %{version}-%{release}
502 %description pythonprov
503 Python macros, which simplifies creation of rpm packages with Python
506 %description pythonprov -l pl
507 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
510 %package php-pearprov
511 Summary: Additional utilities for managing rpm packages and database
512 Summary(pl): Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm
513 Group: Applications/File
514 Requires: %{name} = %{version}-%{release}
516 %description php-pearprov
517 Additional utilities for checking php pear provides/requires in rpm
520 %description php-pearprov -l pl
521 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
524 %package -n python-rpm
525 Summary: Python interface to RPM library
526 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
527 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
528 Group: Development/Languages/Python
529 Requires: %{name} = %{version}-%{release}
530 %pyrequires_eq python
531 Obsoletes: rpm-python
533 %description -n python-rpm
534 The rpm-python package contains a module which permits applications
535 written in the Python programming language to use the interface
536 supplied by RPM (RPM Package Manager) libraries.
538 This package should be installed if you want to develop Python
539 programs that will manipulate RPM packages and databases.
541 %description -n python-rpm -l pl
542 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
543 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
545 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
546 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
548 %description -n python-rpm -l pt_BR
549 O pacote rpm-python contém um módulo que permite que aplicações
550 escritas em Python utilizem a interface fornecida pelas bibliotecas
551 RPM (RPM Package Manager).
553 Esse pacote deve ser instalado se você quiser desenvolver programas em
554 Python para manipular pacotes e bancos de dados RPM.
557 Summary: RPM API documentation and guides
558 Summary(pl): Documentacja API RPM-a i przewodniki
562 Documentation for RPM API and guides in HTML format generated
563 from rpm sources by doxygen.
565 %description apidocs -l pl
566 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane
567 ze ¼rode³ RPM-a przez doxygen.
573 # temporarily moved after patch0 - messes too much in pl.po
592 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
593 cp -f platform.in macros.pld.in
594 echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
595 echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
596 echo '# obsoleted file' > macros.python
597 echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
598 echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
599 install %{SOURCE5} scripts/find-lang.sh
600 install %{SOURCE9} scripts/php.prov.in
601 install %{SOURCE10} scripts/php.req.in
602 install %{SOURCE12} scripts/perl.prov
603 cat %{SOURCE11} >> macros.in
631 mv -f perl.req perl.req.in
632 mv -f perl.prov perl.prov.in
636 mv -f po/{sr,sr@Latn}.po
638 rm -rf neon zlib libelf db db3 popt rpmdb/db.h
640 # generate Group translations to *.po
641 awk -f %{SOURCE6} %{SOURCE1}
643 # update macros paths
644 for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
645 sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
665 # config.guess doesn't handle athlon, so we have to change it by hand.
666 # rpm checks for CPU type at runtime, but it looks better
667 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' \
668 -e 's|@host_cpu@|%{_target_cpu}|' macros.in > macros.tmp
669 mv -f macros.tmp macros.in
671 CPPFLAGS="-Dglob=rpm_glob -Dglobfree=rpm_globfree"; export CPPFLAGS
673 # pass CC and CXX too in case of building with some older configure macro
680 %{?with_apidoc:--with-apidocs} \
681 %{?with_pkgnameinautoreq:--enable-adding-packages-names-in-autogenerated-dependancies} \
682 %{?with_python:--with-python=auto} \
683 %{!?with_python:--without-python} \
684 %{!?with_selinux:--without-selinux} \
688 # file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
693 pylibdir=%{py_libdir} \
694 myLDFLAGS="%{rpmldflags}" \
696 debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt"
698 # %{!?with_static:rpm_LDFLAGS="\$(myLDFLAGS)"} \
699 %{?with_apidocs:%{__make} doxygen}
702 rm -rf $RPM_BUILD_ROOT
703 install -d $RPM_BUILD_ROOT{/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm}
706 DESTDIR=$RPM_BUILD_ROOT \
707 pylibdir=%{py_libdir} \
708 pkgbindir="%{_bindir}"
710 rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
711 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
712 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
714 install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
715 install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
716 install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
718 install %{SOURCE1} doc/manual/groups
719 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
720 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
721 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
722 install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
723 install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
724 install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
725 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
726 install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
728 install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
729 install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
730 install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
731 install %{SOURCE33} $RPM_BUILD_ROOT%{_bindir}/banner.sh
733 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
736 ix86re=$(echo "(%{ix86})"|sed 's/ /|/g')
737 perl -p -i -e 's/^(buildarchtranslate: '"$ix86re"': ).*/\1%{_target_cpu}/' \
738 $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
741 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
742 # customized rpm macros - global for host
744 #%%_install_langs pl_PL:en_US
747 # remove or replace with file_contexts path if you want to use custom
748 # SELinux file contexts policy instead of one stored in packages payload
749 %%_install_file_context_path %%{nil}
750 %%_verify_file_context_path %%{nil}
753 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
754 # global list of files (regexps) which don't generate Provides
756 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
757 # global list of script capabilities (regexps) not to be used in Provides
759 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
760 # global list of files (regexps) which don't generate Requires
764 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
765 # global list of script capabilities (regexps) not to be used in Requires
767 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
768 # global list of capabilities (SONAME, perl(module), php(module) regexps)
769 # which don't generate dependencies on package NAMES
770 # -- OpenGL implementation
780 # -- X11 implementation
823 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
824 # global list of file masks not to be compressed in DOCDIR
827 # for rpm -e|-U --repackage
828 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
829 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
832 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
833 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
834 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
837 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
838 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
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
894 %attr(755,root,root) %{_bindir}/banner.sh
897 %{_rpmlibdir}/rpmpopt*
901 %defattr(644,root,root,755)
902 %attr(755,root,root) /%{_lib}/librpm*-*.so
903 %attr(755,root,root) %{_libdir}/librpm*-*.so
906 %defattr(644,root,root,755)
908 %{_libdir}/librpm*.la
909 %attr(755,root,root) %{_libdir}/librpm.so
910 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
911 %attr(755,root,root) %{_libdir}/librpmio.so
912 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
913 %attr(755,root,root) %{_libdir}/librpmdb.so
914 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
915 %attr(755,root,root) %{_libdir}/librpmbuild.so
918 %defattr(644,root,root,755)
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_bindir}/debugedit
924 %attr(755,root,root) %{_bindir}/rpm2cpio
925 %attr(755,root,root) %{_bindir}/rpmcache
926 %attr(755,root,root) %{_bindir}/rpmdeps
927 %attr(755,root,root) %{_bindir}/rpmgraph
928 %attr(755,root,root) %{_bindir}/rpmfile
929 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
930 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
931 %attr(755,root,root) %{_rpmlibdir}/tgpg
932 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
933 %{_mandir}/man8/rpm2cpio.8*
934 %{_mandir}/man8/rpmdeps.8*
935 %{_mandir}/man8/rpmcache.8*
936 %{_mandir}/man8/rpmgraph.8*
937 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
938 %lang(ja) %{_mandir}/ja/man8/rpmcache.8*
939 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
940 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
941 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
942 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
943 %lang(pl) %{_mandir}/pl/man8/rpmcache.8*
944 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
945 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
948 %defattr(644,root,root,755)
949 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
951 #%%{_rpmlibdir}/rpm.daily
952 #%%{_rpmlibdir}/rpm.log
953 #%%{_rpmlibdir}/rpm.xinetd
957 %defattr(644,root,root,755)
958 %attr(755,root,root) %{_bindir}/rpm[ieu]
959 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
963 %defattr(644,root,root,755)
964 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/noauto*
965 %attr(755,root,root) %{_rpmlibdir}/compress-doc
966 %attr(755,root,root) %{_rpmlibdir}/cross-build
967 #%attr(755,root,root) %{_rpmlibdir}/find-provides
968 #%attr(755,root,root) %{_rpmlibdir}/find-provides-wrapper
969 #%attr(755,root,root) %{_rpmlibdir}/find-requires
970 #%attr(755,root,root) %{_rpmlibdir}/find-requires-wrapper
971 #%attr(755,root,root) %{_rpmlibdir}/find-rpm-provides
972 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
973 %attr(755,root,root) %{_rpmlibdir}/find-lang.sh
974 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
975 %attr(755,root,root) %{_rpmlibdir}/config.*
976 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
977 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
978 %attr(755,root,root) %{_rpmlibdir}/brp-*
979 %attr(755,root,root) %{_rpmlibdir}/check-files
980 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
981 #%attr(755,root,root) %{_rpmlibdir}/cpanflute
982 #%attr(755,root,root) %{_rpmlibdir}/cpanflute2
983 #%attr(755,root,root) %{_rpmlibdir}/Specfile.pm
984 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
985 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides.sh
986 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides2.sh
987 %attr(755,root,root) %{_rpmlibdir}/rpmb
988 %attr(755,root,root) %{_rpmlibdir}/rpmt
989 %{_rpmlibdir}/noarch-*
992 %{_rpmlibdir}/pentium*
993 %{_rpmlibdir}/athlon*
1001 %ifarch mips mipsel mips64 mips64el
1007 %ifarch sparc sparc64
1008 %{_rpmlibdir}/sparc*
1011 %{_rpmlibdir}/x86_64*
1013 # must be here for "Requires: rpm-*prov" to work
1014 %{_rpmlibdir}/macros.perl
1015 %{_rpmlibdir}/macros.php
1016 # not used yet ... these six depend on perl
1017 #%attr(755,root,root) %{_rpmlibdir}/http.req
1018 #%attr(755,root,root) %{_rpmlibdir}/magic.prov
1019 #%attr(755,root,root) %{_rpmlibdir}/magic.req
1020 #%{_rpmlibdir}/sql.prov
1021 #%{_rpmlibdir}/sql.req
1022 #%{_rpmlibdir}/tcl.req
1025 %attr(755,root,root) %{_bindir}/javadeps
1026 %attr(755,root,root) %{_bindir}/gendiff
1027 %attr(755,root,root) %{_bindir}/rpmbuild
1029 %{_mandir}/man1/gendiff.1*
1030 %{_mandir}/man8/rpmbuild.8*
1031 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1032 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1033 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1036 %defattr(644,root,root,755)
1037 %attr(755,root,root) %{_bindir}/builder
1038 %attr(755,root,root) %{_bindir}/adapter.awk
1039 %attr(755,root,root) %{_bindir}/pldnotify.awk
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_rpmlibdir}/perl.*
1044 #%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1045 #%attr(755,root,root) %{_rpmlibdir}/find-perl-*
1046 #%attr(755,root,root) %{_rpmlibdir}/find-*.perl
1047 #%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
1048 #%attr(755,root,root) %{_rpmlibdir}/find-req.pl
1049 %attr(755,root,root) %{_rpmlibdir}/get_magic.pl
1052 %defattr(644,root,root,755)
1053 %{_rpmlibdir}/macros.python
1054 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1057 %defattr(644,root,root,755)
1058 %attr(755,root,root) %{_rpmlibdir}/php*
1059 %attr(755,root,root) %{_rpmlibdir}/find-php*
1062 %files -n python-rpm
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{py_sitedir}/*.so
1065 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1066 %attr(755,root,root) %{py_sitedir}/rpm/*.py[co]
1067 %attr(755,root,root) %{py_sitedir}/rpmdb/*.so
1068 %{py_sitedir}/rpmdb/*.py*
1073 %defattr(644,root,root,755)