# to build for athlon you need release at least 49
-Summary: Red Hat (and now also PLD) Package Manager
-Summary(de): Red Hat (und jetzt auch PLD) Packet-Manager
+Summary: RPM Package Manager
+Summary(de): RPM Packet-Manager
Summary(es): Gestor de paquetes RPM
-Summary(pl): Aplikacja do zarz±dzania pakietami
+Summary(pl): Aplikacja do zarz±dzania pakietami RPM
Summary(pt_BR): Gerenciador de pacotes RPM
Name: rpm
Version: 4.0.2
-Release: 51
+Release: 57
License: GPL
Group: Base
Source0: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/%{name}-%{version}.tar.gz
Patch30: %{name}-athlon.patch
Patch31: %{name}-athlon-identify.patch
Patch32: %{name}-gettext-in-header.patch
+Patch33: %{name}-perlprov-perl5.6.patch
Patch37: %{name}-short_circuit.patch
Patch38: %{name}-section_test.patch
URL: http://www.rpm.org/
Summary(de): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
Summary(pl): Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
Group: Applications/File
+Requires: %{name} = %{version}
Requires: perl-modules
Requires: findutils
Requires: patch
Requires: popt >= 1.6.2-2
Requires: sed
+Requires: sh-utils
Requires: tar
Requires: textutils
%ifarch athlon
%patch31 -p1
%endif
+
%patch35 -p1
%patch36 -p1
%patch37 -p1
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc RPM-PGP-KEY.gz CHANGES.gz doc/manual/*
+
%attr(755,root,root) /bin/rpm
%attr(755,root,root) %{_bindir}/rpmdb
%attr(755,root,root) %{_bindir}/rpmquery
%endif
%ifarch ppc
%{_libdir}/rpm/ppc*
+%endif
+
+
+%files build
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/rpmbuild
%attr(755,root,root) %{_bindir}/rpme
%attr(755,root,root) %{_libdir}/librpm*.so
%files static
-%attr(755,root,root) %{_bindir}/*
+%defattr(644,root,root,755)
+%{_libdir}/librpm*.a
+
%files utils
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/gendiff
%{_libdir}/rpm/macros.perl
-%defattr(644,root,root,755)
+%files pythonprov
%defattr(644,root,root,755)
%{_libdir}/rpm/macros.python