python-redis/python-redis.spec
Denisart Benjamin 8ea62ebe80 Accepting request 208185 from home:posophe:branches:devel:languages:python
- Update to version 2.8
  + redis-py should play better with gevent when a gevent Timeout is raised.
  + Added SENTINEL command
  + Fixed a bug where pipelines could potentially correct a connection
    if the MULTI command generated a ResponseError.
  + Connections now call socket.shutdown() prior to socket.close() to
    ensure communication ends immediately per the note at
    http://docs.python.org/2/library/socket.html#socket.socket.close
  + Lock checks are now based on floats rather than ints.

OBS-URL: https://build.opensuse.org/request/show/208185
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=18
2013-11-24 19:05:59 +00:00

54 lines
1.7 KiB
RPMSpec

#
# spec file for package python-redis
#
# Copyright (c) 2013 SUSE LINUX Products 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-redis
Version: 2.8.0
Release: 0
Url: http://github.com/andymccurdy/redis-py
Summary: Python client for Redis key-value store
License: MIT
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/r/redis/redis-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
Requires: python-py
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
The Python interface to the Redis key-value store.
%prep
%setup -q -n redis-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc CHANGES LICENSE README.rst
%{python_sitelib}/*
%changelog