Accepting request 940500 from home:bnavigator:python-rpm-macros

- Tornado5 (and Flask) are optional. Tornado5 is not available for
  python310

OBS-URL: https://build.opensuse.org/request/show/940500
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-httpdomain?expand=0&rev=46
This commit is contained in:
2021-12-16 11:32:38 +00:00
committed by Git OBS Bridge
parent ba998fc60c
commit 69f8cfd348
2 changed files with 11 additions and 5 deletions

View File

@@ -16,8 +16,8 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-sphinxcontrib-httpdomain
Version: 1.8.0
Release: 0
@@ -31,12 +31,12 @@ BuildRequires: %{python_module bottle >= 0.11.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module tornado5}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module tornado5 if (%python-base without python310-base)}
Requires: python-Sphinx >= 1.5
Requires: python-six
Requires: python-tornado5
Recommends: python-tornado5
BuildArch: noarch
%python_subpackages
@@ -46,7 +46,7 @@ domain for describing RESTful HTTP APIs.
You can find the documentation from the following URL:
http://packages.python.org/sphinxcontrib-httpdomain/
https://sphinxcontrib-httpdomain.readthedocs.io/en/stable/
%prep
%autosetup -p1 -n httpdomain-%{version}