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 URL: http://www.rpm.org/
79 BuildRequires: autoconf >= 2.50
80 BuildRequires: automake
81 BuildRequires: bzip2-devel >= 1.0.1
82 BuildRequires: db1-devel >= 1.85
83 BuildRequires: db3-devel >= 3.1.17-9
84 BuildRequires: gettext-devel >= 0.10.38-3
85 BuildRequires: libtool
86 BuildRequires: patch >= 2.2
87 BuildRequires: python-devel >= 2.2.1
88 BuildRequires: python-modules >= 2.2.1
89 BuildRequires: zlib-devel >= 1.1.4
90 %if %{!?_without_static:1}%{?_without_static:0}
91 # Require static library only for static build
92 BuildRequires: bzip2-static >= 1.0.1
93 BuildRequires: db1-static >= 1.85
94 BuildRequires: db3-static >= 3.1.17-9
95 BuildRequires: glibc-static >= 2.2.0
96 BuildRequires: zlib-static >= 1.1.4
98 Requires: zlib >= 1.1.4
99 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
101 Conflicts: glibc < 2.2
103 %define __find_provides %{SOURCE4}
104 %define _binary_payload w9.gzdio
106 %define py_ver %(echo `python -c "import sys; print sys.version[:3]"`)
107 %define py_prefix %(echo `python -c "import sys; print sys.prefix"`)
108 %define py_libdir %{py_prefix}/lib/python%{py_ver}
109 %define py_sitedir %{py_libdir}/site-packages
110 %define py_dyndir %{py_libdir}/lib-dynload
111 %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, '.')"`)
114 RPM is a powerful package manager, which can be used to build,
115 install, query, verify, update, and uninstall individual software
116 packages. A package consists of an archive of files, and package
117 information, including name, version, and description.
120 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
121 Installation, Anfrage, Verifizierung, Aktualisierung und
122 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
123 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
127 RPM es un poderoso administrador de paquetes, que puede ser usado para
128 construir, instalar, pesquisar, verificar, actualizar y desinstalar
129 paquetes individuales de software. Un paquete consiste en un
130 almacenaje de archivos, y información sobre el paquete, incluyendo
131 nombre, versión y descripción.
134 RPM jest doskona³ym mened¿erem pakietów. Dziêki niemu bêdziesz móg³
135 przebudowaæ, zainstalowaæ czy zweryfikowaæ dowolny pakiet. Informacje
136 dotycz±ce ka¿dego pakietu, takie jak jego opis, lista plików
137 wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
138 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
139 odpytywania programu rpm.
141 %description -l pt_BR
142 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
143 construir, instalar, pesquisar, verificar, atualizar e desinstalar
144 pacotes individuais de software. Um pacote consiste de um conjunto de
145 arquivos e informações adicionais, incluindo nome, versão e descrição
146 do pacote, permissões dos arquivos, etc.
149 Summary: Header files and libraries
150 Summary(de): Header-Dateien uns Libraries
151 Summary(es): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
152 Summary(pl): Pliki nag³ówkowe i biblioteki statyczne
153 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
154 Group: Development/Libraries
155 Requires: %{name} = %{version}
159 The RPM packaging system includes a C library that makes it easy to
160 manipulate RPM packages and databases. It is intended to ease the
161 creation of graphical package managers and other tools that need
162 intimate knowledge of RPM packages.
164 %description devel -l de
165 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
166 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
167 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
168 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
170 %description devel -l es
171 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
172 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
173 facilitar la creación de administradores gráficos de paquetes y otras
174 herramientas que necesiten un conocimiento profundo de paquetes RPM.
176 %description devel -l pl
177 System RPM zawiera bibliotekê C, która u³atwia manipulowanie pakietami
178 RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
179 graficznych mened¿erów pakietów oraz innych narzêdzi, które wymagaj±
180 szczegó³owej wiedzy na temat pakietów RPM.
182 %description devel -l pt_BR
183 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
184 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
185 facilitar a criação de gerenciadores gráficos de pacotes e outras
186 ferramentas que precisem de conhecimento profundo de pacotes RPM.
189 Summary: RPM static libraries
190 Summary(de): RPMs statische Libraries
191 Summary(pl): Biblioteki statyczne RPM-a
192 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
193 Group: Development/Libraries
194 Requires: %{name}-devel = %{version}
197 RPM static libraries.
199 %description static -l de
200 RPMs statische Libraries.
202 %description static -l pl
203 Biblioteki statyczne RPM-a.
205 %description static -l pt_BR
206 Bibliotecas estáticas para desenvolvimento.
209 Summary: Additional utilities for managing rpm packages and database
210 Summary(de): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
211 Summary(pl): Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
212 Group: Applications/File
213 Requires: %{name} = %{version}
216 Additional utilities for managing rpm packages and database.
218 %description utils -l de
219 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
221 %description utils -l pl
222 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
225 Summary: Additional utilities for checking perl provides/requires in rpm packages
226 Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
227 Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
228 Group: Applications/File
229 Requires: %{name} = %{version}
230 Requires: perl-modules
233 %description perlprov
234 Additional utilities for checking perl provides/requires in rpm
237 %description perlprov -l de
238 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
240 %description perlprov -l pl
241 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
245 Summary: Python macros, which simplifies creation of rpm packages with Python software
246 Summary(pl): Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
247 Group: Applications/File
248 Requires: %{name} = %{version}
249 Requires: python-modules
251 %description pythonprov
252 Python macros, which simplifies creation of rpm packages with Python
255 %description pythonprov -l pl
256 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
259 %package php-pearprov
260 Summary: Additional utilities for managing rpm packages and database
261 Summary(pl): Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm.
262 Group: Applications/File
263 Requires: %{name} = %{version}
265 %description php-pearprov
266 Additional utilities for checking php pear provides/requires in rpm
269 %description php-pearprov -l pl
270 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
273 %package -n python-rpm
274 Summary: Python interface to RPM library
275 Summary(pl): Pythonowy interfejs do biblioteki RPM-a
276 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
277 Group: Libraries/Python
278 Requires: %{name} = %{version}
279 %pyrequires_eq python
280 Obsoletes: rpm-python
282 %description -n python-rpm
283 The rpm-python package contains a module which permits applications
284 written in the Python programming language to use the interface
285 supplied by RPM (RPM Package Manager) libraries.
287 This package should be installed if you want to develop Python
288 programs that will manipulate RPM packages and databases.
290 %description -n python-rpm -l pl
291 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
292 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
294 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
295 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
297 %description -n python-rpm -l pt_BR
298 O pacote rpm-python contém um módulo que permite que aplicações
299 escritas em Python utilizem a interface fornecida pelas bibliotecas
300 RPM (RPM Package Manager).
302 Esse pacote deve ser instalado se você quiser desenvolver programas em
303 Python para manipular pacotes e bancos de dados RPM.
306 Summary: Scripts for building binary RPM packages
307 Summary(de): Scripts fürs Bauen binärer RPM-Pakete
308 Summary(pl): Skrypty pomocnicze do budowania binarnych RPM-ów
309 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
310 Group: Applications/File
311 Requires: %{name} = %{version}
316 Requires: file >= 3.31
320 Requires: gcc >= 3.0.3
324 Requires: glibc-devel
329 Requires: popt >= 1.6.2-2
336 Scripts for building binary RPM packages.
338 %description build -l de
339 Scripts fürs Bauen binärer RPM-Pakete.
341 %description build -l pl
342 Skrypty pomocnicze do budowania binarnych RPM-ów.
344 %description build -l pt_BR
345 Este pacote contém scripts e programas executáveis que são usados para
346 construir pacotes usando o RPM.
397 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
398 cp -f platform.in macros.pld.in
399 install %{SOURCE5} macros.perl.in
400 install %{SOURCE13} macros.python.in
401 install %{SOURCE21} macros.php.in
402 install %{SOURCE6} scripts/find-perl-provides
403 install %{SOURCE7} scripts/find-perl-requires
404 install %{SOURCE9} scripts/find-lang.sh
405 install %{SOURCE17} scripts/php.prov.in
406 install %{SOURCE18} scripts/php.req.in
407 install %{SOURCE19} scripts/find-php-provides
408 install %{SOURCE20} scripts/find-php-requires
412 mv -f perl.req perl.req.in
413 mv -f perl.prov perl.prov.in)
418 # generate Group translations to *.po
419 awk -f %{SOURCE14} %{SOURCE1}
423 libtoolize --force --copy
431 libtoolize --force --copy
437 # ugly workaround for automake
438 sed -e 's#cpio.c $(DBLIBOBJS) depends.c#cpio.c depends.c#g' \
439 lib/Makefile.am > lib/Makefile.am.new
440 mv -f lib/Makefile.am.new lib/Makefile.am
442 sed -e 's#cpio.c depends.c#cpio.c $(DBLIBOBJS) depends.c#g' \
443 lib/Makefile.in > lib/Makefile.in.new
444 mv -f lib/Makefile.in.new lib/Makefile.in
446 sed -e 's#python1.5#python%{py_ver}#g' \
447 python/Makefile.in > python/Makefile.in.new
448 mv -f python/Makefile.in.new python/Makefile.in
450 # config.guess doesn't handle athlon, so we have to change it by hand.
451 # rpm checks for CPU type at runtime, but it looks better
452 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' macros.in | \
453 sed 's|@host_cpu@|%{_target_cpu}|' > macros.tmp
454 mv -f macros.tmp macros.in
458 --enable-v1-packages \
462 %{__make} %{?_without_static:rpm_LDFLAGS="\\$(myLDFLAGS)"}
465 rm -rf $RPM_BUILD_ROOT
468 DESTDIR=$RPM_BUILD_ROOT \
469 pkgbindir="%{_bindir}"
471 install macros.perl $RPM_BUILD_ROOT%{_libdir}/rpm/macros.perl
472 install macros.python $RPM_BUILD_ROOT%{_libdir}/rpm/macros.python
473 install macros.php $RPM_BUILD_ROOT%{_libdir}/rpm/macros.php
475 install %{SOURCE1} doc/manual/groups
476 install %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/rpm/install-build-tree
477 install %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/rpm/find-rpm-provides
478 install %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/rpm/find-spec-bcond
479 install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/rpm/find-provides
480 install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/rpm/find-requires
481 install %{SOURCE15} $RPM_BUILD_ROOT%{_libdir}/rpm/compress-doc
482 install %{SOURCE16} $RPM_BUILD_ROOT%{_libdir}/rpm/check-files
483 install scripts/find-php* $RPM_BUILD_ROOT%{_libdir}/rpm/
484 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_libdir}/rpm/
486 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
488 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
489 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
490 # customized rpm macros - global for host
492 #%%_install_langs pl_PL:en_US
499 rm -rf $RPM_BUILD_ROOT
501 %post -p /sbin/ldconfig
502 %postun -p /sbin/ldconfig
504 %files -f %{name}.lang
505 %defattr(644,root,root,755)
506 %doc RPM-PGP-KEY CHANGES doc/manual/[a-z]*
508 %attr(755,root,root) /bin/rpm
509 %attr(755,root,root) %{_bindir}/rpmdb
510 %attr(755,root,root) %{_bindir}/rpmquery
511 %attr(755,root,root) %{_bindir}/rpmsign
512 %attr(755,root,root) %{_bindir}/rpmverify
513 %attr(755,root,root) %{_libdir}/rpm/rpmdb
514 %attr(755,root,root) %{_libdir}/rpm/rpmq
515 %attr(755,root,root) %{_libdir}/rpm/rpmk
516 %attr(755,root,root) %{_libdir}/rpm/rpmv
517 %attr(755,root,root) %{_libdir}/librpm*.so.*.*
519 %dir %{_sysconfdir}/rpm
520 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
522 %{_mandir}/man8/rpm.8*
523 %lang(fr) %{_mandir}/fr/man8/rpm.8*
524 %lang(ja) %{_mandir}/ja/man8/rpm.8*
525 %lang(ko) %{_mandir}/ko/man8/rpm.8*
526 %lang(pl) %{_mandir}/pl/man8/rpm.8*
527 %lang(ru) %{_mandir}/ru/man8/rpm.8*
528 %lang(sk) %{_mandir}/sk/man8/rpm.8*
533 %doc %attr(755,root,root) %{_libdir}/rpm/convertrpmrc.sh
536 %{_libdir}/rpm/rpmpopt*
537 %{_libdir}/rpm/macros
538 %{_libdir}/rpm/noarch-linux
539 %{_libdir}/rpm/noarch-pld-linux
540 %ifarch i386 i486 i586 i686 athlon
542 %{_libdir}/rpm/athlon*
544 %ifarch sparc sparc64
545 %{_libdir}/rpm/sparc*
548 %{_libdir}/rpm/alpha*
556 %defattr(644,root,root,755)
557 %attr(755,root,root) %{_bindir}/rpmbuild
558 %attr(755,root,root) %{_bindir}/rpme
559 %attr(755,root,root) %{_bindir}/rpmi
560 %attr(755,root,root) %{_bindir}/rpmu
561 %attr(755,root,root) %{_libdir}/rpm/find-requires
562 %attr(755,root,root) %{_libdir}/rpm/find-provides
563 %attr(755,root,root) %{_libdir}/rpm/find-rpm-provides
564 %attr(755,root,root) %{_libdir}/rpm/find-spec-bcond
565 %attr(755,root,root) %{_libdir}/rpm/find-lang.sh
566 %attr(755,root,root) %{_libdir}/rpm/mkinstalldirs
567 %attr(755,root,root) %{_libdir}/rpm/config.*
568 %attr(755,root,root) %{_libdir}/rpm/getpo.sh
569 %attr(755,root,root) %{_libdir}/rpm/install-build-tree
570 %attr(755,root,root) %{_libdir}/rpm/brp-*
571 %attr(755,root,root) %{_libdir}/rpm/check-prereqs
572 %attr(755,root,root) %{_libdir}/rpm/check-files
573 %attr(755,root,root) %{_libdir}/rpm/compress-doc
574 %attr(755,root,root) %{_libdir}/rpm/cpanflute
575 %attr(755,root,root) %{_libdir}/rpm/http.req
576 %attr(755,root,root) %{_libdir}/rpm/magic.*
577 %attr(755,root,root) %{_libdir}/rpm/rpmdiff*
578 %attr(755,root,root) %{_libdir}/rpm/u_pkg.sh
579 %attr(755,root,root) %{_libdir}/rpm/vpkg-provides.sh
580 %attr(755,root,root) %{_libdir}/rpm/vpkg-provides2.sh
581 %attr(755,root,root) %{_libdir}/rpm/rpmb
582 %attr(755,root,root) %{_libdir}/rpm/rpmi
583 %attr(755,root,root) %{_libdir}/rpm/rpmt
584 %attr(755,root,root) %{_libdir}/rpm/rpme
585 %attr(755,root,root) %{_libdir}/rpm/rpmu
588 %defattr(644,root,root,755)
590 %attr(755,root,root) %{_libdir}/librpm*.la
591 %attr(755,root,root) %{_libdir}/librpm*.so
594 %defattr(644,root,root,755)
598 %defattr(644,root,root,755)
599 %attr(755,root,root) %{_bindir}/gendiff
600 %attr(755,root,root) %{_bindir}/javadeps
601 %attr(755,root,root) %{_bindir}/rpm2cpio
603 %{_mandir}/man8/rpm2cpio.8*
605 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
606 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
607 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
608 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
611 %defattr(644,root,root,755)
612 %attr(755,root,root) %{_libdir}/rpm/perl*
613 %attr(755,root,root) %{_libdir}/rpm/find-perl-*
614 %attr(755,root,root) %{_libdir}/rpm/find-*.perl
615 %attr(755,root,root) %{_libdir}/rpm/find-prov.pl
616 %attr(755,root,root) %{_libdir}/rpm/find-req.pl
617 %attr(755,root,root) %{_libdir}/rpm/get_magic.pl
619 %{_libdir}/rpm/macros.perl
622 %defattr(644,root,root,755)
623 %{_libdir}/rpm/macros.python
626 %defattr(644,root,root,755)
627 %attr(755,root,root) %{_libdir}/rpm/php*
628 %attr(755,root,root) %{_libdir}/rpm/find-php*
629 %{_libdir}/rpm/macros.php
632 %defattr(755,root,root,755)