2011-05-11 00:12:49 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-redis
|
|
|
|
#
|
2019-02-15 11:46:31 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-05-11 00:12:49 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2011-12-12 09:06:34 +00:00
|
|
|
|
2019-03-26 09:41:16 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-05-11 00:12:49 +00:00
|
|
|
#
|
|
|
|
|
2012-09-05 07:51:37 +00:00
|
|
|
|
2017-06-29 15:29:54 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-23 12:14:33 +00:00
|
|
|
Name: python-redis
|
2019-03-26 09:41:16 +00:00
|
|
|
Version: 3.2.1
|
2011-05-11 00:12:49 +00:00
|
|
|
Release: 0
|
2010-03-07 22:28:01 +00:00
|
|
|
Summary: Python client for Redis key-value store
|
|
|
|
License: MIT
|
2011-05-11 00:12:49 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-08-28 14:25:43 +00:00
|
|
|
URL: http://github.com/andymccurdy/redis-py
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/redis/redis-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module mock}
|
2019-02-15 11:46:31 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 2.7.0}
|
2017-06-29 15:29:54 +00:00
|
|
|
BuildRequires: fdupes
|
2018-08-28 14:25:43 +00:00
|
|
|
BuildRequires: psmisc
|
2017-06-29 15:29:54 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-08-28 14:25:43 +00:00
|
|
|
BuildRequires: redis
|
2019-02-15 11:46:31 +00:00
|
|
|
Recommends: python-hiredis >= 0.1.3
|
2018-08-28 14:25:43 +00:00
|
|
|
Requires: redis
|
2010-03-07 22:28:01 +00:00
|
|
|
BuildArch: noarch
|
2017-06-29 15:29:54 +00:00
|
|
|
%python_subpackages
|
2010-03-07 22:28:01 +00:00
|
|
|
|
|
|
|
%description
|
2013-08-05 09:30:25 +00:00
|
|
|
The Python interface to the Redis key-value store.
|
2010-03-07 22:28:01 +00:00
|
|
|
|
|
|
|
%prep
|
2011-09-23 12:14:33 +00:00
|
|
|
%setup -q -n redis-%{version}
|
2010-03-07 22:28:01 +00:00
|
|
|
|
|
|
|
%build
|
2017-06-29 15:29:54 +00:00
|
|
|
%python_build
|
2010-03-07 22:28:01 +00:00
|
|
|
|
|
|
|
%install
|
2017-06-29 15:29:54 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2010-03-07 22:28:01 +00:00
|
|
|
|
2018-08-28 14:25:43 +00:00
|
|
|
%check
|
|
|
|
%{_sbindir}/redis-server --port 6379 &
|
|
|
|
%python_exec setup.py test
|
|
|
|
killall redis-server
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README.rst
|
2011-09-23 12:14:33 +00:00
|
|
|
%{python_sitelib}/*
|
2011-05-11 00:12:49 +00:00
|
|
|
|
|
|
|
%changelog
|