[packages/python-elasticsearch] python-thrift is tests dependency

glen glen at pld-linux.org
Fri May 6 18:11:34 CEST 2016


commit a6c7ab7e2069f7816d7c56205867a2cc091b39a6
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri May 6 19:11:25 2016 +0300

    python-thrift is tests dependency

 python-elasticsearch.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/python-elasticsearch.spec b/python-elasticsearch.spec
index 7d72a99..20ef643 100644
--- a/python-elasticsearch.spec
+++ b/python-elasticsearch.spec
@@ -1,8 +1,12 @@
+#
+# Conditional build:
+%bcond_with	tests	# do not perform "make test"
+
 %define 	module	elasticsearch
 Summary:	Client for Elasticsearch
 Name:		python-%{module}
 Version:	1.0.0
-Release:	1
+Release:	2
 License:	Apache v2.0
 Group:		Libraries/Python
 Source0:	https://pypi.python.org/packages/source/e/elasticsearch/elasticsearch-%{version}.tar.gz
@@ -11,7 +15,9 @@ URL:		https://github.com/elasticsearch/elasticsearch-py
 BuildRequires:	python-setuptools
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-thrift
+%if %{with tests}
+BuildRequires:	python-thrift >= 0.9.1
+%endif
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-elasticsearch.git/commitdiff/a6c7ab7e2069f7816d7c56205867a2cc091b39a6



More information about the pld-cvs-commit mailing list