forked from pool/python-WebOb
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebOb?expand=0&rev=45
83 lines
2.4 KiB
RPMSpec
83 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-WebOb
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define oldpython python
|
|
Name: python-WebOb
|
|
Version: 1.7.4
|
|
Release: 0
|
|
Summary: WSGI request and response object
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: http://webob.org/
|
|
Source: https://pypi.io/packages/source/W/WebOb/WebOb-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: python-rpm-macros
|
|
# Documentation requirements:
|
|
BuildRequires: python3-Sphinx
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%ifpython2
|
|
Obsoletes: %{oldpython}-webob < %{version}
|
|
Provides: %{oldpython}-webob = %{version}
|
|
%endif
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%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 python-WebOb-doc
|
|
Summary: WSGI request and response object - Documentation
|
|
Group: Documentation/HTML
|
|
Provides: %{python_module WebOb-doc = %{version}}
|
|
|
|
%description -n python-WebOb-doc
|
|
This package contains documentation files for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n WebOb-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%check
|
|
%python_exec setup.py test
|
|
|
|
%files %python_files
|
|
%defattr(-,root,root,-)
|
|
%doc docs/license.txt
|
|
%{python_sitelib}/*
|
|
|
|
%files -n python-WebOb-doc
|
|
%defattr(-,root,root,-)
|
|
%doc build/sphinx/html
|
|
|
|
%changelog
|