[packages/python-pyasn1] - distribute not required; tests require unittest2 on python<2.7

qboosh qboosh at pld-linux.org
Wed Mar 9 20:49:33 CET 2016


commit b3a167e9b62c596e496e36413715d820aad7c317
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 9 20:53:19 2016 +0100

    - distribute not required; tests require unittest2 on python<2.7

 python-pyasn1.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/python-pyasn1.spec b/python-pyasn1.spec
index 4f3ecf4..422395f 100644
--- a/python-pyasn1.spec
+++ b/python-pyasn1.spec
@@ -13,18 +13,22 @@ Version:	0.1.9
 Release:	1
 License:	BSD-like
 Group:		Libraries/Python
+#Source0Download: https://pypi.python.org/simple/pyasn1/
 Source0:	https://pypi.python.org/packages/source/p/pyasn1/%{module}-%{version}.tar.gz
 # Source0-md5:	f00a02a631d4016818659d1cc38d229a
 URL:		http://pyasn1.sourceforge.net/
 BuildRequires:	rpmbuild(macros) >= 1.710
 %if %{with python2}
 BuildRequires:	python >= 1:2.5
-BuildRequires:	python-distribute
 BuildRequires:	python-modules >= 1:2.5
+%if %{with tests}
+%if "%{py_ver}" < "2.7"
+BuildRequires:	python-unittest2
+%endif
+%endif
 %endif
 %if %{with python3}
 BuildRequires:	python3 >= 1:3.3
-BuildRequires:	python3-distribute
 BuildRequires:	python3-modules >= 1:3.3
 %endif
 BuildRequires:	rpm-pythonprov
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyasn1.git/commitdiff/b3a167e9b62c596e496e36413715d820aad7c317



More information about the pld-cvs-commit mailing list