2011-12-06 12:53:36 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-WebOb
|
|
|
|
|
#
|
2020-03-11 08:56:12 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-12-06 12:53:36 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
2012-01-31 13:46:38 +00:00
|
|
|
|
2019-01-07 09:57:14 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-12-06 12:53:36 +00:00
|
|
|
#
|
2012-09-23 09:24:29 +00:00
|
|
|
|
|
|
|
|
|
2017-05-01 15:33:20 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-05-05 22:00:47 +00:00
|
|
|
%define oldpython python
|
2011-12-06 12:53:36 +00:00
|
|
|
Name: python-WebOb
|
2020-03-11 08:56:12 +00:00
|
|
|
Version: 1.8.6
|
2011-12-06 12:53:36 +00:00
|
|
|
Release: 0
|
2012-06-26 15:26:20 +00:00
|
|
|
Summary: WSGI request and response object
|
2012-01-31 13:46:38 +00:00
|
|
|
License: MIT
|
2012-06-26 15:26:20 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-08-09 06:55:18 +00:00
|
|
|
URL: http://webob.org/
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/W/WebOb/WebOb-%{version}.tar.gz
|
2017-05-01 15:33:20 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2013-03-27 13:24:33 +00:00
|
|
|
# Documentation requirements:
|
2018-08-09 06:55:18 +00:00
|
|
|
BuildRequires: fdupes
|
2017-05-01 15:33:20 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
2018-08-09 06:55:18 +00:00
|
|
|
BuildArch: noarch
|
2017-05-05 22:00:47 +00:00
|
|
|
%ifpython2
|
2018-08-20 15:03:12 +00:00
|
|
|
# We need SSL support
|
|
|
|
|
BuildRequires: %{oldpython}
|
|
|
|
|
Requires: %{oldpython}
|
2017-05-05 22:00:47 +00:00
|
|
|
Obsoletes: %{oldpython}-webob < %{version}
|
|
|
|
|
Provides: %{oldpython}-webob = %{version}
|
|
|
|
|
%endif
|
2017-05-01 15:33:20 +00:00
|
|
|
%python_subpackages
|
2011-12-06 12:53:36 +00: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.
|
|
|
|
|
|
2017-05-01 15:33:20 +00:00
|
|
|
%package -n python-WebOb-doc
|
2012-11-22 15:07:19 +00:00
|
|
|
Summary: WSGI request and response object - Documentation
|
|
|
|
|
Group: Documentation/HTML
|
2017-05-01 15:33:20 +00:00
|
|
|
Provides: %{python_module WebOb-doc = %{version}}
|
2012-11-22 15:07:19 +00:00
|
|
|
|
2017-05-01 15:33:20 +00:00
|
|
|
%description -n python-WebOb-doc
|
2012-11-22 15:07:19 +00:00
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
2011-12-06 12:53:36 +00:00
|
|
|
%prep
|
|
|
|
|
%setup -q -n WebOb-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2017-05-01 15:33:20 +00:00
|
|
|
%python_build
|
2018-08-09 06:55:18 +00:00
|
|
|
PYTHONPATH=./src python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2011-12-06 12:53:36 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-05-01 15:33:20 +00:00
|
|
|
%python_install
|
2018-08-09 06:55:18 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-12-06 12:53:36 +00:00
|
|
|
|
2012-11-22 15:07:19 +00:00
|
|
|
%check
|
2018-08-09 07:00:49 +00:00
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
|
2012-11-22 15:07:19 +00:00
|
|
|
|
2018-08-09 06:55:18 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%license docs/license.txt
|
2018-08-09 07:00:49 +00:00
|
|
|
%doc CHANGES.txt README.rst
|
2011-12-06 12:53:36 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
2017-05-01 15:33:20 +00:00
|
|
|
%files -n python-WebOb-doc
|
2014-09-15 06:55:44 +00:00
|
|
|
%doc build/sphinx/html
|
2012-11-22 15:07:19 +00:00
|
|
|
|
2011-12-06 12:53:36 +00:00
|
|
|
%changelog
|