diff --git a/python-sphinxcontrib-qthelp.spec b/python-sphinxcontrib-qthelp.spec index 20fdb3d..5c2c627 100644 --- a/python-sphinxcontrib-qthelp.spec +++ b/python-sphinxcontrib-qthelp.spec @@ -1,3 +1,5 @@ +%bcond tests 1 + %global pypi_name sphinxcontrib-qthelp Name: python-sphinxcontrib-qthelp @@ -25,7 +27,7 @@ sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document. %generate_buildrequires -%pyproject_buildrequires -x test, -x standalone +%pyproject_buildrequires %{?with_tests: -x test, -x standalone} %prep %autosetup -p1 -n sphinxcontrib_qthelp-%{version} @@ -59,7 +61,9 @@ popd %check +%if %{with tests} %pytest +%endif %files -n python%{python3_pkgversion}-sphinxcontrib-qthelp -f sphinxcontrib.qthelp.lang