diff --git a/python-distorm3.spec b/python-distorm3.spec index 7d30932..e107813 100644 --- a/python-distorm3.spec +++ b/python-distorm3.spec @@ -30,7 +30,6 @@ BuildRequires: unzip BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif %description @@ -45,7 +44,7 @@ CFLAGS="%{optflags}" python setup.py build %install python setup.py install --root=%{buildroot} --prefix=%{_prefix} -%ifarch x86_64 ppc64 +%ifarch x86_64 ppc64 && 0%{?suse_version} && 0%{?suse_version} > 1110 install -d %{buildroot}%{python_sitearch} mv %{buildroot}%{python_sitelib}/* %{buildroot}%{python_sitearch} %endif