[packages/python-setuptools_git] - disable tests by default, they need git configured
qboosh
qboosh at pld-linux.org
Sun Jul 22 18:50:34 CEST 2018
commit ac8cbf3bfd688049e4affab6c7bc57ca73a0805f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jul 22 18:52:27 2018 +0200
- disable tests by default, they need git configured
python-setuptools_git.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/python-setuptools_git.spec b/python-setuptools_git.spec
index dbeb212..977fe80 100644
--- a/python-setuptools_git.spec
+++ b/python-setuptools_git.spec
@@ -1,6 +1,6 @@
#
# Conditional build:
-%bcond_without tests # unit tests
+%bcond_with tests # unit tests (need git configured)
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
@@ -23,6 +23,9 @@ BuildRequires: python-setuptools
BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-setuptools
%endif
+%if %{with tests}
+BuildRequires: git-core
+%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
Requires: python-modules >= 1:2.5
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-setuptools_git.git/commitdiff/ac8cbf3bfd688049e4affab6c7bc57ca73a0805f
More information about the pld-cvs-commit
mailing list