From 79c917f8f058febc0aaf8314ecced9b16d2bc62c Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Thu, 8 Feb 2007 16:45:53 +0000 Subject: [PATCH] - Use preferred BuildRoot (package review) - Define and use python_sitelib macro (package review) --- .cvsignore | 2 +- pyparted.spec | 13 +++++++++---- sources | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.cvsignore b/.cvsignore index 9836c8b..91d6c68 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pyparted-1.8.3.tar.gz +pyparted-1.8.4.tar.gz diff --git a/pyparted.spec b/pyparted.spec index c49a1e8..8c7f1cf 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -1,12 +1,14 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + Summary: Python module for GNU parted Name: pyparted -Version: 1.8.3 +Version: 1.8.4 Release: 1%{?dist} License: GPL Group: System Environment/Libraries Source0: http://people.redhat.com/dcantrel/%{name}/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel, parted-devel >= 1.8.2 Requires: parted >= 1.8.2 @@ -37,10 +39,13 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README COPYING -%dir %{_libdir}/python?.?/site-packages/ -%{_libdir}/python?.?/site-packages/*.so +%{python_sitelib}/partedmodule.so %changelog +* Thu Feb 08 2007 David Cantrell - 1.8.4-1 +- Use preferred BuildRoot (package review) +- Define and use python_sitelib macro (package review) + * Fri Jan 12 2007 David Cantrell - 1.8.3-1 - Required parted-1.8.2 or higher diff --git a/sources b/sources index 226e1ac..c257140 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -db1f292232211808c362b3d3499278f0 pyparted-1.8.3.tar.gz +a0fd76480f9e3e87eac084525572e61b pyparted-1.8.4.tar.gz