From f31644a2d63e553f22be5b39a2ae6bcf690c41c4ef3e13f065ff25bc1e33383d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 14 Jun 2023 06:43:44 +0000 Subject: [PATCH] Accepting request 1092787 from home:ecsos:python - Fix build error for waitress:doc OBS-URL: https://build.opensuse.org/request/show/1092787 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-waitress?expand=0&rev=61 --- python-waitress.changes | 5 +++++ python-waitress.spec | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/python-waitress.changes b/python-waitress.changes index e2e35f8..a496c31 100644 --- a/python-waitress.changes +++ b/python-waitress.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jun 10 09:00:11 UTC 2023 - ecsos + +- Fix build error for waitress:doc + ------------------------------------------------------------------- Wed May 3 11:10:33 UTC 2023 - Martin Liška diff --git a/python-waitress.spec b/python-waitress.spec index c489e0a..2eb24a5 100644 --- a/python-waitress.spec +++ b/python-waitress.spec @@ -57,11 +57,19 @@ Requires(postun):update-alternatives %endif %else # Documentation requirements +%if 0%{?suse_version} > 1500 BuildRequires: python3-Sphinx BuildRequires: python3-docutils BuildRequires: python3-pylons-sphinx-themes BuildRequires: python3-waitress = %{version} Recommends: python3-waitress = %{version} +%else +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module docutils} +BuildRequires: %{python_module pylons-sphinx-themes} +BuildRequires: %{python_module waitress = %{version}} +Recommends: python-waitress = %{version} +%endif %endif %python_subpackages