Check if python_sitearch is undefined else define it.
OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=5
This commit is contained in:
parent
0a1ad3d609
commit
2a72fca66f
4
tdb.spec
4
tdb.spec
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
%if "%{python_sitearch}" == ""
|
%if %{undefined python_sitearch}
|
||||||
# CentOS and RHEL pre-6 don't know python_sitearch
|
## CentOS and RHEL pre-6 don't know python_sitearch
|
||||||
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1))")
|
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1))")
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user