!7 remove python2 dependency
From: @xinghe_1 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
1ef96da9d5
@ -1,6 +1,6 @@
|
|||||||
Name: python-memcached
|
Name: python-memcached
|
||||||
Version: 1.58
|
Version: 1.58
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A Python memcached client library
|
Summary: A Python memcached client library
|
||||||
License: Python
|
License: Python
|
||||||
URL: https://github.com/linsomniac/python-memcached
|
URL: https://github.com/linsomniac/python-memcached
|
||||||
@ -8,12 +8,10 @@ Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
%bcond_without python2
|
|
||||||
%bcond_without python3
|
%bcond_without python3
|
||||||
%bcond_without check
|
%bcond_without check
|
||||||
|
|
||||||
|
|
||||||
%{?with_python2:BuildRequires: python2-devel,python2-setuptools,python2-six,python2-nose}
|
|
||||||
%{?with_python3:BuildRequires: python3-devel,python3-setuptools,python3-six,python3-nose}
|
%{?with_python3:BuildRequires: python3-devel,python3-setuptools,python3-six,python3-nose}
|
||||||
|
|
||||||
# Required for running test suite
|
# Required for running test suite
|
||||||
@ -30,23 +28,6 @@ for more information.
|
|||||||
%{desc}
|
%{desc}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-memcached
|
|
||||||
Summary: %{summary}
|
|
||||||
%{?python_provide:%python_provide python2-memcached}
|
|
||||||
|
|
||||||
%description -n python2-memcached
|
|
||||||
%{desc}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-memcached
|
|
||||||
%doc ChangeLog README.md
|
|
||||||
%attr(755,root,root) %{python2_sitelib}/memcache.py
|
|
||||||
%{python2_sitelib}/memcache.py[co]
|
|
||||||
%{python2_sitelib}/python_memcached-%{version}-py*.egg-info/
|
|
||||||
%endif # python2
|
|
||||||
|
|
||||||
%package -n python3-memcached
|
%package -n python3-memcached
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-memcached}
|
%{?python_provide:%python_provide python3-memcached}
|
||||||
@ -66,14 +47,10 @@ Summary: %{summary}
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with python2}
|
|
||||||
%py2_install
|
|
||||||
%endif
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
|
||||||
@ -81,13 +58,13 @@ Summary: %{summary}
|
|||||||
pidfile=$(mktemp)
|
pidfile=$(mktemp)
|
||||||
memcached -d -P $pidfile
|
memcached -d -P $pidfile
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%{__python2} -m nose
|
|
||||||
%endif
|
|
||||||
%{__python3} -m nose
|
%{__python3} -m nose
|
||||||
|
|
||||||
kill $(cat $pidfile)
|
kill $(cat $pidfile)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.58.2
|
||||||
|
- remove python2 dependency
|
||||||
|
|
||||||
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.58.1
|
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.58.1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user