3 %bcond_with tests # perform tests (seem to require redis running)
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
8 Summary: A Python client for redis
13 Group: Development/Languages
14 URL: http://github.com/andymccurdy/redis-py
15 Source0: https://pypi.python.org/packages/source/r/redis/redis-2.10.5.tar.gz
16 # Source0-md5: 3b26c2b9703b4b56b30a1ad508e31083
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.710
20 BuildRequires: python-setuptools
21 %{?with_tests:BuildRequires: python-pytest}
24 BuildRequires: python3-setuptools
25 %{?with_tests:BuildRequires: python3-pytest}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This is a Python interface to the Redis key-value store.
33 %package -n python3-%{module}
34 Summary: A Python client for redis
35 Group: Libraries/Python
36 Requires: python3-modules
38 %description -n python3-%{module}
39 This is a Python interface to the Redis key-value store.
42 %setup -q -n %{module}-%{version}
46 %py_build %{?with_tests:test}
50 %py3_build %{?with_tests:test}
54 rm -rf $RPM_BUILD_ROOT
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
71 %doc CHANGES README.rst
72 %{py_sitescriptdir}/%{module}
73 %{py_sitescriptdir}/%{module}-%{version}-*.egg-info
75 %files -n python3-%{module}
76 %defattr(644,root,root,755)
77 %doc CHANGES README.rst
78 %{py3_sitescriptdir}/%{module}
79 %{py3_sitescriptdir}/%{module}-%{version}-*.egg-info