Fix python3 conditionals on EL 7 and older

This commit is contained in:
Haikel Guemar 2018-02-28 16:17:27 +00:00
parent 825148c4a5
commit 7a296016bc

View File

@ -5,9 +5,6 @@
%bcond_with bootstrap %bcond_with bootstrap
%bcond_without tests %bcond_without tests
%bcond_without python2
%bcond_without python3
%if 0%{?rhel} && 0%{?rhel} <= 7 %if 0%{?rhel} && 0%{?rhel} <= 7
%global _without_python3 1 %global _without_python3 1
# define some macros for RHEL 6 # define some macros for RHEL 6
@ -15,6 +12,11 @@
%global python2_sitelib %python_sitelib %global python2_sitelib %python_sitelib
%endif %endif
# Note(hguemar): overrides must be placed *before* those
# Otherwise it doesn't work
%bcond_without python2
%bcond_without python3
%if %{without bootstrap} %if %{without bootstrap}
%global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl %global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
%if %{with python2} %if %{with python2}