[packages/python-cassandra] Updated to 2.5.1-1.

matkor matkor at pld-linux.org
Mon Jul 6 11:19:54 CEST 2015


commit 7ec9e6e1e299fb18fea8caaf2a2d5307daa68517
Author: Mateusz Korniak <matkor at pld-linux.org>
Date:   Mon Jul 6 11:19:40 2015 +0200

    Updated to 2.5.1-1.

 python-cassandra.spec | 68 ++++++++++++++++++++++++++++++++-------------------
 1 file changed, 43 insertions(+), 25 deletions(-)
---
diff --git a/python-cassandra.spec b/python-cassandra.spec
index d2fedd0..bb871d3 100644
--- a/python-cassandra.spec
+++ b/python-cassandra.spec
@@ -3,30 +3,32 @@
 # Conditional build:
 %bcond_with	doc		# don't build doc
 %bcond_without	tests	# do not perform "make test"
-%bcond_with	python2 # CPython 2.x module
+%bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
 %define 	module	cassandra
 Summary:	A Python client driver for Apache Cassandra
 Summary(pl.UTF-8):	Moduł Pythona dla klientów Apache Cassandra
 Name:		python-%{module}
-Version:	2.1.1
-Release:	5
+Version:	2.5.1
+Release:	1
 License:	Apache v2.0
 Group:		Libraries/Python
 Source0:	https://pypi.python.org/packages/source/c/cassandra-driver/cassandra-driver-%{version}.tar.gz
-# Source0-md5:	cb9f9e698cd131dfcbbcdc6339541aa3
+# Source0-md5:	54f6ea0335e27f04fe13eb1036d01944
 Patch0:		%{name}-futures_already_in_py32.patch
 URL:		http://github.com/datastax/python-driver
+BuildRequires:	libev-devel
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
 %if %{with python2}
+## BuildRequires:	python-futures
 BuildRequires:	python-PyYAML
 BuildRequires:	python-devel
 BuildRequires:	python-distribute
-BuildRequires:	python-futures
 BuildRequires:	python-pytz
 BuildRequires:	python-six
+BuildRequires:	python-sure
 Requires:	python-modules
 %endif
 %if %{with python3}
@@ -38,18 +40,23 @@ BuildRequires:	python3-mock
 BuildRequires:	python3-modules
 BuildRequires:	python3-pytz
 BuildRequires:	python3-six >= 1.6
+BuildRequires:	python3-sure
 %endif
 Suggests:	python-blist
 
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-A Python client driver for Apache Cassandra. 
-This driver works exclusively with the Cassandra Query Language v3 (CQL3) and Cassandra's native protocol. 
-Cassandra versions 1.2 through 2.1 are supported.
-The driver supports Python 2.6, 2.7, 3.3, and 3.4.
+A Python client driver for Apache Cassandra. This driver works
+exclusively with the Cassandra Query Language v3 (CQL3) and
+Cassandra's native protocol. Cassandra versions 1.2 through 2.1 are
+supported. The driver supports Python 2.6, 2.7, 3.3, and 3.4.
 
-# %description -l pl.UTF-8
+%description -l pl.UTF-8
+Interfejs klienta dla Apache Cassandra. Działa wyłacznie w oparciu
+Cassandra Query Languages v3 (CQL3) i z natywnym protkołem Cassandry.
+Wspiera Cassndry w wersjach od 1.2 w góre i działa z Pythonem 2.6,
+2.7, 3.3, 3.4 .
 
 %package -n python3-%{module}
 Summary:	A Python client driver for Apache Cassandra
@@ -60,12 +67,17 @@ Suggests:	python3-blist
 
 
 %description -n python3-%{module}
-A Python client driver for Apache Cassandra. 
-This driver works exclusively with the Cassandra Query Language v3 (CQL3) and Cassandra's native protocol. 
-Cassandra versions 1.2 through 2.1 are supported.
-The driver supports Python 2.6, 2.7, 3.3, and 3.4.
+A Python client driver for Apache Cassandra. This driver works
+exclusively with the Cassandra Query Language v3 (CQL3) and
+Cassandra's native protocol. Cassandra versions 1.2 through 2.1 are
+supported. The driver supports Python 2.6, 2.7, 3.3, and 3.4.
+
+%description -n python3-%{module} -l pl.UTF-8
+Interfejs klienta dla Apache Cassandra. Działa wyłacznie w oparciu
+Cassandra Query Languages v3 (CQL3) i z natywnym protkołem Cassandry.
+Wspiera Cassndry w wersjach od 1.2 w góre i działa z Pythonem 2.6,
+2.7, 3.3, 3.4 .
 
-# %description -n python3-%{module} -l pl.UTF-8
 
 %package apidocs
 Summary:	%{module} API documentation
@@ -85,14 +97,12 @@ Dokumentacja API %{module}.
 
 %build
 %if %{with python2}
-# CC/CFLAGS is only for arch packages - remove on noarch packages
 CC="%{__cc}" \
 CFLAGS="%{rpmcflags}" \
 %{__python} setup.py build --build-base build-2 %{?with_tests:test}
 %endif
 
 %if %{with python3}
-# CC/CFLAGS is only for arch packages - remove on noarch packages
 CC="%{__cc}" \
 CFLAGS="%{rpmcflags}" \
 %{__python3} setup.py build --build-base build-3 %{?with_tests:test}
@@ -132,27 +142,35 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-# %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
-# %{py_sitedir}/*.py[co]
-# %attr(755,root,root) %{py_sitedir}/*.so
+%doc README.rst
+%dir %{py_sitedir}/%{module}
+%{py_sitedir}/%{module}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/%{module}/murmur3.so
+%dir %{py_sitedir}/%{module}/cqlengine
+%{py_sitedir}/%{module}/cqlengine/*.py[co]
+%dir %{py_sitedir}/%{module}/io
+%{py_sitedir}/%{module}/io/*.py[co]
+%attr(755,root,root) %{py_sitedir}/%{module}/io/libevwrapper.so
 %if "%{py_ver}" > "2.4"
-# %{py_sitedir}/%{module}-%{version}-py*.egg-info
+%{py_sitedir}/cassandra_driver-%{version}-py*.egg-info
 %endif
-# %{_examplesdir}/%{name}-%{version}
 %endif
 
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc LICENSE
+%doc README.rst
 %dir %{py3_sitedir}/%{module}
 %{py3_sitedir}/%{module}/*.py
-%{py3_sitedir}/%{module}/murmur3.cpython-*.so
+%attr(755,root,root) %{py3_sitedir}/%{module}/murmur3.cpython-*.so
 %{py3_sitedir}/%{module}/__pycache__/
 %dir %{py3_sitedir}/%{module}/io
 %{py3_sitedir}/%{module}/io/*.py
-%{py3_sitedir}/%{module}/io/libevwrapper.cpython-*.so
+%attr(755,root,root) %{py3_sitedir}/%{module}/io/libevwrapper.cpython-*.so
 %{py3_sitedir}/%{module}/io/__pycache__
+%dir %{py3_sitedir}/%{module}/cqlengine
+%{py3_sitedir}/%{module}/cqlengine/*.py
+%{py3_sitedir}/%{module}/cqlengine/__pycache__
 %{py3_sitedir}/cassandra_driver-%{version}-py*.egg-info
 %endif
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-cassandra.git/commitdiff/7ec9e6e1e299fb18fea8caaf2a2d5307daa68517



More information about the pld-cvs-commit mailing list