diff --git a/python-wheel.spec b/python-wheel.spec index 2cddd04abce366edc1685334da7d5955d277c253..c00e66902a648eb211d6eb9727fcaa6978e2c4fc 100644 --- a/python-wheel.spec +++ b/python-wheel.spec @@ -1,7 +1,14 @@ -%bcond_with bootstrap +%bcond_without bootstrap + +%if %{with bootstrap} +%bcond_with tests +%else +%bcond_without tests +%endif + Name: python-wheel Version: 0.36.2 -Release: 2 +Release: 3 Epoch: 1 Summary: Built-package format for Python License: MIT @@ -18,7 +25,7 @@ compatible install in a way that is very close to the on-disk format. %package -n python3-wheel Summary: Built-package format for Python BuildRequires: python3-devel python3-setuptools -%if %{without bootstrap} +%if %{with tests} BuildRequires: python3-pytest python3-pyxdg %endif %{?python_provide:%python_provide python3-wheel} @@ -57,8 +64,9 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib} %py3_build_wheel install -d %{buildroot}%{_datadir}/python-wheels install -p dist/wheel-%{version}-py2.py3-none-any.whl -t %{buildroot}%{_datadir}/python-wheels +%endif - +%if %{with tests} %check rm setup.cfg PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build @@ -79,6 +87,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build %endif %changelog +* Fri Nov 26 2021 shixuantong - 0.36.2-3 +- disable tests when bootstrapping + * Tue Jul 27 2021 shixuantong - 0.36.2-2 - remove useless BuildRequires