1 # to build for athlon you need release at least 49
3 Summary: RPM Package Manager
4 Summary(de): RPM Packet-Manager
5 Summary(es): Gestor de paquetes RPM
6 Summary(pl): Aplikacja do zarz±dzania pakietami RPM
7 Summary(pt_BR): Gerenciador de pacotes RPM
13 Source0: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/%{name}-%{version}.tar.gz
14 Source1: %{name}.groups
15 Source2: %{name}.macros
16 Source3: %{name}-install-tree
17 Source4: %{name}-find-rpm-provides
18 Source5: %{name}-macros.perl
19 Source6: %{name}-find-perl-provides
20 Source7: %{name}-find-perl-requires
21 Source8: %{name}-find-spec-bcond
22 Source9: %{name}-find-lang
23 Source10: %{name}-find-provides
24 Source11: %{name}-find-requires
25 Source12: %{name}-non-english-man-pages.tar.bz2
26 Source13: %{name}-macros.python
27 Source14: %{name}-groups-po.awk
28 Patch0: %{name}-rpmrc.patch
29 Patch1: %{name}-macros.patch
30 Patch2: %{name}-arch.patch
31 Patch3: %{name}-rpmpopt.patch
32 Patch4: %{name}-perl-macros.patch
33 Patch5: %{name}-db3.patch
34 Patch6: %{name}-segv.patch
35 Patch7: %{name}-am_fix.patch
36 Patch8: %{name}-perl-req-perlfile.patch
37 Patch9: %{name}-installplatform.patch
38 Patch10: %{name}-cache.patch
39 Patch11: %{name}-suggestions.patch
40 Patch12: %{name}-rh-lame.patch
41 Patch13: %{name}-glob.patch
42 Patch14: %{name}-header_h.patch
43 Patch15: %{name}-fast-alAddPackage.patch
44 Patch16: %{name}-byKey.patch
45 Patch17: %{name}-perlprov.patch
46 Patch18: %{name}-noperldir.patch
47 Patch19: popt-cvs20010530.patch
48 Patch20: %{name}-noexpand.patch
49 Patch21: %{name}-scripts-closefds.patch
50 Patch22: %{name}-python-amfix.patch
51 Patch23: %{name}-non-english-man-pages.patch
52 Patch24: %{name}-progress-nontty.patch
53 Patch25: %{name}-am_ac.patch
54 Patch26: %{name}-python-macros.patch
55 Patch27: %{name}-hardlink-fixes.patch
56 Patch28: %{name}-perlprov-regonly.patch
57 Patch29: %{name}-cxx.patch
58 Patch30: %{name}-athlon.patch
59 Patch31: %{name}-athlon-identify.patch
60 Patch32: %{name}-gettext-in-header.patch
61 Patch33: %{name}-perlprov-perl5.6.patch
62 Patch34: %{name}-ac25x.patch
63 Patch37: %{name}-short_circuit.patch
64 Patch38: %{name}-section_test.patch
65 URL: http://www.rpm.org/
67 BuildRequires: autoconf >= 2.50
68 BuildRequires: automake
69 BuildRequires: bzip2-devel >= 1.0.1
70 BuildRequires: db1-devel >= 1.85
71 BuildRequires: db3-devel >= 3.1.17-9
72 BuildRequires: gettext-devel >= 0.10.38-3
73 BuildRequires: python-devel >= 2.2
74 BuildRequires: python-modules >= 2.2
75 BuildRequires: python-devel >= 2.2.1
76 BuildRequires: python-modules >= 2.2.1
77 BuildRequires: zlib-devel >= 1.1.4
78 %if %{!?_without_static:1}%{?_without_static:0}
79 # Require static library only for static build
80 BuildRequires: bzip2-static >= 1.0.1
81 BuildRequires: db1-static >= 1.85
82 BuildRequires: db3-static >= 3.1.17-9
83 BuildRequires: glibc-static >= 2.2.0
84 BuildRequires: zlib-static >= 1.1.4
86 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
88 Conflicts: glibc < 2.2
90 %define __find_provides %{SOURCE4}
91 %define _binary_payload w9.gzdio
93 %define py_ver %(echo `python -c "import sys; print sys.version[:3]"`)
94 %define py_prefix %(echo `python -c "import sys; print sys.prefix"`)
95 %define py_libdir %{py_prefix}/lib/python%{py_ver}
96 %define py_dyndir %{py_libdir}/lib-dynload
97 %define pyrequires_eq() Requires: %1 >= %py_ver %1 < %(echo `python -c "import sys; import string; ver=sys.version[:3].split('.'); ver[1]=str(int(ver[1])+1); print string.join(ver, '.')"`)
100 RPM is a powerful package manager, which can be used to build,
101 install, query, verify, update, and uninstall individual software
102 packages. A package consists of an archive of files, and package
103 information, including name, version, and description.
106 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
107 Installation, Anfrage, Verifizierung, Aktualisierung und
108 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
109 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
113 RPM es un poderoso administrador de paquetes, que puede ser usado para
114 construir, instalar, pesquisar, verificar, actualizar y desinstalar
115 paquetes individuales de software. Un paquete consiste en un
116 almacenaje de archivos, y información sobre el paquete, incluyendo
117 nombre, versión y descripción.
120 RPM jest doskona³ym mened¿erem pakietów. Dziêki niemu bêdziesz móg³
121 przebudowaæ, zainstalowaæ czy zweryfikowaæ dowolny pakiet. Informacje
122 dotycz±ce ka¿dego pakietu, takie jak jego opis, lista plików
123 wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
124 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
125 odpytywania programu rpm.
127 %description -l pt_BR
128 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
129 construir, instalar, pesquisar, verificar, atualizar e desinstalar
130 pacotes individuais de software. Um pacote consiste de um conjunto de
131 arquivos e informações adicionais, incluindo nome, versão e descrição
132 do pacote, permissões dos arquivos, etc.
135 Summary: Header files and libraries
136 Summary(de): Header-Dateien uns Libraries
137 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
138 Summary(pl): Pliki nag³ówkowe i biblioteki statyczne
139 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
140 Group: Development/Libraries
141 Requires: %{name} = %{version}
145 The RPM packaging system includes a C library that makes it easy to
146 manipulate RPM packages and databases. It is intended to ease the
147 creation of graphical package managers and other tools that need
148 intimate knowledge of RPM packages.
150 %description devel -l de
151 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
152 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
153 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
154 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
156 %description devel -l es
157 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
158 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
159 facilitar la creación de administradores gráficos de paquetes y otras
160 herramientas que necesiten un conocimiento profundo de paquetes RPM.
162 %description devel -l pl
163 System RPM zawiera bibliotekê C, która u³atwia manipulowanie pakietami
164 RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
165 graficznych mened¿erów pakietów oraz innych narzêdzi, które wymagaj±
166 szczegó³owej wiedzy na temat pakietów RPM.
168 %description devel -l pt_BR
169 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
170 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
171 facilitar a criação de gerenciadores gráficos de pacotes e outras
172 ferramentas que precisem de conhecimento profundo de pacotes RPM.
175 Summary: RPM static libraries
176 Summary(de): RPMs statische Libraries
177 Summary(pl): Biblioteki statyczne RPM-a
178 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
179 Group: Development/Libraries
180 Requires: %{name}-devel = %{version}
183 RPM static libraries.
185 %description static -l de
186 RPMs statische Libraries.
188 %description static -l pl
189 Biblioteki statyczne RPM-a.
191 %description static -l pt_BR
192 Bibliotecas estáticas para desenvolvimento.
195 Summary: Additional utilities for managing rpm packages and database
196 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
197 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
198 Group: Applications/File
199 Requires: %{name} = %{version}
202 Additional utilities for managing rpm packages and database.
204 %description utils -l de
205 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
207 %description utils -l pl
208 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
211 Summary: Additional utilities for checking perl provides/requires in rpm packages
212 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
213 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
214 Group: Applications/File
215 Requires: %{name} = %{version}
216 Requires: perl-modules
219 %description perlprov
220 Additional utilities for checking perl provides/requires in rpm
223 %description perlprov -l de
224 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
226 %description perlprov -l pl
227 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
231 Summary: Python macros, which simplifies creation of rpm packages with Python software
232 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
233 Group: Applications/File
234 Requires: %{name} = %{version}
235 Requires: python-modules
237 %description pythonprov
238 Python macros, which simplifies creation of rpm packages with Python
241 %description pythonprov -l pl
242 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
245 %package -n python-rpm
246 Summary: Python interface to RPM library
247 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
248 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
250 Requires: %{name} = %{version}
251 %pyrequires_eq python
252 Obsoletes: rpm-python
254 %description -n python-rpm
255 The rpm-python package contains a module which permits applications
256 written in the Python programming language to use the interface
257 supplied by RPM (RPM Package Manager) libraries.
259 This package should be installed if you want to develop Python
260 programs that will manipulate RPM packages and databases.
262 %description -n python-rpm -l pl
263 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
264 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
266 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
267 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
269 %description -n python-rpm -l pt_BR
270 O pacote rpm-python contém um módulo que permite que aplicações
271 escritas em Python utilizem a interface fornecida pelas bibliotecas
272 RPM (RPM Package Manager).
274 Esse pacote deve ser instalado se você quiser desenvolver programas em
275 Python para manipular pacotes e bancos de dados RPM.
278 Summary: Scripts for building binary RPM packages
279 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
280 Summary(pl): Skrypty pomocnicze do budowania binarnych RPM-ów
281 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
282 Group: Applications/File
283 Requires: %{name} = %{version}
288 Requires: file >= 3.31
292 Requires: gcc >= 3.0.3
296 Requires: glibc-devel
301 Requires: popt >= 1.6.2-2
308 Scripts for building binary RPM packages.
310 %description build -l de
311 Scripts fürs Bauen binärer RPM-Pakete.
313 %description build -l pl
314 Skrypty pomocnicze do budowania binarnych RPM-ów.
316 %description build -l pt_BR
317 Este pacote contém scripts e programas executáveis que são usados para
318 construir pacotes usando o RPM.
364 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
365 cp -f platform.in macros.pld.in
366 install %{SOURCE5} macros.perl.in
367 install %{SOURCE13} macros.python.in
368 install %{SOURCE6} scripts/find-perl-provides
369 install %{SOURCE7} scripts/find-perl-requires
370 install %{SOURCE9} scripts/find-lang.sh
373 mv -f perl.req perl.req.in
374 mv -f perl.prov perl.prov.in)
379 # generate Group translations to *.po
380 awk -f %{SOURCE14} %{SOURCE1}
392 libtoolize --force --copy
399 sed -e 's#cpio.c $(DBLIBOBJS) depends.c#cpio.c depends.c#g' \
400 lib/Makefile.am > lib/Makefile.am.new
401 mv -f lib/Makefile.am.new lib/Makefile.am
403 sed -e 's#cpio.c depends.c#cpio.c $(DBLIBOBJS) depends.c#g' \
404 lib/Makefile.in > lib/Makefile.in.new
405 mv -f lib/Makefile.in.new lib/Makefile.in
407 sed -e 's#python1.5#python%{py_ver}#g' \
408 python/Makefile.in > python/Makefile.in.new
409 mv -f python/Makefile.in.new python/Makefile.in
411 # config.guess doesn't handle athlon, so we have to change it by hand.
412 # rpm checks for CPU type at runtime, but it looks better
413 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' macros.in | \
414 sed 's|@host_cpu@|%{_target_cpu}|' > macros.tmp
415 mv -f macros.tmp macros.in
419 --enable-v1-packages \
423 %{__make} %{?_without_static:rpm_LDFLAGS="\\$(myLDFLAGS)"}
426 rm -rf $RPM_BUILD_ROOT
429 DESTDIR=$RPM_BUILD_ROOT \
430 pkgbindir="%{_bindir}"
432 install macros.perl $RPM_BUILD_ROOT%{_libdir}/rpm/macros.perl
433 install macros.python $RPM_BUILD_ROOT%{_libdir}/rpm/macros.python
435 install %{SOURCE1} doc/manual/groups
436 install %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/rpm/install-build-tree
437 install %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/rpm/find-spec-bcond
438 install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/rpm/find-provides
439 install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/rpm/find-requires
440 install %{SOURCE15} $RPM_BUILD_ROOT%{_libdir}/rpm/compress-doc
442 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
444 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
445 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
446 # customized rpm macros - global for host
448 #%%_install_langs pl_PL:en_US
454 # DON'T BREAK BUILD TREE!!!
455 # rm -f doc/manual/Makefile*
457 gzip -9nf RPM-PGP-KEY CHANGES doc/manual/*
460 rm -rf $RPM_BUILD_ROOT
462 %post -p /sbin/ldconfig
463 %postun -p /sbin/ldconfig
465 %files -f %{name}.lang
466 %defattr(644,root,root,755)
467 %doc RPM-PGP-KEY.gz CHANGES.gz doc/manual/*
469 %attr(755,root,root) /bin/rpm
470 %attr(755,root,root) %{_bindir}/rpmdb
471 %attr(755,root,root) %{_bindir}/rpmquery
472 %attr(755,root,root) %{_bindir}/rpmsign
473 %attr(755,root,root) %{_bindir}/rpmverify
474 %attr(755,root,root) %{_libdir}/rpm/rpmdb
475 %attr(755,root,root) %{_libdir}/rpm/rpmq
476 %attr(755,root,root) %{_libdir}/rpm/rpmk
477 %attr(755,root,root) %{_libdir}/rpm/rpmv
478 %attr(755,root,root) %{_libdir}/librpm*.so.*.*
480 %dir %{_sysconfdir}/rpm
481 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
483 %{_mandir}/man8/rpm.8*
484 %lang(fr) %{_mandir}/fr/man8/rpm.8*
485 %lang(ja) %{_mandir}/ja/man8/rpm.8*
486 %lang(ko) %{_mandir}/ko/man8/rpm.8*
487 %lang(pl) %{_mandir}/pl/man8/rpm.8*
488 %lang(ru) %{_mandir}/ru/man8/rpm.8*
489 %lang(sk) %{_mandir}/sk/man8/rpm.8*
494 %{_libdir}/rpm/macros.python
495 %doc %attr(755,root,root) %{_libdir}/rpm/convertrpmrc.sh
498 %{_libdir}/rpm/rpmpopt*
499 %{_libdir}/rpm/macros
500 %{_libdir}/rpm/noarch-linux
501 %{_libdir}/rpm/noarch-pld-linux
502 %ifarch i386 i486 i586 i686 athlon
504 %{_libdir}/rpm/athlon*
506 %ifarch sparc sparc64
507 %{_libdir}/rpm/sparc*
510 %{_libdir}/rpm/alpha*
518 %defattr(644,root,root,755)
519 %attr(755,root,root) %{_bindir}/rpmbuild
520 %attr(755,root,root) %{_bindir}/rpme
521 %attr(755,root,root) %{_bindir}/rpmi
522 %attr(755,root,root) %{_bindir}/rpmu
523 %attr(755,root,root) %{_libdir}/rpm/find-requires
524 %attr(755,root,root) %{_libdir}/rpm/find-provides
525 %attr(755,root,root) %{_libdir}/rpm/find-rpm-provides
526 %attr(755,root,root) %{_libdir}/rpm/find-spec-bcond
527 %attr(755,root,root) %{_libdir}/rpm/find-lang.sh
528 %attr(755,root,root) %{_libdir}/rpm/mkinstalldirs
529 %attr(755,root,root) %{_libdir}/rpm/getpo.sh
530 %attr(755,root,root) %{_libdir}/rpm/install-build-tree
531 %attr(755,root,root) %{_libdir}/rpm/brp-*
532 %attr(755,root,root) %{_libdir}/rpm/check-prereqs
533 %attr(755,root,root) %{_libdir}/rpm/compress-doc
534 %attr(755,root,root) %{_libdir}/rpm/cpanflute
535 %attr(755,root,root) %{_libdir}/rpm/http.req
536 %attr(755,root,root) %{_libdir}/rpm/magic.*
537 %attr(755,root,root) %{_libdir}/rpm/rpmdiff*
538 %attr(755,root,root) %{_libdir}/rpm/u_pkg.sh
539 %attr(755,root,root) %{_libdir}/rpm/vpkg-provides.sh
540 %attr(755,root,root) %{_libdir}/rpm/vpkg-provides2.sh
541 %attr(755,root,root) %{_libdir}/rpm/rpmb
542 %attr(755,root,root) %{_libdir}/rpm/rpmi
543 %attr(755,root,root) %{_libdir}/rpm/rpmt
544 %attr(755,root,root) %{_libdir}/rpm/rpme
545 %attr(755,root,root) %{_libdir}/rpm/rpmu
548 %defattr(644,root,root,755)
550 %attr(755,root,root) %{_libdir}/librpm*.la
551 %attr(755,root,root) %{_libdir}/librpm*.so
554 %defattr(644,root,root,755)
558 %defattr(644,root,root,755)
559 %attr(755,root,root) %{_bindir}/gendiff
560 %attr(755,root,root) %{_bindir}/javadeps
561 %attr(755,root,root) %{_bindir}/rpm2cpio
563 %{_mandir}/man8/rpm2cpio.8*
565 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
566 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
567 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
568 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
571 %defattr(644,root,root,755)
572 %attr(755,root,root) %{_libdir}/rpm/perl*
573 %attr(755,root,root) %{_libdir}/rpm/find-perl-*
574 %attr(755,root,root) %{_libdir}/rpm/find-*.perl
575 %attr(755,root,root) %{_libdir}/rpm/find-prov.pl
576 %attr(755,root,root) %{_libdir}/rpm/find-req.pl
577 %attr(755,root,root) %{_libdir}/rpm/get_magic.pl
579 %{_libdir}/rpm/macros.perl
582 %defattr(644,root,root,755)
583 %{_libdir}/rpm/macros.python
586 %defattr(755,root,root,755)