diff --git a/python-flake8.spec b/python-flake8.spec index 565522d..2011e0a 100644 --- a/python-flake8.spec +++ b/python-flake8.spec @@ -30,7 +30,12 @@ Requires: python-pyflakes >= 0.6.1 Requires: python-pep8 >= 1.4.3 Requires: python-mccabe >= 0.2 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 Flake8 is a wrapper around these tools: