From 9f1c33051dc774627828d12afa7e6881ada568af Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 25 Nov 2024 17:32:12 -0500 Subject: [PATCH] Replace run_tests global with tests bcond --- python-zmq.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-zmq.spec b/python-zmq.spec index a67f122..3b98f90 100644 --- a/python-zmq.spec +++ b/python-zmq.spec @@ -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} \