commit 2b93a7eb1f3105fd9b9e24fac634ae581091445b
Author: Elan Ruusamäe <[email protected]>
Date:   Sat May 23 19:07:00 2015 +0300

    fix tests bcond

 python-websocket-client.spec | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/python-websocket-client.spec b/python-websocket-client.spec
index 27c28e9..00044c6 100644
--- a/python-websocket-client.spec
+++ b/python-websocket-client.spec
@@ -18,12 +18,11 @@ BuildRequires:      rpmbuild(macros) >= 1.219
 %if %{with python2}
 BuildRequires: python
 BuildRequires: python-setuptools
-BuildRequires: python-six
+%{?with_tests:BuildRequires: python-six}
 %endif
 %if %{with python3}
 BuildRequires: python3
 BuildRequires: python3-setuptools
-BuildRequires: python3-six
 %endif
 Requires:      python-six
 BuildArch:     noarch
@@ -60,12 +59,12 @@ cp -a "$@" py3
 %build
 %if %{with python3}
 cd py3
-%{__python3} setup.py build %{?with_test:test}
+%{__python3} setup.py build %{?with_tests:test}
 cd ..
 %endif
 
 %if %{with python2}
-%{__python} setup.py build %{?with_test:test}
+%{__python} setup.py build %{?with_tests:test}
 %endif
 
 %install
================================================================

---- gitweb:

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to