From 4503ccc94b030cac3eef7f6351438d5c573b5ce0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 17 Jul 2020 09:11:07 +0200 Subject: [PATCH] Add condition --- python-msgpack.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python-msgpack.spec b/python-msgpack.spec index 22980a7..c9992de 100644 --- a/python-msgpack.spec +++ b/python-msgpack.spec @@ -1,4 +1,5 @@ %global srcname msgpack +%bcond_with tests Name: python-%{srcname} Version: 1.0.0 @@ -45,10 +46,12 @@ rm -rf test/test_timestamp.py %install %py3_install +%if %{with network} %check PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v test \ -k "not test_unicode and not test_read_array_header and not test_partialdata \ and not test_read_map_header and not test_issue124" +%endif %files -n python%{python3_pkgversion}-%{srcname} %doc README.md