Silas Sewell 1808886
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Silas Sewell 1808886
Silas Sewell 1808886
%global upstream_name redis
Silas Sewell 1808886
Silas Sewell 1808886
Name:           python-%{upstream_name}
Silas Sewell 1808886
Version:        2.0.0
Silas Sewell 1808886
Release:        1%{?dist}
Silas Sewell 1808886
Summary:        A Python client for redis
Silas Sewell 1808886
Silas Sewell 1808886
Group:          Development/Languages
Silas Sewell 1808886
License:        MIT
Silas Sewell 1808886
URL:            http://github.com/andymccurdy/redis-py
Silas Sewell 1808886
Source0:        http://github.com/downloads/andymccurdy/redis-py/%{upstream_name}-%{version}.tar.gz
Silas Sewell 1808886
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Silas Sewell 1808886
Silas Sewell 1808886
BuildArch:      noarch
Silas Sewell 1808886
BuildRequires:  python-devel
Silas Sewell 1808886
Silas Sewell 1808886
%description
Silas Sewell 1808886
This is a Python interface to the Redis key-value store.
Silas Sewell 1808886
Silas Sewell 1808886
%prep
Silas Sewell 1808886
%setup -q -n %{upstream_name}-%{version}
Silas Sewell 1808886
Silas Sewell 1808886
%build
Silas Sewell 1808886
%{__python} setup.py build
Silas Sewell 1808886
Silas Sewell 1808886
%install
Silas Sewell 1808886
rm -rf %{buildroot}
Silas Sewell 1808886
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
Silas Sewell 1808886
Silas Sewell 1808886
%clean
Silas Sewell 1808886
rm -rf %{buildroot}
Silas Sewell 1808886
Silas Sewell 1808886
%files
Silas Sewell 1808886
%defattr(-,root,root,-)
Silas Sewell 1808886
%doc CHANGES LICENSE README.md
Silas Sewell 1808886
%{python_sitelib}/%{upstream_name}
Silas Sewell 1808886
%{python_sitelib}/%{upstream_name}-%{version}-*.egg-info
Silas Sewell 1808886
Silas Sewell 1808886
%changelog
Silas Sewell 1808886
* Sat Sep 04 2010 Silas Sewell <silas@sewell.ch> - 2.0.0-1
Silas Sewell 1808886
- Initial build