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:
Lars Müller 2012-05-30 17:04:53 +00:00 committed by Git OBS Bridge
parent 0a1ad3d609
commit 2a72fca66f

View File

@ -17,8 +17,8 @@
# norootforbuild
%if "%{python_sitearch}" == ""
# CentOS and RHEL pre-6 don't know python_sitearch
%if %{undefined 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))")
%endif