Replace run_tests global with tests bcond

epel8
Benjamin A. Beasley 2 months ago
parent 1955652c8e
commit 9f1c33051d

@ -1,4 +1,4 @@
%global run_tests 0
%bcond_with tests
Name: python-zmq
Version: 19.0.0
@ -22,7 +22,7 @@ BuildRequires: zeromq-devel
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-Cython
%if 0%{?run_tests}
%if %{with tests}
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-tornado
%endif
@ -93,7 +93,7 @@ pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitearch}
%check
%if 0%{?run_tests}
%if %{with tests}
# Make sure we import from the install directory
#rm zmq/__*.py
PYTHONPATH=%{buildroot}%{python3_sitearch} \

Loading…
Cancel
Save