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
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
@ -25,10 +26,12 @@ BuildRequires: python3-six
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: python3-sphinxcontrib-serializinghtml >= 1.1.3
|
||||
|
||||
%if %{with optional_tests}
|
||||
# Optional tests deps:
|
||||
BuildRequires: python3-sqlalchemy
|
||||
BuildRequires: python3-whoosh
|
||||
BuildRequires: python3-xapian
|
||||
%endif
|
||||
|
||||
# Undeclared but used runtime dependencies
|
||||
# https://github.com/sphinx-doc/sphinxcontrib-websupport/pull/46
|
||||
@ -53,8 +56,10 @@ rm -rf %{pypi_name}.egg-info
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%if %{with optional_tests}
|
||||
%check
|
||||
%pytest -v
|
||||
%endif
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%license LICENSE
|
||||
|
Loading…
Reference in New Issue
Block a user