!4 remove python2 dependency
From: @xinghe_1 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
5b2788a8e2
@ -1,13 +1,12 @@
|
|||||||
Name: python-webob
|
Name: python-webob
|
||||||
Version: 1.8.2
|
Version: 1.8.2
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: WSGI request and response object
|
Summary: WSGI request and response object
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://pythonpaste.org/webob/
|
URL: http://pythonpaste.org/webob/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/W/WebOb/WebOb-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/W/WebOb/WebOb-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-devel, python2-setuptools, python2-nose, python2-pytest
|
|
||||||
BuildRequires: python3-devel, python3-setuptools, python3-nose, python3-pytest
|
BuildRequires: python3-devel, python3-setuptools, python3-nose, python3-pytest
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -16,19 +15,6 @@ and an object to help create WSGI responses. The objects map
|
|||||||
much of the specified behavior of HTTP, including header parsing
|
much of the specified behavior of HTTP, including header parsing
|
||||||
and accessors for other standard parts of the environment.
|
and accessors for other standard parts of the environment.
|
||||||
|
|
||||||
%package -n python2-webob
|
|
||||||
%{?python_provide:%python_provide python2-webob}
|
|
||||||
Summary: WSGI request and response object
|
|
||||||
Requires: python2
|
|
||||||
Provides: python-webob1.2 = %{version}-%{release}
|
|
||||||
Obsoletes: python-webob1.2 < 1.2.3-7
|
|
||||||
|
|
||||||
%description -n python2-webob
|
|
||||||
WebOb provides wrappers around the WSGI request environment,
|
|
||||||
and an object to help create WSGI responses. The objects map
|
|
||||||
much of the specified behavior of HTTP, including header parsing
|
|
||||||
and accessors for other standard parts of the environment.
|
|
||||||
|
|
||||||
%package -n python3-webob
|
%package -n python3-webob
|
||||||
%{?python_provide:%python_provide python3-webob}
|
%{?python_provide:%python_provide python3-webob}
|
||||||
Summary: WSGI request and response object
|
Summary: WSGI request and response object
|
||||||
@ -49,29 +35,23 @@ rm -rf docs/_static/.empty
|
|||||||
mv docs/license.txt license.txt
|
mv docs/license.txt license.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
%py2_install
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONPATH=$RPM_BUILD_ROOT%{python2_sitelib}
|
|
||||||
py.test tests
|
|
||||||
export PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib}
|
export PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib}
|
||||||
py.test-3 tests
|
py.test-3 tests
|
||||||
|
|
||||||
%files -n python2-webob
|
|
||||||
%license license.txt
|
|
||||||
%doc docs/*
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python3-webob
|
%files -n python3-webob
|
||||||
%license license.txt
|
%license license.txt
|
||||||
%doc docs/*
|
%doc docs/*
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 29 2020 xinghe <xinghe1@huawei.com> - 1.8.2-4
|
||||||
|
- remove python2 dependency
|
||||||
|
|
||||||
* Fri Feb 14 2020 Ruijun Ge <geruijun@huawei.com> - 1.8.2-3
|
* Fri Feb 14 2020 Ruijun Ge <geruijun@huawei.com> - 1.8.2-3
|
||||||
- init package
|
- init package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user