[packages/python-appdirs] do not always BuildRequire setuptools

jajcus jajcus at pld-linux.org
Mon Jul 30 09:59:41 CEST 2018


commit 539b1e2d2a3fcae81952879b1f4cf67e2ffbe358
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Mon Jul 30 09:59:15 2018 +0200

    do not always BuildRequire setuptools
    
    python-appdirs is required to build setuptools

 python-appdirs.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/python-appdirs.spec b/python-appdirs.spec
index a7c0f0a..c1ad55b 100644
--- a/python-appdirs.spec
+++ b/python-appdirs.spec
@@ -17,15 +17,19 @@ Source0:	https://files.pythonhosted.org/packages/source/a/appdirs/appdirs-%{vers
 URL:		https://github.com/ActiveState/appdirs
 %if %{with python2}
 BuildRequires:	python-devel >= 1:2.6
-BuildRequires:	python-setuptools
 %if %{with tests} && "%{py_ver}" < "2.7"
 BuildRequires:	python-unittest2
 %endif
+%if %{with tests}
+BuildRequires:	python-setuptools
+%endif
 %endif
 %if %{with python3}
 BuildRequires:	python3-devel >= 1:3.2
+%if %{with tests}
 BuildRequires:	python3-setuptools
 %endif
+%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 BuildArch:	noarch
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-appdirs.git/commitdiff/539b1e2d2a3fcae81952879b1f4cf67e2ffbe358



More information about the pld-cvs-commit mailing list