From 841a6efb96e8a153270c497b05dc2049b62dcbfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toshio=20=E3=81=8F=E3=82=89=E3=81=A8=E3=81=BF?= Date: Wed, 30 Jun 2010 08:34:05 +0000 Subject: [PATCH] Minor spec file updates for new python guidelines. Doesn't affect end users so not rebuilding at this time --- python-dateutil-1.1-x86_64.patch | 11 ----------- python-dateutil.spec | 6 ++++-- 2 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 python-dateutil-1.1-x86_64.patch diff --git a/python-dateutil-1.1-x86_64.patch b/python-dateutil-1.1-x86_64.patch deleted file mode 100644 index 0b46229..0000000 --- a/python-dateutil-1.1-x86_64.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- python-dateutil-1.1/setup.py.x86_64 2006-07-26 14:56:21.000000000 -0600 -+++ python-dateutil-1.1/setup.py 2006-07-26 15:02:00.000000000 -0600 -@@ -9,7 +9,7 @@ - os.unlink("MANIFEST") - - # Get PYTHONLIB with no prefix so --prefix installs work. --PYTHONLIB = join(get_python_lib(standard_lib=1, prefix=''), 'site-packages') -+PYTHONLIB = get_python_lib(prefix='') - ZONEINFO = join("dateutil", "zoneinfo") - - setup(name="python-dateutil", diff --git a/python-dateutil.spec b/python-dateutil.spec index 2de9f42..a9d0da4 100644 --- a/python-dateutil.spec +++ b/python-dateutil.spec @@ -1,4 +1,6 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%if 0%{?fedora} < 13 && 0%{?rhel} < 6 +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%endif Name: python-dateutil Version: 1.4.1 @@ -28,7 +30,7 @@ module available in Python 2.3+. %install rm -rf $RPM_BUILD_ROOT -%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %clean