[packages/python-websocket-client] BR python-backports-ssl_match_hostname for tests

glen glen at pld-linux.org
Sun Mar 20 18:52:46 CET 2016


commit 5a7dcccd1d0f72047477d57877f67fc8eee14089
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 20 19:52:04 2016 +0200

    BR python-backports-ssl_match_hostname for tests

 python-websocket-client.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/python-websocket-client.spec b/python-websocket-client.spec
index e236024..cb4eb0f 100644
--- a/python-websocket-client.spec
+++ b/python-websocket-client.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_with	tests	# do not perform "make test"
+%bcond_without	tests	# do not perform "make test"
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
@@ -19,11 +19,17 @@ BuildRequires:	rpmbuild(macros) >= 1.710
 %if %{with python2}
 BuildRequires:	python
 BuildRequires:	python-setuptools
-%{?with_tests:BuildRequires: python-six}
+%if %{with tests}
+BuildRequires:	python-backports-ssl_match_hostname
+BuildRequires:	python-six
+%endif
 %endif
 %if %{with python3}
 BuildRequires:	python3
 BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-six
+%endif
 %endif
 Requires:	python-six
 BuildArch:	noarch
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-websocket-client.git/commitdiff/5a7dcccd1d0f72047477d57877f67fc8eee14089



More information about the pld-cvs-commit mailing list