From ec2c5be977b1e637f74c930307b57b07de88cdfb9f80459a7db3d4eca67816fc Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 5 Dec 2011 12:32:19 +0000 Subject: [PATCH] - Only SLES-11 needs %python_sitelib and not noarch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=11 --- python-pip.changes | 5 +++++ python-pip.spec | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/python-pip.changes b/python-pip.changes index 9dbc543..7215db1 100644 --- a/python-pip.changes +++ b/python-pip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 5 12:31:47 UTC 2011 - saschpe@suse.de + +- Only SLES-11 needs %python_sitelib and not noarch + ------------------------------------------------------------------- Thu Sep 22 09:04:39 UTC 2011 - saschpe@suse.de diff --git a/python-pip.spec b/python-pip.spec index e40f62b..89c86a4 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -27,13 +27,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-distribute Requires: python-distribute -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else BuildArch: noarch %endif -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description Pip is a replacement for easy_install. It uses mostly the same techniques for