ec59698
%global owner michaeljones
ec59698
%global srcname breathe
ec59698
%global _description \
ec59698
Breathe is an extension to reStructuredText and Sphinx to be able to read and \
ec59698
render the Doxygen xml output.
ec59698
ec59698
Name:           python-%{srcname}
24880c6
Version:        4.33.1
98b1ad1
Release:        %autorelease
ec59698
Summary:        Adds support for Doxygen xml output to reStructuredText and Sphinx
ec59698
ec59698
License:        BSD
ec59698
URL:            https://github.com/%{owner}/%{srcname}
04ec8d6
Source0:        %{URL}/archive/v%{version}.tar.gz
f1b72a4
Source1:        %{URL}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.sig
f1b72a4
Source2:        https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8aed58021feacdd5f27ba0e6a72f627716ea9d96#./vermware.key
ec59698
ec59698
BuildArch:      noarch
ec59698
93bda10
BuildRequires:  doxygen >= 1.8.4
b1dc3e7
BuildRequires:  python%{python3_pkgversion}-devel
b1dc3e7
BuildRequires:  python%{python3_pkgversion}-setuptools
93bda10
BuildRequires:  %{py3_dist six} >= 1.9
f1b72a4
BuildRequires:  (%{py3_dist Sphinx} >= 3.0 and %{py3_dist Sphinx} < 5)
93bda10
BuildRequires:  %{py3_dist docutils} >= 0.12
c8076a7
BuildRequires:  %{py3_dist pytest}
ec59698
# NOTE: git is only needed because part of the build process checks if it's in
ec59698
# a git repo
ec59698
BuildRequires:  git
32f60c3
BuildRequires:  make
f1b72a4
BuildRequires:  gnupg2
ec59698
ec59698
# Set the name of the documentation directory
ec59698
%global _docdir_fmt %{name}
ec59698
ec59698
%description %_description
ec59698
Orion Poplawski fc02551
%package -n     python%{python3_pkgversion}-%{srcname}
ec59698
Summary:        %{summary}
Orion Poplawski b193fc2
Requires:       python%{python3_pkgversion}-six
93bda10
Requires:       doxygen >= 1.8.4
Orion Poplawski fc02551
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
ec59698
Orion Poplawski fc02551
%description -n python%{python3_pkgversion}-%{srcname} %_description
ec59698
db999e0
%package        doc
db999e0
Summary:        Documentation files for %{srcname}
ec59698
# tinyxml uses zlib license
db999e0
License:        BSD and zlib
ec59698
db999e0
%description    doc
db999e0
This package contains documentation for developer documentation for %{srcname}.
ec59698
ec59698
%prep
f1b72a4
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
ae563f1
%autosetup -n %{srcname}-%{version} -p1
ec59698
ec59698
%build
ec59698
%py3_build
ec59698
# Build the documentation
4bbf5b8
%make_build DOXYGEN=$(which doxygen) PYTHONPATH=$(pwd) html
ec59698
# Remove temporary build files
db999e0
rm documentation/build/html/.buildinfo
ec59698
ec59698
%install
ec59698
%py3_install
ec59698
93bda10
%check
32f60c3
%make_build dev-test
93bda10
Orion Poplawski fc02551
%files -n python%{python3_pkgversion}-%{srcname}
93bda10
%doc README.rst
ec59698
%{_bindir}/breathe-apidoc
ec59698
%{python3_sitelib}/*
ec59698
%license LICENSE
ec59698
db999e0
%files doc
db999e0
%doc documentation/build/html
db999e0
%license LICENSE
ec59698
ec59698
%changelog
98b1ad1
%autochangelog