From c47cc7967d013d7560ca5e0aea2df80735495489daa58e050a2c13730214b750 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 23 Apr 2013 19:40:12 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mccabe?expand=0&rev=2 --- python-mccabe.spec | 5 +++++ 1 file changed, 5 insertions(+) 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.