From c6045f49558f2c6f4929094d533437cd7c445609 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Fri, 19 Mar 2021 14:46:55 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/python-breathe.git#4073f6b334a5fa99324f2c972a906101febc59bb --- fix-IndexError-when-generating-toctree.patch | 14 ++++++++++++++ python-breathe.spec | 9 ++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 fix-IndexError-when-generating-toctree.patch diff --git a/fix-IndexError-when-generating-toctree.patch b/fix-IndexError-when-generating-toctree.patch new file mode 100644 index 0000000..d5f1422 --- /dev/null +++ b/fix-IndexError-when-generating-toctree.patch @@ -0,0 +1,14 @@ +diff --git a/breathe/renderer/sphinxrenderer.py b/breathe/renderer/sphinxrenderer.py +index 93aad82..4382c8f 100644 +--- a/breathe/renderer/sphinxrenderer.py ++++ b/breathe/renderer/sphinxrenderer.py +@@ -1354,8 +1354,8 @@ class SphinxRenderer: + ''' + section = nodes.section() + section['ids'].append(self.get_refid(node.id)) +- section += self.create_doxygen_target(node) + section += nodes.title(node.title, node.title) ++ section += self.create_doxygen_target(node) + section += self.render_iterable(node.content_) + return [section] + diff --git a/python-breathe.spec b/python-breathe.spec index 1a8dda7..b44b0ea 100644 --- a/python-breathe.spec +++ b/python-breathe.spec @@ -6,13 +6,17 @@ render the Doxygen xml output. Name: python-%{srcname} Version: 4.27.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Adds support for Doxygen xml output to reStructuredText and Sphinx License: BSD URL: https://github.com/%{owner}/%{srcname} Source0: %{URL}/archive/v%{version}.tar.gz +# Fix an IndexError when generating toctree +# Backported from upstream: https://github.com/michaeljones/breathe/pull/647 +Patch0: fix-IndexError-when-generating-toctree.patch + BuildArch: noarch BuildRequires: doxygen >= 1.8.4 @@ -75,6 +79,9 @@ rm documentation/build/html/.buildinfo %license LICENSE %changelog +* Wed Mar 10 2021 Charalampos Stratakis - 4.27.0-2 +- Fix an IndexError when generating toctree (rhbz#1930910) + * Tue Feb 16 2021 Charalampos Stratakis - 4.27.0-1 - New upstream release 4.27.0 (rhbz#1918566, rhbz#1929448)