2013-04-29 16:06:16 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-waitress
|
|
|
|
#
|
2019-02-11 12:59:55 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-04-29 16:06:16 +02: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.
|
|
|
|
|
2018-12-04 15:13:20 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-06-25 13:52:53 +02:00
|
|
|
#
|
2013-04-29 16:06:16 +02:00
|
|
|
|
|
|
|
|
2018-12-04 18:25:22 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-04-29 16:06:16 +02:00
|
|
|
Name: python-waitress
|
2019-08-30 02:48:54 +02:00
|
|
|
Version: 1.3.1
|
2013-04-29 16:06:16 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Waitress WSGI server
|
2013-06-25 13:52:53 +02:00
|
|
|
License: ZPL-2.1
|
2013-04-29 16:06:16 +02:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 18:25:22 +01:00
|
|
|
URL: https://github.com/Pylons/waitress
|
2017-05-06 14:20:37 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/w/waitress/waitress-%{version}.tar.gz
|
2019-02-26 10:04:29 +01:00
|
|
|
# intersphinx inventories, as fetched with fetch-intersphinx-inventories.sh
|
|
|
|
# https://docs.python.org/3/objects.inv -> python3.inv
|
|
|
|
Source1: python3.inv
|
2019-02-26 10:05:29 +01:00
|
|
|
Source2: fetch-intersphinx-inventories.sh
|
2019-02-11 12:59:55 +01:00
|
|
|
Patch: local-intersphinx-inventories.patch
|
2017-05-06 14:20:37 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-10-17 12:06:16 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-02-11 12:59:55 +01:00
|
|
|
# SECTION documentation requirements
|
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
BuildRequires: python3-docutils
|
|
|
|
BuildRequires: python3-pylons-sphinx-themes
|
|
|
|
# /SECTION
|
2018-12-04 18:25:22 +01:00
|
|
|
BuildArch: noarch
|
2017-05-06 14:20:37 +02:00
|
|
|
%python_subpackages
|
2013-04-29 16:06:16 +02:00
|
|
|
|
|
|
|
%description
|
2019-03-21 08:06:30 +01:00
|
|
|
Waitress is a pure-Python WSGI server. It has no dependencies except
|
|
|
|
ones which live in the Python standard library. It supports HTTP/1.0
|
|
|
|
and HTTP/1.1.
|
2013-04-29 16:06:16 +02:00
|
|
|
|
|
|
|
For more information, see the "docs" directory of the Waitress package or
|
|
|
|
http://docs.pylonsproject.org/projects/waitress/en/latest/ .
|
|
|
|
|
2019-02-11 12:59:55 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
2013-04-29 16:06:16 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n waitress-%{version}
|
2019-02-11 12:59:55 +01:00
|
|
|
%patch -p1
|
|
|
|
cp %{S:1} docs/
|
2013-04-29 16:06:16 +02:00
|
|
|
|
|
|
|
%build
|
2017-05-06 14:20:37 +02:00
|
|
|
%python_build
|
2019-02-11 12:59:55 +01:00
|
|
|
export SPHINXOPTS=-vvv
|
|
|
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2013-04-29 16:06:16 +02:00
|
|
|
|
|
|
|
%install
|
2017-05-06 14:20:37 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-04-29 16:06:16 +02:00
|
|
|
|
2017-05-06 14:20:37 +02:00
|
|
|
%check
|
2019-05-06 13:11:30 +02:00
|
|
|
# Tests require a network connection
|
|
|
|
rm waitress/tests/test_adjustments.py
|
2017-05-06 14:20:37 +02:00
|
|
|
%python_exec setup.py test
|
2013-04-29 16:06:16 +02:00
|
|
|
|
2017-05-06 14:20:37 +02:00
|
|
|
%files %{python_files}
|
2018-12-04 18:25:22 +01:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc COPYRIGHT.txt README.rst
|
2017-05-06 14:20:37 +02:00
|
|
|
%python3_only %{_bindir}/waitress-serve
|
2013-04-29 16:06:16 +02:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
2019-02-11 12:59:55 +01:00
|
|
|
%files %{python_files doc}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc build/sphinx/html
|
|
|
|
|
2013-04-29 16:06:16 +02:00
|
|
|
%changelog
|