[python-redis/f20] Update to 2.9.1
Christopher Meng
cicku at fedoraproject.org
Fri Feb 14 06:07:49 UTC 2014
commit 2647cc39c922cee24609cfda793094d52d274107
Author: Christopher Meng <i at cicku.me>
Date: Fri Feb 14 14:07:20 2014 +0800
Update to 2.9.1
.gitignore | 1 +
python-redis.spec | 56 ++++++++++++++++++++++++----------------------------
sources | 2 +-
3 files changed, 28 insertions(+), 31 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b5630ef..74baf47 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/redis-2.4.9.tar.gz
/redis-2.7.2.tar.gz
/redis-2.7.6.tar.gz
+/redis-2.9.1.tar.gz
diff --git a/python-redis.spec b/python-redis.spec
index d852b7b..4b02563 100644
--- a/python-redis.spec
+++ b/python-redis.spec
@@ -1,45 +1,38 @@
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-
%global with_python3 1
%global upstream_name redis
Name: python-%{upstream_name}
-Version: 2.7.6
+Version: 2.9.1
Release: 1%{?dist}
-Summary: A Python client for redis
-
-Group: Development/Languages
+Summary: Python 2 client for redis
License: MIT
URL: http://github.com/andymccurdy/redis-py
Source0: http://pypi.python.org/packages/source/r/redis/redis-%{version}.tar.gz
-
BuildArch: noarch
-BuildRequires: python-devel
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
BuildRequires: python-py
BuildRequires: pytest
BuildRequires: redis
+%description
+This is a Python 2 interface to the Redis key-value store.
+
%if 0%{?with_python3}
+%package -n python3-redis
+Summary: Python 3 client for redis
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-py
BuildRequires: python3-pytest
-%endif
-
-%description
-This is a Python interface to the Redis key-value store.
-
-%if 0%{?with_python3}
-%package -n python3-redis
-Summary: A Python3 client for redis
-Group: Development/Languages
%description -n python3-redis
-This is a Python interface to the Redis key-value store.
+This is a Python 3 interface to the Redis key-value store.
%endif
%prep
-%setup -q -n %{upstream_name}-%{version}
+%setup -qn %{upstream_name}-%{version}
+rm -rf %{upstream_name}.egg-info
%if 0%{?with_python3}
rm -rf %{py3dir}
@@ -53,16 +46,16 @@ pushd %{py3dir}
popd
%endif
-%{__python} setup.py build
+%{__python2} setup.py build
%install
%if 0%{?with_python3}
pushd %{py3dir}
-%{__python3} setup.py install --skip-build --root=%{buildroot}
+%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
popd
%endif
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
%check
redis-server &
@@ -72,24 +65,27 @@ pushd %{py3dir}
popd
%endif
-%{__python} setup.py test
+%{__python2} setup.py test
kill %1
%files
-%defattr(-,root,root,-)
-%doc CHANGES LICENSE README.rst
-%{python_sitelib}/%{upstream_name}
-%{python_sitelib}/%{upstream_name}-%{version}-*.egg-info
+%doc CHANGES LICENSE PKG-INFO README.rst
+%{python2_sitelib}/%{upstream_name}
+%{python2_sitelib}/%{upstream_name}-%{version}-py%{python3_version}.egg-info
%if 0%{?with_python3}
%files -n python3-redis
-%defattr(-,root,root,-)
-%doc CHANGES LICENSE README.rst
+%doc CHANGES LICENSE PKG-INFO README.rst
%{python3_sitelib}/%{upstream_name}
-%{python3_sitelib}/%{upstream_name}-%{version}-*.egg-info
+%{python3_sitelib}/%{upstream_name}-%{version}-py%{python2_version}.egg-info
%endif
%changelog
+* Fri Feb 14 2014 Christopher Meng <rpm at cicku.me> - 2.9.1-1
+- Update to 2.9.1
+- Use generated egg instead of bundled egg
+- Cleanup again
+
* Sat Jul 27 2013 Luke Macken <lmacken at redhat.com> - 2.7.6-1
- Update to 2.7.6
- Run the test suite
diff --git a/sources b/sources
index ab7b9de..4aaba6e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e975ea446c40046ef6dc41c98e41a4f8 redis-2.7.6.tar.gz
+1da8ff78be75d7acf5d4684e77fc3606 redis-2.9.1.tar.gz
More information about the scm-commits
mailing list