File python-cassandra-driver.spec of Package python-cassandra-driver

#
# spec file for package python-cassandra-driver
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           python-cassandra-driver
Version:        3.7.1
Release:        0
Summary:        Python driver for Cassandra
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://github.com/datastax/python-driver
Source:         https://pypi.io/packages/source/c/cassandra-driver-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-futures
BuildRequires:  python-setuptools
BuildRequires:  python-six >= 1.6
# test requirements
BuildRequires:  python-PyYAML
BuildRequires:  python-mock
BuildRequires:  python-nose
BuildRequires:  python-pytz
BuildRequires:  python-sure
Requires:       python-futures
Requires:       python-six >= 1.6

%description
A modern, `feature-rich <https://github.com/datastax/python-driver#features>`_ and highly-tunable Python client library for Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using exclusively Cassandra's binary protocol and Cassandra Query Language v3.

The driver supports Python 2.6, 2.7, 3.3, and 3.4.

%prep
%setup -q -n cassandra-driver-%{version}

%build
CFLAGS="%{optflags}" CASS_DRIVER_NO_EXTENSIONS=1 python setup.py build

%install
CASS_DRIVER_NO_EXTENSIONS=1 python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitearch}/*

%changelog
openSUSE Build Service is sponsored by