diff --git a/python-mccabe.spec b/python-mccabe.spec index cc60313..f57a558 100644 --- a/python-mccabe.spec +++ b/python-mccabe.spec @@ -26,7 +26,12 @@ Source: http://pypi.python.org/packages/source/m/mccabe/mccabe-%{version BuildRequires: python-devel BuildRequires: python-distribute 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()")} +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%else BuildArch: noarch +%endif %description Ned's script to check McCabe complexity.