+# 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(es): Gestor de paquetes RPM
Summary(pt_BR): Gerenciador de pacotes RPM
Name: rpm
Version: 4.0.2
-Release: 48
+Release: 49
License: GPL
Group: Base
Group(de): Gründsätzlich
Patch27: %{name}-hardlink-fixes.patch
Patch28: %{name}-perlprov-regonly.patch
Patch29: %{name}-cxx.patch
+Patch30: %{name}-athlon.patch
+Patch31: %{name}-athlon-identify.patch
Patch37: %{name}-short_circuit.patch
Patch38: %{name}-section_test.patch
URL: http://www.rpm.org/
BuildRequires: db3-static >= 3.1.17-9
BuildRequires: db1-static >= 1.85
BuildRequires: zlib-static
+BuildRequires: glibc-static >= 2.2.0
BuildRequires: zlib-static >= 1.1.4
Obsoletes: rpm-libs
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
RPMs statische Libraries.
%description static -l pl
-%description static l pt_BR
+Biblioteki statyczne RPM-a.
%description static -l pt_BR
Bibliotecas estáticas para desenvolvimento.
Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
-%description python -l pt_BR -n
+%description python -l pt_BR
%description -n python-rpm -l pt_BR
O pacote rpm-python contém um módulo que permite que aplicações
Group(pl): Aplikacje/Pliki
Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
Group: Applications/File
+Requires: %{name} = %{version}
Requires: /bin/id
Requires: awk
Requires: binutils
Requires: diffutils
Requires: file >= 3.31
+Requires: fileutils
+Requires: findutils
+%ifarch athlon
Requires: gcc >= 3.0.3
+%else
Requires: gcc
Requires: glibc-devel
Requires: grep
%patch27 -p1
%patch28 -p1
%patch29 -p1
+%patch30 -p1
+
+%ifarch athlon
+%patch31 -p1
+%endif
%patch31 -p1
%patch36 -p1
%patch37 -p1
sed -e 's#python1.5#python%{py_ver}#g' \
python/Makefile.in > python/Makefile.in.new
sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' macros.in | \
- sed 's|@host_cpu@|%{_target_cpu}|' | \
+ sed 's|@host_cpu@|%{_target_cpu}|' > macros.tmp
# config.guess doesn't handle athlon, so we have to change it by hand.
# rpm checks for CPU type at runtime, but it looks better
sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' macros.in | \
%{_libdir}/rpm/macros.python
%{_libdir}/rpm/noarch-linux
%{_libdir}/rpm/noarch-pld-linux
-%ifarch i386 i486 i586 i686
+%{_libdir}/rpm/rpmrc
%{_libdir}/rpm/rpmpopt*
+%{_libdir}/rpm/macros
%{_libdir}/rpm/noarch-linux
%{_libdir}/rpm/noarch-pld-linux
%ifarch i386 i486 i586 i686 athlon