- 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
This commit is contained in:
Sascha Peilicke 2011-12-05 12:32:19 +00:00 committed by Git OBS Bridge
parent bf413aa296
commit ec2c5be977
2 changed files with 8 additions and 5 deletions

View File

@ -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 Thu Sep 22 09:04:39 UTC 2011 - saschpe@suse.de

View File

@ -27,13 +27,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-distribute BuildRequires: python-distribute
Requires: python-distribute Requires: python-distribute
%if 0%{?suse_version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110
%py_requires %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%if 0%{?suse_version} > 1110 %else
BuildArch: noarch BuildArch: noarch
%endif %endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description %description
Pip is a replacement for easy_install. It uses mostly the same techniques for Pip is a replacement for easy_install. It uses mostly the same techniques for