Add a tests conditional

[skip changelog]
This commit is contained in:
Charalampos Stratakis
2024-04-11 03:51:54 +02:00
parent 434b6f9da3
commit 3fc8a10e64
+5 -1
View File
@@ -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