From cbe0a3155f910d121bc54773f1af563c1fd7c7af Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Fri, 1 Jul 2022 16:52:08 +0200 Subject: [PATCH] Relax docutils version requirement to <0.19 The version is loosened to make the theme works with docutils 0.18+ in Fedora. Upstream doesn't officially support it yet and the manual verification discovers issues that we consider non-blocking, raised upstream: https://github.com/readthedocs/sphinx_rtd_theme/issues/1302 --- python-sphinx_rtd_theme.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python-sphinx_rtd_theme.spec b/python-sphinx_rtd_theme.spec index 4bcca7b..0938883 100644 --- a/python-sphinx_rtd_theme.spec +++ b/python-sphinx_rtd_theme.spec @@ -5,7 +5,7 @@ Name: python-%{srcname} Version: 1.0.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Sphinx theme for readthedocs.org License: MIT @@ -69,6 +69,11 @@ readthedocs.org. %prep %autosetup -p1 -n %{srcname}-%{version} +# Make theme work with docutils 0.18+ in Fedora 37+ +# This is not officially supported yet, tracked upstram in: +# https://github.com/readthedocs/sphinx_rtd_theme/issues/1302 +sed -i "s|docutils<0.18|docutils<0.19|" setup.py + # Use local objects.inv for intersphinx sed -e "s|\('https://docs\.readthedocs\.io/en/stable/', \)None|\1'%{SOURCE1}'|" \ -e "s|\('https://www\.sphinx-doc\.org/en/master/', \)None|\1'%{_docdir}/python-sphinx-doc/html/objects.inv'|" \ @@ -181,6 +186,9 @@ grep 'format("woff2\?")' \ %endif %changelog +* Fri Jul 01 2022 Karolina Surma - 1.0.0-7 +- Relax the python-docutils version requirement to <0.19 + * Mon Jun 13 2022 Python Maint - 1.0.0-6 - Rebuilt for Python 3.11