Fixup python macros, conditionl
This commit is contained in:
parent
343e1f6a9d
commit
0bf58cb80a
@ -1,5 +1,7 @@
|
||||
# sitelib for noarch packages
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?__python2: %global __python2 /usr/bin/python2}
|
||||
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python2_version: %global python2_version %(%{__python2} -c "import sys; sys.stdout.write(sys.version[:3])")}
|
||||
%if 0%{?fedora}
|
||||
%global with_python3 1
|
||||
%endif
|
||||
@ -21,7 +23,7 @@ BuildRequires: python2-devel
|
||||
BuildRequires: python-sphinx
|
||||
%endif
|
||||
|
||||
%if %{?with_python3}
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3-devel
|
||||
|
||||
%if 0%{?fedora}
|
||||
|
Loading…
Reference in New Issue
Block a user