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 Source15: %{name}-compress-doc
29 Source16: %{name}-check-files
30 Source17: %{name}-php-provides
31 Source18: %{name}-php-requires
32 Source19: %{name}-find-php-provides
33 Source20: %{name}-find-php-requires
34 Source21: %{name}-macros.php
35 Patch0: %{name}-rpmrc.patch
36 Patch1: %{name}-macros.patch
37 Patch2: %{name}-arch.patch
38 Patch3: %{name}-rpmpopt.patch
39 Patch4: %{name}-perl-macros.patch
40 Patch5: %{name}-db3.patch
41 Patch6: %{name}-segv.patch
42 Patch7: %{name}-am_fix.patch
43 Patch8: %{name}-perl-req-perlfile.patch
44 Patch9: %{name}-installplatform.patch
45 Patch10: %{name}-cache.patch
46 Patch11: %{name}-suggestions.patch
47 Patch12: %{name}-rh-lame.patch
48 Patch13: %{name}-glob.patch
49 Patch14: %{name}-header_h.patch
50 Patch15: %{name}-fast-alAddPackage.patch
51 Patch16: %{name}-byKey.patch
52 Patch17: %{name}-perlprov.patch
53 Patch18: %{name}-noperldir.patch
54 Patch19: popt-cvs20010530.patch
55 Patch20: %{name}-noexpand.patch
56 Patch21: %{name}-scripts-closefds.patch
57 Patch22: %{name}-python-amfix.patch
58 Patch23: %{name}-non-english-man-pages.patch
59 Patch24: %{name}-progress-nontty.patch
60 Patch25: %{name}-am_ac.patch
61 Patch26: %{name}-python-macros.patch
62 Patch27: %{name}-hardlink-fixes.patch
63 Patch28: %{name}-perlprov-regonly.patch
64 Patch29: %{name}-cxx.patch
65 Patch30: %{name}-athlon.patch
66 Patch31: %{name}-athlon-identify.patch
67 Patch32: %{name}-gettext-in-header.patch
68 Patch33: %{name}-perlprov-perl5.6.patch
69 Patch34: %{name}-ac25x.patch
70 Patch35: %{name}-signverify-fix.patch
71 Patch36: %{name}-compress-doc.patch
72 Patch37: %{name}-short_circuit.patch
73 Patch38: %{name}-test_stage.patch
74 Patch39: %{name}-exclude.patch
75 Patch40: %{name}-check_files.patch
76 Patch41: %{name}-choke-on-evil-doc.patch
77 Patch42: %{name}-rpmlog-fix.patch
78 URL: http://www.rpm.org/
80 BuildRequires: autoconf >= 2.50
81 BuildRequires: automake
82 BuildRequires: bzip2-devel >= 1.0.1
83 BuildRequires: db1-devel >= 1.85
84 BuildRequires: db3-devel >= 3.1.17-9
85 BuildRequires: gettext-devel >= 0.10.38-3
86 BuildRequires: libtool
87 BuildRequires: patch >= 2.2
88 BuildRequires: python-devel >= 2.2.1
89 BuildRequires: python-modules >= 2.2.1
90 BuildRequires: zlib-devel >= 1.1.4
91 %if %{!?_without_static:1}%{?_without_static:0}
92 # Require static library only for static build
93 BuildRequires: bzip2-static >= 1.0.1
94 BuildRequires: db1-static >= 1.85
95 BuildRequires: db3-static >= 3.1.17-9
96 BuildRequires: glibc-static >= 2.2.0
97 BuildRequires: zlib-static >= 1.1.4
99 Requires: zlib >= 1.1.4
100 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
102 Conflicts: glibc < 2.2
104 %define __find_provides %{SOURCE4}
105 %define _binary_payload w9.gzdio
107 %define py_ver %(echo `python -c "import sys; print sys.version[:3]"`)
108 %define py_prefix %(echo `python -c "import sys; print sys.prefix"`)
109 %define py_libdir %{py_prefix}/lib/python%{py_ver}
110 %define py_sitedir %{py_libdir}/site-packages
111 %define py_dyndir %{py_libdir}/lib-dynload
112 %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, '.')"`)
115 RPM is a powerful package manager, which can be used to build,
116 install, query, verify, update, and uninstall individual software
117 packages. A package consists of an archive of files, and package
118 information, including name, version, and description.
121 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
122 Installation, Anfrage, Verifizierung, Aktualisierung und
123 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
124 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
128 RPM es un poderoso administrador de paquetes, que puede ser usado para
129 construir, instalar, pesquisar, verificar, actualizar y desinstalar
130 paquetes individuales de software. Un paquete consiste en un
131 almacenaje de archivos, y información sobre el paquete, incluyendo
132 nombre, versión y descripción.
135 RPM jest doskona³ym mened¿erem pakietów. Dziêki niemu bêdziesz móg³
136 przebudowaæ, zainstalowaæ czy zweryfikowaæ dowolny pakiet. Informacje
137 dotycz±ce ka¿dego pakietu, takie jak jego opis, lista plików
138 wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
139 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
140 odpytywania programu rpm.
142 %description -l pt_BR
143 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
144 construir, instalar, pesquisar, verificar, atualizar e desinstalar
145 pacotes individuais de software. Um pacote consiste de um conjunto de
146 arquivos e informações adicionais, incluindo nome, versão e descrição
147 do pacote, permissões dos arquivos, etc.
150 Summary: Header files and libraries
151 Summary(de): Header-Dateien uns Libraries
152 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
153 Summary(pl): Pliki nag³ówkowe i biblioteki statyczne
154 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
155 Group: Development/Libraries
156 Requires: %{name} = %{version}
160 The RPM packaging system includes a C library that makes it easy to
161 manipulate RPM packages and databases. It is intended to ease the
162 creation of graphical package managers and other tools that need
163 intimate knowledge of RPM packages.
165 %description devel -l de
166 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
167 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
168 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
169 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
171 %description devel -l es
172 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
173 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
174 facilitar la creación de administradores gráficos de paquetes y otras
175 herramientas que necesiten un conocimiento profundo de paquetes RPM.
177 %description devel -l pl
178 System RPM zawiera bibliotekê C, która u³atwia manipulowanie pakietami
179 RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
180 graficznych mened¿erów pakietów oraz innych narzêdzi, które wymagaj±
181 szczegó³owej wiedzy na temat pakietów RPM.
183 %description devel -l pt_BR
184 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
185 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
186 facilitar a criação de gerenciadores gráficos de pacotes e outras
187 ferramentas que precisem de conhecimento profundo de pacotes RPM.
190 Summary: RPM static libraries
191 Summary(de): RPMs statische Libraries
192 Summary(pl): Biblioteki statyczne RPM-a
193 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
194 Group: Development/Libraries
195 Requires: %{name}-devel = %{version}
198 RPM static libraries.
200 %description static -l de
201 RPMs statische Libraries.
203 %description static -l pl
204 Biblioteki statyczne RPM-a.
206 %description static -l pt_BR
207 Bibliotecas estáticas para desenvolvimento.
210 Summary: Additional utilities for managing rpm packages and database
211 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
212 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
213 Group: Applications/File
214 Requires: %{name} = %{version}
217 Additional utilities for managing rpm packages and database.
219 %description utils -l de
220 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
222 %description utils -l pl
223 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
226 Summary: Additional utilities for checking perl provides/requires in rpm packages
227 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
228 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
229 Group: Applications/File
230 Requires: %{name} = %{version}
231 Requires: perl-modules
234 %description perlprov
235 Additional utilities for checking perl provides/requires in rpm
238 %description perlprov -l de
239 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
241 %description perlprov -l pl
242 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
246 Summary: Python macros, which simplifies creation of rpm packages with Python software
247 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
248 Group: Applications/File
249 Requires: %{name} = %{version}
250 Requires: python-modules
252 %description pythonprov
253 Python macros, which simplifies creation of rpm packages with Python
256 %description pythonprov -l pl
257 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
260 %package php-pearprov
261 Summary: Additional utilities for managing rpm packages and database
262 Summary(pl): Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm.
263 Group: Applications/File
264 Requires: %{name} = %{version}
266 %description php-pearprov
267 Additional utilities for checking php pear provides/requires in rpm
270 %description php-pearprov -l pl
271 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
274 %package -n python-rpm
275 Summary: Python interface to RPM library
276 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
277 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
278 Group: Libraries/Python
279 Requires: %{name} = %{version}
280 %pyrequires_eq python
281 Obsoletes: rpm-python
283 %description -n python-rpm
284 The rpm-python package contains a module which permits applications
285 written in the Python programming language to use the interface
286 supplied by RPM (RPM Package Manager) libraries.
288 This package should be installed if you want to develop Python
289 programs that will manipulate RPM packages and databases.
291 %description -n python-rpm -l pl
292 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
293 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
295 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
296 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
298 %description -n python-rpm -l pt_BR
299 O pacote rpm-python contém um módulo que permite que aplicações
300 escritas em Python utilizem a interface fornecida pelas bibliotecas
301 RPM (RPM Package Manager).
303 Esse pacote deve ser instalado se você quiser desenvolver programas em
304 Python para manipular pacotes e bancos de dados RPM.
307 Summary: Scripts for building binary RPM packages
308 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
309 Summary(pl): Skrypty pomocnicze do budowania binarnych RPM-ów
310 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
311 Group: Applications/File
312 Requires: %{name} = %{version}
317 Requires: file >= 3.31
321 Requires: gcc >= 3.0.3
325 Requires: glibc-devel
330 Requires: popt >= 1.6.2-2
337 Scripts for building binary RPM packages.
339 %description build -l de
340 Scripts fürs Bauen binärer RPM-Pakete.
342 %description build -l pl
343 Skrypty pomocnicze do budowania binarnych RPM-ów.
345 %description build -l pt_BR
346 Este pacote contém scripts e programas executáveis que são usados para
347 construir pacotes usando o RPM.
399 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
400 cp -f platform.in macros.pld.in
401 install %{SOURCE5} macros.perl.in
402 install %{SOURCE13} macros.python.in
403 install %{SOURCE21} macros.php.in
404 install %{SOURCE6} scripts/find-perl-provides
405 install %{SOURCE7} scripts/find-perl-requires
406 install %{SOURCE9} scripts/find-lang.sh
407 install %{SOURCE17} scripts/php.prov.in
408 install %{SOURCE18} scripts/php.req.in
409 install %{SOURCE19} scripts/find-php-provides
410 install %{SOURCE20} scripts/find-php-requires
414 mv -f perl.req perl.req.in
415 mv -f perl.prov perl.prov.in)
420 # generate Group translations to *.po
421 awk -f %{SOURCE14} %{SOURCE1}
425 libtoolize --force --copy
433 libtoolize --force --copy
439 # ugly workaround for automake
440 sed -e 's#cpio.c $(DBLIBOBJS) depends.c#cpio.c depends.c#g' \
441 lib/Makefile.am > lib/Makefile.am.new
442 mv -f lib/Makefile.am.new lib/Makefile.am
444 sed -e 's#cpio.c depends.c#cpio.c $(DBLIBOBJS) depends.c#g' \
445 lib/Makefile.in > lib/Makefile.in.new
446 mv -f lib/Makefile.in.new lib/Makefile.in
448 sed -e 's#python1.5#python%{py_ver}#g' \
449 python/Makefile.in > python/Makefile.in.new
450 mv -f python/Makefile.in.new python/Makefile.in
452 # config.guess doesn't handle athlon, so we have to change it by hand.
453 # rpm checks for CPU type at runtime, but it looks better
454 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' macros.in | \
455 sed 's|@host_cpu@|%{_target_cpu}|' > macros.tmp
456 mv -f macros.tmp macros.in
460 --enable-v1-packages \
464 %{__make} %{?_without_static:rpm_LDFLAGS="\\$(myLDFLAGS)"}
467 rm -rf $RPM_BUILD_ROOT
470 DESTDIR=$RPM_BUILD_ROOT \
471 pkgbindir="%{_bindir}"
473 install macros.perl $RPM_BUILD_ROOT%{_libdir}/rpm/macros.perl
474 install macros.python $RPM_BUILD_ROOT%{_libdir}/rpm/macros.python
475 install macros.php $RPM_BUILD_ROOT%{_libdir}/rpm/macros.php
477 install %{SOURCE1} doc/manual/groups
478 install %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/rpm/install-build-tree
479 install %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/rpm/find-rpm-provides
480 install %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/rpm/find-spec-bcond
481 install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/rpm/find-provides
482 install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/rpm/find-requires
483 install %{SOURCE15} $RPM_BUILD_ROOT%{_libdir}/rpm/compress-doc
484 install %{SOURCE16} $RPM_BUILD_ROOT%{_libdir}/rpm/check-files
485 install scripts/find-php* $RPM_BUILD_ROOT%{_libdir}/rpm/
486 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_libdir}/rpm/
488 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
490 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
491 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
492 # customized rpm macros - global for host
494 #%%_install_langs pl_PL:en_US
501 rm -rf $RPM_BUILD_ROOT
503 %post -p /sbin/ldconfig
504 %postun -p /sbin/ldconfig
506 %files -f %{name}.lang
507 %defattr(644,root,root,755)
508 %doc RPM-PGP-KEY CHANGES doc/manual/[a-z]*
510 %attr(755,root,root) /bin/rpm
511 %attr(755,root,root) %{_bindir}/rpmdb
512 %attr(755,root,root) %{_bindir}/rpmquery
513 %attr(755,root,root) %{_bindir}/rpmsign
514 %attr(755,root,root) %{_bindir}/rpmverify
515 %attr(755,root,root) %{_libdir}/rpm/rpmdb
516 %attr(755,root,root) %{_libdir}/rpm/rpmq
517 %attr(755,root,root) %{_libdir}/rpm/rpmk
518 %attr(755,root,root) %{_libdir}/rpm/rpmv
519 %attr(755,root,root) %{_libdir}/librpm*.so.*.*
521 %dir %{_sysconfdir}/rpm
522 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
524 %{_mandir}/man8/rpm.8*
525 %lang(fr) %{_mandir}/fr/man8/rpm.8*
526 %lang(ja) %{_mandir}/ja/man8/rpm.8*
527 %lang(ko) %{_mandir}/ko/man8/rpm.8*
528 %lang(pl) %{_mandir}/pl/man8/rpm.8*
529 %lang(ru) %{_mandir}/ru/man8/rpm.8*
530 %lang(sk) %{_mandir}/sk/man8/rpm.8*
535 %doc %attr(755,root,root) %{_libdir}/rpm/convertrpmrc.sh
538 %{_libdir}/rpm/rpmpopt*
539 %{_libdir}/rpm/macros
540 %{_libdir}/rpm/noarch-linux
541 %{_libdir}/rpm/noarch-pld-linux
542 %ifarch i386 i486 i586 i686 athlon
544 %{_libdir}/rpm/athlon*
546 %ifarch sparc sparc64
547 %{_libdir}/rpm/sparc*
550 %{_libdir}/rpm/alpha*
558 %defattr(644,root,root,755)
559 %attr(755,root,root) %{_bindir}/rpmbuild
560 %attr(755,root,root) %{_bindir}/rpme
561 %attr(755,root,root) %{_bindir}/rpmi
562 %attr(755,root,root) %{_bindir}/rpmu
563 %attr(755,root,root) %{_libdir}/rpm/find-requires
564 %attr(755,root,root) %{_libdir}/rpm/find-provides
565 %attr(755,root,root) %{_libdir}/rpm/find-rpm-provides
566 %attr(755,root,root) %{_libdir}/rpm/find-spec-bcond
567 %attr(755,root,root) %{_libdir}/rpm/find-lang.sh
568 %attr(755,root,root) %{_libdir}/rpm/mkinstalldirs
569 %attr(755,root,root) %{_libdir}/rpm/config.*
570 %attr(755,root,root) %{_libdir}/rpm/getpo.sh
571 %attr(755,root,root) %{_libdir}/rpm/install-build-tree
572 %attr(755,root,root) %{_libdir}/rpm/brp-*
573 %attr(755,root,root) %{_libdir}/rpm/check-prereqs
574 %attr(755,root,root) %{_libdir}/rpm/check-files
575 %attr(755,root,root) %{_libdir}/rpm/compress-doc
576 %attr(755,root,root) %{_libdir}/rpm/cpanflute
577 %attr(755,root,root) %{_libdir}/rpm/http.req
578 %attr(755,root,root) %{_libdir}/rpm/magic.*
579 %attr(755,root,root) %{_libdir}/rpm/rpmdiff*
580 %attr(755,root,root) %{_libdir}/rpm/u_pkg.sh
581 %attr(755,root,root) %{_libdir}/rpm/vpkg-provides.sh
582 %attr(755,root,root) %{_libdir}/rpm/vpkg-provides2.sh
583 %attr(755,root,root) %{_libdir}/rpm/rpmb
584 %attr(755,root,root) %{_libdir}/rpm/rpmi
585 %attr(755,root,root) %{_libdir}/rpm/rpmt
586 %attr(755,root,root) %{_libdir}/rpm/rpme
587 %attr(755,root,root) %{_libdir}/rpm/rpmu
590 %defattr(644,root,root,755)
592 %attr(755,root,root) %{_libdir}/librpm*.la
593 %attr(755,root,root) %{_libdir}/librpm*.so
596 %defattr(644,root,root,755)
600 %defattr(644,root,root,755)
601 %attr(755,root,root) %{_bindir}/gendiff
602 %attr(755,root,root) %{_bindir}/javadeps
603 %attr(755,root,root) %{_bindir}/rpm2cpio
605 %{_mandir}/man8/rpm2cpio.8*
607 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
608 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
609 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
610 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
613 %defattr(644,root,root,755)
614 %attr(755,root,root) %{_libdir}/rpm/perl*
615 %attr(755,root,root) %{_libdir}/rpm/find-perl-*
616 %attr(755,root,root) %{_libdir}/rpm/find-*.perl
617 %attr(755,root,root) %{_libdir}/rpm/find-prov.pl
618 %attr(755,root,root) %{_libdir}/rpm/find-req.pl
619 %attr(755,root,root) %{_libdir}/rpm/get_magic.pl
621 %{_libdir}/rpm/macros.perl
624 %defattr(644,root,root,755)
625 %{_libdir}/rpm/macros.python
628 %defattr(644,root,root,755)
629 %attr(755,root,root) %{_libdir}/rpm/php*
630 %attr(755,root,root) %{_libdir}/rpm/find-php*
631 %{_libdir}/rpm/macros.php
634 %defattr(755,root,root,755)