diff --git a/python-sh.spec b/python-sh.spec index ada3c2d..19a3360 100644 --- a/python-sh.spec +++ b/python-sh.spec @@ -1,5 +1,5 @@ # -# spec file for package +# spec file for python-sh # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -24,7 +24,11 @@ Url: https://github.com/amoffat/sh Group: Development/Languages/Python Source0: https://github.com/amoffat/sh/archive/%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build +%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 BuildRequires: python-devel BuildRequires: python-setuptools