python-webob/python-webob.spec

65 lines
1.8 KiB
RPMSpec
Raw Normal View History

2020-02-17 16:47:06 +08:00
Name: python-webob
Version: 1.8.7
2022-03-02 18:08:23 +08:00
Release: 2
2020-02-17 16:47:06 +08:00
Summary: WSGI request and response object
License: MIT
URL: http://pythonpaste.org/webob/
Source0: https://files.pythonhosted.org/packages/source/W/WebOb/WebOb-%{version}.tar.gz
2022-03-02 18:33:04 +08:00
Patch0001: Adapt_py310.patch
2020-02-17 16:47:06 +08:00
BuildArch: noarch
2022-03-02 18:08:23 +08:00
BuildRequires: python3-devel, python3-pytest
2020-02-17 16:47:06 +08:00
%description
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
%{?python_provide:%python_provide python3-webob}
Summary: WSGI request and response object
Requires: python3
Provides: python3-webob1.2 = %{version}-%{release}
Obsoletes: python3-webob1.2 < 1.2.3-7
%description -n python3-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.
%prep
%autosetup -n WebOb-%{version} -p1
rm -rf tests/performance_test.py
rm -rf docs/_static/.empty
mv docs/license.txt license.txt
%build
%py3_build
%install
%py3_install
%check
export PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib}
py.test-3 tests
%files -n python3-webob
%license license.txt
%doc docs/*
%{python3_sitelib}/*
%changelog
2022-03-02 18:08:23 +08:00
* Wed Mar 02 2022 zhaoshuang <zhaoshuang@uniontech.com> - 1.8.7-2
- remove some unnecessary buildrequirements
* Thu Aug 05 2021 liusheng <liusheng2048@gmail.com> - 1.8.7-1
- Upgrade to version 1.8.7
2020-10-29 14:49:18 +08:00
* Thu Oct 29 2020 xinghe <xinghe1@huawei.com> - 1.8.2-4
- remove python2 dependency
2020-02-17 16:47:06 +08:00
* Fri Feb 14 2020 Ruijun Ge <geruijun@huawei.com> - 1.8.2-3
- init package