3713f6a
%if 0%{?fedora} >= 13 || 0%{?el} >= 8
Luke Macken 9394419
%global with_python3 1
3713f6a
%endif
3713f6a
Silas Sewell 2d72d2f
%global upstream_name redis
Silas Sewell 2d72d2f
Silas Sewell 2d72d2f
Name:           python-%{upstream_name}
05db9a8
Version:        2.10.6
5eb67dd
Release:        5%{?dist}
4f6dffa
Summary:        Python 2 interface to the Redis key-value store
Silas Sewell 2d72d2f
License:        MIT
05db9a8
URL:            https://github.com/andymccurdy/redis-py
05db9a8
Source0:        https://github.com/andymccurdy/redis-py/archive/%{version}.tar.gz
Silas Sewell 2d72d2f
BuildArch:      noarch
2647cc3
BuildRequires:  python2-devel
30223f0
BuildRequires:  python2-setuptools
30223f0
BuildRequires:  python2-py
30223f0
BuildRequires:  python2-pytest
Luke Macken dcabdad
BuildRequires:  redis
05db9a8
BuildRequires:  python2-mock
Silas Sewell 2d72d2f
0fe1202
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1591808
0fe1202
BuildRequires:  jemalloc
0fe1202
fb2444a
%global _description\
2647cc3
This is a Python 2 interface to the Redis key-value store.
2647cc3
fb2444a
%description %_description
fb2444a
fb2444a
%package -n python2-redis
fb2444a
Summary: %summary
fb2444a
%{?python_provide:%python_provide python2-redis}
fb2444a
fb2444a
%description -n python2-redis %_description
fb2444a
Luke Macken 9394419
%if 0%{?with_python3}
2647cc3
%package -n     python3-redis
4f6dffa
Summary:        Python 3 interface to the Redis key-value store
Luke Macken 9394419
BuildRequires:  python3-devel
Luke Macken 9394419
BuildRequires:  python3-setuptools
Luke Macken 9394419
BuildRequires:  python3-py
Luke Macken 9073cb1
BuildRequires:  python3-pytest
05db9a8
BuildRequires:  python3-mock
Luke Macken 9394419
Luke Macken 9394419
%description -n python3-redis
2647cc3
This is a Python 3 interface to the Redis key-value store.
Luke Macken 9394419
%endif
Luke Macken 9394419
Silas Sewell 2d72d2f
%prep
05db9a8
%setup -qn redis-py-%{version}
4f6dffa
rm -frv %{upstream_name}.egg-info
Silas Sewell 2d72d2f
5409929
# This test passes locally but fails in koji...
5409929
rm tests/test_commands.py*
5409929
Luke Macken 9394419
%if 0%{?with_python3}
Luke Macken 9394419
rm -rf %{py3dir}
Luke Macken 9394419
cp -a . %{py3dir}
Luke Macken 9394419
%endif
Luke Macken 9394419
Silas Sewell 2d72d2f
%build
Luke Macken 9394419
%if 0%{?with_python3}
Luke Macken 9394419
pushd %{py3dir}
Luke Macken 9394419
%{__python3} setup.py build
Luke Macken 9394419
popd
Luke Macken 9394419
%endif
2647cc3
%{__python2} setup.py build
Silas Sewell 2d72d2f
Silas Sewell 2d72d2f
%install
Luke Macken 9394419
%if 0%{?with_python3}
Luke Macken 9394419
pushd %{py3dir}
2647cc3
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
Luke Macken 9394419
popd
Luke Macken 9394419
%endif
2647cc3
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
Silas Sewell 2d72d2f
Luke Macken cc38e70
%check
Luke Macken dcabdad
redis-server &
Luke Macken 9394419
%if 0%{?with_python3}
Luke Macken 9394419
pushd %{py3dir}
Luke Macken 9394419
%{__python3} setup.py test
Luke Macken 9394419
popd
Luke Macken 9394419
%endif
2647cc3
%{__python2} setup.py test
Luke Macken dcabdad
kill %1
Luke Macken cc38e70
fb2444a
%files -n python2-redis
e1a8f71
%doc CHANGES LICENSE README.rst
2647cc3
%{python2_sitelib}/%{upstream_name}
e1a8f71
%{python2_sitelib}/%{upstream_name}-%{version}-py%{python2_version}.egg-info
Silas Sewell 2d72d2f
Luke Macken 9394419
%if 0%{?with_python3}
Luke Macken 9394419
%files -n python3-redis
e1a8f71
%doc CHANGES LICENSE README.rst
Luke Macken 9394419
%{python3_sitelib}/%{upstream_name}
e1a8f71
%{python3_sitelib}/%{upstream_name}-%{version}-py%{python3_version}.egg-info
Luke Macken 9394419
%endif
Luke Macken 9394419
Silas Sewell 2d72d2f
%changelog
5eb67dd
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.6-5
5eb67dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5eb67dd
5cee93a
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 2.10.6-4
5cee93a
- Rebuilt for Python 3.7
5cee93a
4d69999
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.6-3
4d69999
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4d69999
30223f0
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.10.6-2
30223f0
- Update Python 2 dependency declarations to new packaging standards
30223f0
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
30223f0
05db9a8
* Sun Dec 17 2017 Kevin Fenzi <kevin@scrye.com> - 2.10.6-1
05db9a8
- Update to 2.10.6. Fixes bug #1482297
05db9a8
fb2444a
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.10.5-6
fb2444a
- Python 2 binary package renamed to python2-redis
fb2444a
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
fb2444a
80cbe27
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.5-5
80cbe27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
80cbe27
d3f19fb
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.5-4
d3f19fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d3f19fb
9f96b5b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.10.5-3
9f96b5b
- Rebuild for Python 3.6
9f96b5b
8975390
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.5-2
8975390
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8975390
adca6ae
* Mon Apr 04 2016 Ralph Bean <rbean@redhat.com> - 2.10.5-1
adca6ae
- new version
adca6ae
46f0c12
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.3-5
46f0c12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
46f0c12
9826aa1
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.3-4
9826aa1
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
9826aa1
5409929
* Fri Jul 10 2015 Ralph Bean <rbean@redhat.com> - 2.10.3-3
5409929
- Remove test that fails erroneously in koji.
5409929
380073a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.3-2
380073a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
380073a
a283411
* Thu Aug 21 2014 Christopher Meng <rpm@cicku.me> - 2.10.3-1
a283411
- Update to 2.10.3
a283411
4f6dffa
* Tue Aug 12 2014 Christopher Meng <rpm@cicku.me> - 2.10.2-1
4f6dffa
- Update to 2.10.2
4f6dffa
3713f6a
* Thu Jun 19 2014 Christopher Meng <rpm@cicku.me> - 2.10.1-1
3713f6a
- Update to 2.10.1
3713f6a
f20095c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.1-3
f20095c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f20095c
4416e24
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.9.1-2
4416e24
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
4416e24
2647cc3
* Fri Feb 14 2014 Christopher Meng <rpm@cicku.me> - 2.9.1-1
2647cc3
- Update to 2.9.1
2647cc3
- Use generated egg instead of bundled egg
2647cc3
- Cleanup again
2647cc3
Luke Macken 8b4dc5d
* Sat Jul 27 2013 Luke Macken <lmacken@redhat.com> - 2.7.6-1
Luke Macken 8b4dc5d
- Update to 2.7.6
Luke Macken cc38e70
- Run the test suite
Luke Macken 9394419
- Add a python3 subpackage
Luke Macken 24eb357
- Remove obsolete buildroot tag and cleanup
Luke Macken 8b4dc5d
e3b2aeb
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-2
e3b2aeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e3b2aeb
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