Drop unused wheel %bcond

This commit is contained in:
Miro Hrončok 2020-10-02 11:57:24 +02:00
parent 696a51ecf3
commit b03bc8ec55

View File

@ -1,8 +1,5 @@
%global pypi_name packaging %global pypi_name packaging
# Specify --without wheel to prevent building the wheel
%bcond_without wheel
# Specify --without docs to prevent the dependency loop on python-sphinx # Specify --without docs to prevent the dependency loop on python-sphinx
%bcond_without docs %bcond_without docs
@ -35,10 +32,8 @@ BuildRequires: python%{python3_pkgversion}-pretend
BuildRequires: python%{python3_pkgversion}-sphinx BuildRequires: python%{python3_pkgversion}-sphinx
%endif %endif
%if %{with wheel}
BuildRequires: python%{python3_pkgversion}-pip BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-wheel BuildRequires: python%{python3_pkgversion}-wheel
%endif
%description %description
python-packaging provides core utilities for Python packages like utilities for python-packaging provides core utilities for Python packages like utilities for
@ -66,11 +61,7 @@ Documentation for python-packaging
rm -rf %{pypi_name}.egg-info rm -rf %{pypi_name}.egg-info
%build %build
%if %{with wheel}
%py3_build_wheel %py3_build_wheel
%else
%py3_build
%endif
%if %{with docs} %if %{with docs}
# generate html docs # generate html docs
@ -82,11 +73,7 @@ rm -rf html/_static/fonts/
%endif %endif
%install %install
%if %{with wheel}
%py3_install_wheel %{python_wheelname} %py3_install_wheel %{python_wheelname}
%else
%py3_install
%endif
%if %{with tests} %if %{with tests}
%check %check