Add bcond to disable optional tests during bootstrap
This commit is contained in:
parent
121c463aac
commit
5df9f91cbe
@ -1,3 +1,4 @@
|
|||||||
|
%bcond_without optional_tests
|
||||||
%global pypi_name sphinxcontrib-websupport
|
%global pypi_name sphinxcontrib-websupport
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
@ -25,10 +26,12 @@ BuildRequires: python3-six
|
|||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
BuildRequires: python3-sphinxcontrib-serializinghtml >= 1.1.3
|
BuildRequires: python3-sphinxcontrib-serializinghtml >= 1.1.3
|
||||||
|
|
||||||
|
%if %{with optional_tests}
|
||||||
# Optional tests deps:
|
# Optional tests deps:
|
||||||
BuildRequires: python3-sqlalchemy
|
BuildRequires: python3-sqlalchemy
|
||||||
BuildRequires: python3-whoosh
|
BuildRequires: python3-whoosh
|
||||||
BuildRequires: python3-xapian
|
BuildRequires: python3-xapian
|
||||||
|
%endif
|
||||||
|
|
||||||
# Undeclared but used runtime dependencies
|
# Undeclared but used runtime dependencies
|
||||||
# https://github.com/sphinx-doc/sphinxcontrib-websupport/pull/46
|
# https://github.com/sphinx-doc/sphinxcontrib-websupport/pull/46
|
||||||
@ -53,8 +56,10 @@ rm -rf %{pypi_name}.egg-info
|
|||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
%if %{with optional_tests}
|
||||||
%check
|
%check
|
||||||
%pytest -v
|
%pytest -v
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user