From 3fc8a10e64a0c529756e4cf581e8ea62c7fd2512 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Thu, 11 Apr 2024 03:51:54 +0200 Subject: [PATCH] Add a tests conditional [skip changelog] --- python-sphinxcontrib-qthelp.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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