commit
5e5dc7d380
@ -1,68 +1,46 @@
|
|||||||
Name: python-redis
|
Name: python-redis
|
||||||
Version: 2.10.6
|
Version: 2.10.6
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: The Python interface to the Redis key-value store
|
Summary: The Python interface to the Redis key-value store
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/andymccurdy/redis-py
|
URL: https://github.com/andymccurdy/redis-py
|
||||||
Source0: https://github.com/andymccurdy/redis-py/archive/2.10.6.tar.gz
|
Source0: https://github.com/andymccurdy/redis-py/archive/%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel python2-setuptools python2-py python2-pytest redis python2-mock jemalloc
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Python interface to the Redis key-value store.
|
The Python interface to the Redis key-value store.
|
||||||
|
|
||||||
%package -n python2-redis
|
|
||||||
Summary: The Python2 interface to the Redis key-value store
|
|
||||||
%{?python_provide:%python_provide python2-redis}
|
|
||||||
|
|
||||||
%description -n python2-redis
|
|
||||||
The Python2 interface to the Redis key-value store.
|
|
||||||
|
|
||||||
%package -n python3-redis
|
%package -n python3-redis
|
||||||
Summary: The Python3 interface to the Redis key-value store
|
Summary: The Python3 interface to the Redis key-value store
|
||||||
BuildRequires: python3-devel python3-setuptools python3-py python3-pytest python3-mock
|
BuildRequires: redis python3-devel python3-setuptools python3-py python3-pytest python3-mock
|
||||||
|
|
||||||
%description -n python3-redis
|
%description -n python3-redis
|
||||||
The Python3 interface to the Redis key-value store.
|
The Python3 interface to the Redis key-value store.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n redis-py-2.10.6 -p1
|
%autosetup -n redis-py-%{version} -p1
|
||||||
rm tests/test_commands.py*
|
rm tests/test_commands.py*
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{py3dir}
|
|
||||||
%{__python3} setup.py build
|
%{__python3} setup.py build
|
||||||
cd -
|
|
||||||
%{__python2} setup.py build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{py3dir}
|
|
||||||
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
|
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
|
||||||
cd -
|
|
||||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
redis-server &
|
redis-server &
|
||||||
cd %{py3dir}
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
cd -
|
|
||||||
%{__python2} setup.py test
|
|
||||||
kill %1
|
kill %1
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-redis
|
|
||||||
%doc CHANGES LICENSE README.rst
|
|
||||||
%{python2_sitelib}/redis
|
|
||||||
%{python2_sitelib}/redis-2.10.6-py%{python2_version}.egg-info
|
|
||||||
|
|
||||||
%files -n python3-redis
|
%files -n python3-redis
|
||||||
%doc CHANGES LICENSE README.rst
|
%doc CHANGES LICENSE README.rst
|
||||||
%{python3_sitelib}/redis
|
%{python3_sitelib}/redis
|
||||||
%{python3_sitelib}/redis-2.10.6-py%{python3_version}.egg-info
|
%{python3_sitelib}/redis-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 05 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 2.10.6-7
|
||||||
|
- Remove python2
|
||||||
|
|
||||||
* Mon Jan 6 2020 qinjian <qinjian18@huawei.com> - 2.10.6-6
|
* Mon Jan 6 2020 qinjian <qinjian18@huawei.com> - 2.10.6-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user