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