Fixup python macros, conditionl

epel9
Orion Poplawski 10 years ago
parent 343e1f6a9d
commit 0bf58cb80a

@ -1,5 +1,7 @@
# sitelib for noarch packages # 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} %if 0%{?fedora}
%global with_python3 1 %global with_python3 1
%endif %endif
@ -21,7 +23,7 @@ BuildRequires: python2-devel
BuildRequires: python-sphinx BuildRequires: python-sphinx
%endif %endif
%if %{?with_python3} %if 0%{?with_python3}
BuildRequires: python3-devel BuildRequires: python3-devel
%if 0%{?fedora} %if 0%{?fedora}

Loading…
Cancel
Save