mirror of
https://abf.rosa.ru/djam/python-breathe.git
synced 2025-02-24 00:02:58 +00:00
74 lines
1.9 KiB
RPMSpec
74 lines
1.9 KiB
RPMSpec
![]() |
Summary: Adds support for Doxygen xml output to reStructuredText and Sphinx
|
||
|
Name: python-breathe
|
||
|
License: BSD
|
||
|
Group: Development/Python
|
||
|
Version: 4.31.0
|
||
|
Release: 1
|
||
|
URL: https://github.com/michaeljones/breathe
|
||
|
Source0: https://github.com/michaeljones/breathe/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
|
||
|
BuildRequires: doxygen
|
||
|
BuildRequires: which
|
||
|
BuildRequires: python3-devel
|
||
|
BuildRequires: python3-setuptools
|
||
|
BuildRequires: python3-six
|
||
|
BuildRequires: python3-sphinx
|
||
|
BuildRequires: python3-docutils
|
||
|
BuildRequires: python3-pytest
|
||
|
# NOTE: git is only needed because part of the build process checks if it's in a git repo
|
||
|
BuildRequires: %{_bindir}/git
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%define _description \
|
||
|
Breathe is an extension to reStructuredText and Sphinx to be able to read and \
|
||
|
render the Doxygen xml output.
|
||
|
|
||
|
%description %_description
|
||
|
|
||
|
#------------------------------------------------------------------------------
|
||
|
|
||
|
%package -n python3-breathe
|
||
|
Summary: %{summary}
|
||
|
Requires: python3-six
|
||
|
Requires: doxygen
|
||
|
|
||
|
%description -n python3-breathe
|
||
|
%_description
|
||
|
|
||
|
%files -n python3-breathe
|
||
|
%license LICENSE
|
||
|
%doc README.rst
|
||
|
%{_bindir}/breathe-apidoc
|
||
|
%{python3_sitelib}/*
|
||
|
|
||
|
#------------------------------------------------------------------------------
|
||
|
|
||
|
%package doc
|
||
|
Summary: Documentation files for breathe
|
||
|
# tinyxml uses zlib license
|
||
|
License: BSD and zlib
|
||
|
|
||
|
%description doc
|
||
|
This package contains documentation for developer documentation for breathe.
|
||
|
|
||
|
%files doc
|
||
|
%license LICENSE
|
||
|
%doc documentation/build/html
|
||
|
|
||
|
#------------------------------------------------------------------------------
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n breathe-%{version} -p1
|
||
|
|
||
|
%build
|
||
|
%py3_build
|
||
|
# Build the documentation
|
||
|
%make_build DOXYGEN=$(which doxygen) PYTHONPATH=$(pwd) html
|
||
|
# Remove temporary build files
|
||
|
rm documentation/build/html/.buildinfo
|
||
|
|
||
|
%install
|
||
|
%py3_install
|
||
|
|
||
|
%check
|
||
|
%make_build dev-test
|