From 7474a32ffa573d895caf66069c22617a2047756b Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 12:00:08 +0000 Subject: auto-import rpm-4.0.4-0.7 from rpm-4.0.4-0.7.src.rpm --- diff --git a/rpm.spec b/rpm.spec index b40aea7..75c9b54 100644 --- a/rpm.spec +++ b/rpm.spec @@ -1,4 +1,5 @@ -%define with_python_subpackage 1 %{nil} +%define with_python_subpackage 1 +%define with_python_version 2.2 %define with_perl_subpackage 0 %define with_bzip2 1 %{nil} %define with_apidocs 1 %{nil} @@ -19,7 +20,7 @@ Name: rpm %define version 4.0.4 Version: %{version} %{expand: %%define rpm_version %{version}} -Release: 0.6 +Release: 0.7 Group: System Environment/Base Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{rpm_version}.tar.gz Copyright: GPL @@ -28,7 +29,6 @@ Conflicts: patch < 2.5 Prereq: gawk fileutils textutils mktemp shadow-utils %endif Requires: popt = 1.6.4 -ExcludeArch: alpha %if !%{with_internal_db} BuildRequires: db3-devel @@ -46,7 +46,7 @@ BuildRequires: zlib-devel BuildRequires: bzip2 >= 0.9.0c-2 %endif %if %{with_python_subpackage} -BuildRequires: python-devel >= 2.2 +BuildRequires: python-devel >= %{with_python_version} %endif %if %{with_perl_subpackage} BuildRequires: perl >= 0:5.00503 @@ -91,7 +91,7 @@ build packages using RPM. Summary: Python bindings for apps which will manipulate RPM packages. Group: Development/Libraries Requires: rpm = %{rpm_version} -Requires: python >= 2.2 +Requires: python >= %{with_python_version} Requires: popt = 1.6.4 %description python @@ -449,8 +449,8 @@ fi %if %{with_python_subpackage} %files python %defattr(-,root,root) -%{__prefix}/lib/python2.2/site-packages/rpmmodule.so -%{__prefix}/lib/python2.2/site-packages/poptmodule.so +%{__prefix}/lib/python%{with_python_version}/site-packages/rpmmodule.so +%{__prefix}/lib/python%{with_python_version}/site-packages/poptmodule.so %endif %if %{with_perl_subpackage} @@ -514,6 +514,7 @@ fi %changelog * Mon Jan 7 2002 Jeff Johnson - Depends should use CDB if configured. +- autodetect python 1.5/2.2. * Sun Jan 6 2002 Jeff Johnson - handle lazy db open's in chroot with absolute path, not prefix strip. diff --git a/sources b/sources index dd465a9..39a4093 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6e1b1d919bf48ef65858ae29caf4c7ea rpm-4.0.4.tar.gz +f530afa166ebfa5bf06e6face2e57f9b rpm-4.0.4.tar.gz