!8 Add python2 subpackage for python-webtest build

From: @wk333 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-10-13 07:47:55 +00:00 committed by Gitee
commit 8cc96643f8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: python-WSGIProxy2 Name: python-WSGIProxy2
Version: 0.4.6 Version: 0.4.6
Release: 2 Release: 3
Summary: WSGI Proxy that supports several HTTP backends Summary: WSGI Proxy that supports several HTTP backends
License: MIT License: MIT
URL: https://github.com/gawel/WSGIProxy2/ URL: https://github.com/gawel/WSGIProxy2/
@ -19,21 +19,40 @@ Requires: python3-webob, python3-six
%description -n python3-WSGIProxy2 %description -n python3-WSGIProxy2
WSGI Proxy that supports several HTTP backends. WSGI Proxy that supports several HTTP backends.
%package -n python2-WSGIProxy2
%{?python_provide:%python_provide python2-WSGIProxy2}
Summary: WSGI Proxy that supports several HTTP backends
BuildRequires: python2-devel, python2-setuptools
Requires: python2-webob, python2-six
%description -n python2-WSGIProxy2
WSGI Proxy that supports several HTTP backends
%prep %prep
%autosetup -n WSGIProxy2-%{version} -p1 %autosetup -n WSGIProxy2-%{version} -p1
rm -rf WSGIProxy2.egg-info rm -rf WSGIProxy2.egg-info
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%files -n python3-WSGIProxy2 %files -n python3-WSGIProxy2
%doc README_fixt.py README.rst %doc README_fixt.py README.rst
%{python3_sitelib}/* %{python3_sitelib}/*
%files -n python2-WSGIProxy2
%doc README_fixt.py README.rst
%{python2_sitelib}/*
%changelog %changelog
* Fri Oct 13 2023 wangkai <13474090681@163.com> - 0.4.6-3
- Add python2 subpackage for python-webtest build
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 0.4.6-2 * Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 0.4.6-2
- remove python2 dependency - remove python2 dependency