Bconds everywhere

This commit is contained in:
Miro Hrončok 2018-08-23 13:30:53 +02:00
parent 08231e3800
commit d1872528f7

View File

@ -1,5 +1,5 @@
%global modname six %global modname six
%global build_wheel 1 %bcond_without wheel
%bcond_without tests %bcond_without tests
@ -38,7 +38,7 @@ BuildRequires: python2-pytest
BuildRequires: python2-tkinter BuildRequires: python2-tkinter
%endif %endif
%if 0%{?build_wheel} %if %{with wheel}
BuildRequires: python2-pip BuildRequires: python2-pip
BuildRequires: python2-wheel BuildRequires: python2-wheel
%endif %endif
@ -62,7 +62,7 @@ BuildRequires: python3-pytest
BuildRequires: python3-tkinter BuildRequires: python3-tkinter
%endif %endif
%if 0%{?build_wheel} %if %{with wheel}
BuildRequires: python%{python3_pkgversion}-pip BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-wheel BuildRequires: python%{python3_pkgversion}-wheel
%endif %endif
@ -79,7 +79,7 @@ Python 3 version.
%build %build
%if %{with python2} %if %{with python2}
%if 0%{?build_wheel} %if %{with wheel}
%py2_build_wheel %py2_build_wheel
%else %else
%py2_build %py2_build
@ -87,7 +87,7 @@ Python 3 version.
%endif %endif
%if %{with python3} %if %{with python3}
%if 0%{?build_wheel} %if %{with wheel}
%py3_build_wheel %py3_build_wheel
%else %else
%py3_build %py3_build
@ -97,7 +97,7 @@ Python 3 version.
%install %install
%if %{with python2} %if %{with python2}
%if 0%{?build_wheel} %if %{with wheel}
%py2_install_wheel %{python2_wheelname} %py2_install_wheel %{python2_wheelname}
%else %else
%py2_install %py2_install
@ -105,7 +105,7 @@ Python 3 version.
%endif %endif
%if %{with python3} %if %{with python3}
%if 0%{?build_wheel} %if %{with wheel}
%py3_install_wheel %{python3_wheelname} %py3_install_wheel %{python3_wheelname}
%else %else
%py3_install %py3_install