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