Add a tests conditional
[skip changelog]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user