!4 remove python2-paste subpackage

From: @jinzhimin369
Reviewed-by: @zengwefeng
Signed-off-by: @zengwefeng
This commit is contained in:
openeuler-ci-bot 2020-11-10 11:45:50 +08:00 committed by Gitee
commit 555aec800e

View File

@ -1,6 +1,6 @@
Name: python-paste
Version: 2.0.3
Release: 11
Release: 12
Summary: Tools for using a Web Server Gateway Interface stack
License: MIT and ZPLv2.0 and Python and (AFL or MIT) and (MIT or ASL 2.0)
@ -10,8 +10,7 @@ Source0: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{v
Patch0: python37.patch
BuildArch: noarch
BuildRequires: python2-pyOpenSSL python2-tempita python2-devel python2-setuptools
BuildRequires: python2-six python2-nose python3-devel python3-nose
BuildRequires: python3-devel python3-nose
BuildRequires: python3-pyOpenSSL python3-setuptools python3-six python3-tempita
%description
@ -19,19 +18,6 @@ Paste provides several pieces of "middleware" (or filters) that can be nested
to build web applications. Each piece of middleware uses the WSGI (PEP 333)
interface, and should be compatible with other middleware based on those interfaces.
%package -n python2-paste
Summary: Tools for using a Web Server Gateway Interface stack
%{?python_provide:%python_provide python2-paste}
Requires: python2-pyOpenSSL python2-tempita
Requires: python2-setuptools python2-six
%description -n python2-paste
Paste provides several pieces of "middleware" (or filters) that can be nested
to build web applications. Each piece of middleware uses the WSGI (PEP 333)
interface, and should be compatible with other middleware based on those interfaces.
%package -n python3-paste
Summary: Tools for using a Web Server Gateway Interface stack
@ -57,38 +43,15 @@ pushd docs
rm StyleGuide.txt
popd
rm -rf %{py3dir}
cp -a . %{py3dir}
%build
%{__python2} setup.py build
pushd %{py3dir}
%{__python3} setup.py build
popd
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
pushd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot}
popd
%check
#export PYTHONPATH=$(pwd)
#nosetests-%{python2_version} -e '.*test_paste_website'
#pushd %{py3dir}
#export PYTHONPATH=$(pwd)
#nosetests-%{python3_version} -e '.*test_paste_website'
#popd
%files -n python2-paste
%defattr(-,root,root)
%license docs/license.txt
%{python2_sitelib}/paste
%{python2_sitelib}/Paste-%{version}-py%{python2_version}.egg-info
%{python2_sitelib}/Paste-%{version}-py%{python2_version}-nspkg.pth
%files -n python3-paste
%defattr(-,root,root)
@ -102,6 +65,9 @@ popd
%doc docs/*
%changelog
* Fri Oct 30 2020 jinzhimin <jinzhimin2@huawei.com> - 2.0.3-12
- remove python2-paste subpackage
* Wed Jun 24 2020 wangye <wangye70@huawei.com> - 2.0.3-11
- Type:bugfix
- Id:NA