diff --git a/python-ply.spec b/python-ply.spec index f327fb3..4b31f45 100644 --- a/python-ply.spec +++ b/python-ply.spec @@ -30,6 +30,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %py_requires +%else +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif %if 0%{?suse_version} > 1110 || 0%{?fedora} > 12 || 0%{?mdkversion} BuildArch: noarch