From 5df9f91cbea4dda2cdc90001d2e3dfbe67c4a85a Mon Sep 17 00:00:00 2001 From: Tomas Hrnciar Date: Tue, 27 Apr 2021 14:05:54 +0200 Subject: [PATCH] Add bcond to disable optional tests during bootstrap --- python-sphinxcontrib-websupport.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-sphinxcontrib-websupport.spec b/python-sphinxcontrib-websupport.spec index 485b288..d0054f7 100644 --- a/python-sphinxcontrib-websupport.spec +++ b/python-sphinxcontrib-websupport.spec @@ -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