%global owner michaeljones %global srcname breathe %global _description \ Breathe is an extension to reStructuredText and Sphinx to be able to read and \ render the Doxygen xml output. Name: python-%{srcname} Version: 4.27.0 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 BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-six >= 1.9 BuildRequires: python%{python3_pkgversion}-sphinx BuildRequires: python%{python3_pkgversion}-docutils >= 0.12 BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pluggy # NOTE: git is only needed because part of the build process checks if it's in # a git repo BuildRequires: git BuildRequires: make # Set the name of the documentation directory %global _docdir_fmt %{name} %description %_description %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} Requires: python%{python3_pkgversion}-six Requires: doxygen >= 1.8.4 %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} %_description %package doc Summary: Documentation files for %{srcname} # tinyxml uses zlib license License: BSD and zlib %description doc This package contains documentation for developer documentation for %{srcname}. %prep %autosetup -n %{srcname}-%{version} -p1 %build %py3_build # Build the documentation %make_build DOXYGEN=$(which doxygen) html # Remove temporary build files rm documentation/build/html/.buildinfo %install %py3_install %check %make_build dev-test %files -n python%{python3_pkgversion}-%{srcname} %doc README.rst %{_bindir}/breathe-apidoc %{python3_sitelib}/* %license LICENSE %files doc %doc documentation/build/html %license LICENSE %changelog * Wed Mar 10 2021 Charalampos Stratakis - 4.27.0-2 - Fix an IndexError when generating toctree (rhbz#1930910)