2016-04-07 02:58:02 +00:00
|
|
|
%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.
|
|
|
|
|
2023-04-04 20:41:17 +00:00
|
|
|
# This is buildroot only in RHEL, and building the docs pulls in unwanted dependencies
|
|
|
|
%bcond doc %{undefined rhel}
|
|
|
|
|
2016-04-07 02:58:02 +00:00
|
|
|
Name: python-%{srcname}
|
2023-03-29 16:17:24 +00:00
|
|
|
Version: 4.35.0
|
2021-08-11 19:57:09 +00:00
|
|
|
Release: %autorelease
|
2016-04-07 02:58:02 +00:00
|
|
|
Summary: Adds support for Doxygen xml output to reStructuredText and Sphinx
|
|
|
|
|
2023-08-04 12:47:12 +00:00
|
|
|
License: BSD-3-Clause
|
2016-04-07 02:58:02 +00:00
|
|
|
URL: https://github.com/%{owner}/%{srcname}
|
2019-11-26 22:28:49 +00:00
|
|
|
Source0: %{URL}/archive/v%{version}.tar.gz
|
2023-04-07 11:54:50 +00:00
|
|
|
Source1: %{URL}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.sig
|
|
|
|
Source2: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8aed58021feacdd5f27ba0e6a72f627716ea9d96#./vermware.key
|
2024-01-11 23:15:50 +00:00
|
|
|
# Patch1 first hunk was truncated
|
|
|
|
Patch1: https://github.com/breathe-doc/breathe/pull/956.patch
|
|
|
|
# Patch2 is a better fix of first hunk of Path1
|
|
|
|
Patch2: https://github.com/breathe-doc/breathe/pull/964.patch
|
2022-11-09 12:58:35 +00:00
|
|
|
|
2016-04-07 02:58:02 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2019-08-28 21:34:55 +00:00
|
|
|
BuildRequires: doxygen >= 1.8.4
|
2019-03-18 12:35:13 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
2019-08-28 21:34:55 +00:00
|
|
|
BuildRequires: %{py3_dist six} >= 1.9
|
2022-09-19 17:51:35 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
BuildRequires: %{py3_dist Sphinx}
|
|
|
|
%else
|
2023-03-29 16:17:24 +00:00
|
|
|
# Sphinx>=4.0,!=5.0.0
|
|
|
|
BuildRequires: ((%{py3_dist Sphinx} >= 4.0 and %{py3_dist Sphinx} < 5.0.0) or %{py3_dist Sphinx} > 5.0.0)
|
2022-09-19 17:51:35 +00:00
|
|
|
%endif
|
2019-08-28 21:34:55 +00:00
|
|
|
BuildRequires: %{py3_dist docutils} >= 0.12
|
2022-06-30 09:21:02 +00:00
|
|
|
BuildRequires: %{py3_dist Jinja2} >= 2.7.3
|
|
|
|
BuildRequires: %{py3_dist MarkupSafe} >= 0.23
|
|
|
|
BuildRequires: %{py3_dist Pygments} >= 1.6
|
2020-04-07 22:14:05 +00:00
|
|
|
BuildRequires: %{py3_dist pytest}
|
2023-04-04 20:41:17 +00:00
|
|
|
%if %{with doc}
|
2023-03-29 16:17:24 +00:00
|
|
|
BuildRequires: %{py3_dist sphinx-copybutton}
|
|
|
|
BuildRequires: %{py3_dist furo}
|
2023-04-04 20:41:17 +00:00
|
|
|
%endif
|
2016-04-07 02:58:02 +00:00
|
|
|
# NOTE: git is only needed because part of the build process checks if it's in
|
|
|
|
# a git repo
|
|
|
|
BuildRequires: git
|
2020-12-07 05:35:34 +00:00
|
|
|
BuildRequires: make
|
2023-04-07 11:54:50 +00:00
|
|
|
BuildRequires: gnupg2
|
2016-04-07 02:58:02 +00:00
|
|
|
|
|
|
|
# Set the name of the documentation directory
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
2016-04-07 03:39:14 +00:00
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
2016-04-07 02:58:02 +00:00
|
|
|
Summary: %{summary}
|
2016-04-10 15:39:44 +00:00
|
|
|
Requires: python%{python3_pkgversion}-six
|
2019-08-28 21:34:55 +00:00
|
|
|
Requires: doxygen >= 1.8.4
|
2016-04-07 03:39:14 +00:00
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
2016-04-07 02:58:02 +00:00
|
|
|
|
2016-04-07 03:39:14 +00:00
|
|
|
%description -n python%{python3_pkgversion}-%{srcname} %_description
|
2016-04-07 02:58:02 +00:00
|
|
|
|
2019-03-27 16:54:40 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation files for %{srcname}
|
2016-04-07 02:58:02 +00:00
|
|
|
# tinyxml uses zlib license
|
2023-08-04 12:47:12 +00:00
|
|
|
License: BSD-3-Clause AND Zlib
|
2016-04-07 02:58:02 +00:00
|
|
|
|
2019-03-27 16:54:40 +00:00
|
|
|
%description doc
|
|
|
|
This package contains documentation for developer documentation for %{srcname}.
|
2016-04-07 02:58:02 +00:00
|
|
|
|
|
|
|
%prep
|
2023-04-07 11:54:50 +00:00
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
2020-08-19 22:12:00 +00:00
|
|
|
%autosetup -n %{srcname}-%{version} -p1
|
2016-04-07 02:58:02 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%py3_build
|
2023-04-04 20:41:17 +00:00
|
|
|
%if %{with doc}
|
2016-04-07 02:58:02 +00:00
|
|
|
# Build the documentation
|
2024-01-11 19:01:59 +00:00
|
|
|
# Remove -W (turn warnings into errors) from SPHINXOPTS to fix the build for f39
|
|
|
|
%make_build SPHINXOPTS="-v -E" DOXYGEN=$(which doxygen) PYTHONPATH=$(pwd) html
|
2016-04-07 02:58:02 +00:00
|
|
|
# Remove temporary build files
|
2019-03-27 16:54:40 +00:00
|
|
|
rm documentation/build/html/.buildinfo
|
2023-04-04 20:41:17 +00:00
|
|
|
%endif
|
2016-04-07 02:58:02 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
|
2019-08-28 21:34:55 +00:00
|
|
|
%check
|
2020-12-07 05:35:34 +00:00
|
|
|
%make_build dev-test
|
2019-08-28 21:34:55 +00:00
|
|
|
|
2016-04-07 03:39:14 +00:00
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
2019-08-28 21:34:55 +00:00
|
|
|
%doc README.rst
|
2016-04-07 02:58:02 +00:00
|
|
|
%{_bindir}/breathe-apidoc
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%license LICENSE
|
|
|
|
|
2023-04-04 20:41:17 +00:00
|
|
|
%if %{with doc}
|
2019-03-27 16:54:40 +00:00
|
|
|
%files doc
|
|
|
|
%doc documentation/build/html
|
|
|
|
%license LICENSE
|
2023-04-04 20:41:17 +00:00
|
|
|
%endif
|
2016-04-07 02:58:02 +00:00
|
|
|
|
|
|
|
%changelog
|
2021-08-11 19:57:09 +00:00
|
|
|
%autochangelog
|