From b1290feb4e132bf6f2581a33d0dd4bda7ae8cd0a Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Thu, 30 Nov 2006 21:04:55 +0000 Subject: [PATCH] - Determine Python version to use in %build so the source RPM is more easily moved between distribution releases. --- .cvsignore | 2 +- pyparted.spec | 11 ++++++++--- sources | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.cvsignore b/.cvsignore index 01e69be..769af97 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pyparted-1.8.0.tar.gz +pyparted-1.8.1.tar.gz diff --git a/pyparted.spec b/pyparted.spec index 8eff76d..d8cf187 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -1,6 +1,6 @@ Summary: Python module for GNU parted Name: pyparted -Version: 1.8.0 +Version: 1.8.1 Release: 1%{?dist} License: GPL Group: System Environment/Libraries @@ -20,10 +20,11 @@ partition tables. %build export CFLAGS="-fPIC -O2 -g2" +PYVER=$(%{__python} -c "import sys; print sys.version[:3]") if [ ! -x configure ]; then - ./autogen.sh --with-python-version=2.4 + ./autogen.sh --with-python-version=$PYVER fi -%configure --with-python-version=2.4 +%configure --with-python-version=$PYVER make %install @@ -40,6 +41,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/python?.?/site-packages/*.so %changelog +* Thu Nov 30 2006 David Cantrell - 1.8.1-1 +- Determine Python version to use in %%build so the source RPM is more + easily moved between distribution releases. + * Fri Nov 17 2006 David Cantrell - 1.8.0-1 - Bump version to 1.8.0 and require parted >= 1.8.0 - Remove python-abi Requires line since rpm handles that automatically diff --git a/sources b/sources index 28179f5..f7ab854 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -24530536b583a451a8ab29292c54f4f0 pyparted-1.8.0.tar.gz +96806167072325ef52eb7bae4db52653 pyparted-1.8.1.tar.gz