diff --git a/python-breathe.spec b/python-breathe.spec index ea334f3..5f88a11 100644 --- a/python-breathe.spec +++ b/python-breathe.spec @@ -15,6 +15,8 @@ Source0: %{URL}/archive/v%{version}.tar.gz Source1: %{URL}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.sig Source2: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8aed58021feacdd5f27ba0e6a72f627716ea9d96#./vermware.key +Patch1: rhel_sphinx.patch + BuildArch: noarch BuildRequires: doxygen >= 1.8.4 @@ -61,7 +63,10 @@ This package contains documentation for developer documentation for %{srcname}. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' -%autosetup -n %{srcname}-%{version} -p1 +%setup -n %{srcname}-%{version} +%if 0%{?rhel} +%patch1 -p1 +%endif %build %py3_build diff --git a/rhel_sphinx.patch b/rhel_sphinx.patch new file mode 100644 index 0000000..d2a3793 --- /dev/null +++ b/rhel_sphinx.patch @@ -0,0 +1,11 @@ +--- ./setup.py.orig 2022-09-27 22:28:17.199596002 +0100 ++++ ./setup.py 2022-09-27 22:28:31.967541206 +0100 +@@ -17,7 +17,7 @@ Breathe is an extension to reStructuredT + render `Doxygen `__ xml output. + """ + +-requires = ["Sphinx>=4.0,<6,!=5.0.0", "docutils>=0.12"] ++requires = ["Sphinx", "docutils>=0.12"] + + if sys.version_info < (3, 6): + print("ERROR: Sphinx requires at least Python 3.6 to run.")