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