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