From 281a0723dce2d58fbe3453524a5a5d5210db9327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Tue, 27 Sep 2022 22:59:14 +0100 Subject: [PATCH] Fix autogenerated Requires of sphinx on RHEL --- python-breathe.spec | 7 ++++++- rhel_sphinx.patch | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 rhel_sphinx.patch 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.")