%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %global upstream_name redis Name: python-%{upstream_name} Version: 2.7.6 Release: 1%{?dist} Summary: A Python client for redis Group: Development/Languages License: MIT URL: http://github.com/andymccurdy/redis-py Source0: http://pypi.python.org/packages/source/r/redis/redis-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-py %description This is a Python interface to the Redis key-value store. %prep %setup -q -n %{upstream_name}-%{version} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} %clean rm -rf %{buildroot} %check %{__python} setup.py test %files %defattr(-,root,root,-) %doc CHANGES LICENSE README.md %{python_sitelib}/%{upstream_name} %{python_sitelib}/%{upstream_name}-%{version}-*.egg-info %changelog * Sat Jul 27 2013 Luke Macken - 2.7.6-1 - Update to 2.7.6 - Run the test suite * Thu Feb 14 2013 Fedora Release Engineering - 2.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Dec 27 2012 Silas Sewell - 2.7.2-1 - Update to 2.7.2 * Sat Jul 21 2012 Fedora Release Engineering - 2.4.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 2.4.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Jul 24 2011 Silas Sewell - 2.4.9-1 - Update to 2.4.9 * Sun Mar 27 2011 Silas Sewell - 2.2.4-1 - Update to 2.2.4 * Wed Feb 09 2011 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Sep 04 2010 Silas Sewell - 2.0.0-1 - Initial build