Use simplified conditional python_sitearch define.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=6
This commit is contained in:
Lars Müller 2012-05-30 18:11:24 +00:00 committed by Git OBS Bridge
parent 2a72fca66f
commit 4c7d1a3456

View File

@ -17,10 +17,7 @@
# norootforbuild
%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
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: libtdb1
BuildRequires: autoconf