2011-12-06 12:53:36 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-WebOb
|
|
|
|
|
#
|
2023-04-21 15:00:36 +00:00
|
|
|
# Copyright (c) 2023 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
|
|
|
|
|
|
|
|
|
2023-04-21 15:00:36 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-12-06 12:53:36 +00:00
|
|
|
Name: python-WebOb
|
2021-03-02 00:33:43 +00:00
|
|
|
Version: 1.8.7
|
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
|
2021-06-24 22:37:45 +00:00
|
|
|
BuildRequires: python3
|
|
|
|
|
Requires: python3
|
|
|
|
|
Obsoletes: python3-webob < %{version}
|
|
|
|
|
Provides: python3-webob = %{version}
|
2017-05-05 22:00:47 +00:00
|
|
|
%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.
|
|
|
|
|
|
2023-04-25 15:50:42 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
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}.
|
2023-04-25 15:50:42 +00:00
|
|
|
%endif
|
2012-11-22 15:07:19 +00:00
|
|
|
|
2011-12-06 12:53:36 +00:00
|
|
|
%prep
|
|
|
|
|
%setup -q -n WebOb-%{version}
|
2021-03-22 14:49:54 +00:00
|
|
|
# gh#Pylons/webob#390 -- Thread.is_alive is present since Python 2.6, Thread.isAlive was removed in 3.9.
|
|
|
|
|
sed -i 's/worker.isAlive/worker.is_alive/' tests/conftest.py
|
2011-12-06 12:53:36 +00:00
|
|
|
|
|
|
|
|
%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
|
2021-03-22 14:49:54 +00:00
|
|
|
%pytest
|
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
|
2021-03-22 14:49:54 +00:00
|
|
|
%{python_sitelib}/webob
|
|
|
|
|
%{python_sitelib}/WebOb-%{version}*-info
|
2011-12-06 12:53:36 +00:00
|
|
|
|
2023-04-25 15:50:42 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
2017-05-01 15:33:20 +00:00
|
|
|
%files -n python-WebOb-doc
|
2023-04-25 15:50:42 +00:00
|
|
|
%endif
|
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
|