From 6d603e41ad7b53a0108f5d6d6927c8fafccdeb6f Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Mon, 19 Sep 2022 10:51:35 -0700 Subject: [PATCH] Use any version of sphinx on RHEL RHEL 9 uses sphinx 3.4 and will always fail the >= 4.0 check. So for RHEL use any version of sphinx. Signed-off-by: Tom Rix --- python-breathe.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-breathe.spec b/python-breathe.spec index a21256f..ea334f3 100644 --- a/python-breathe.spec +++ b/python-breathe.spec @@ -21,8 +21,12 @@ BuildRequires: doxygen >= 1.8.4 BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: %{py3_dist six} >= 1.9 +%if 0%{?rhel} +BuildRequires: %{py3_dist Sphinx} +%else # Sphinx>=4.0,<6,!=5.0.0 BuildRequires: ((%{py3_dist Sphinx} >= 4.0 and %{py3_dist Sphinx} < 5.0.0) or (%{py3_dist Sphinx} > 5.0.0 and %{py3_dist Sphinx} < 6)) +%endif BuildRequires: %{py3_dist docutils} >= 0.12 BuildRequires: %{py3_dist Jinja2} >= 2.7.3 BuildRequires: %{py3_dist MarkupSafe} >= 0.23