- Determine Python version to use in %build so the source RPM is more

easily moved between distribution releases.
This commit is contained in:
David Cantrell 2006-11-30 21:04:55 +00:00
parent 421d70fd19
commit b1290feb4e
3 changed files with 10 additions and 5 deletions

View File

@ -1 +1 @@
pyparted-1.8.0.tar.gz
pyparted-1.8.1.tar.gz

View File

@ -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 <dcantrell@redhat.com> - 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 <dcantrell@redhat.com> - 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

View File

@ -1 +1 @@
24530536b583a451a8ab29292c54f4f0 pyparted-1.8.0.tar.gz
96806167072325ef52eb7bae4db52653 pyparted-1.8.1.tar.gz