forked from pool/python-distorm3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=7
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user