1 # NOTE: this package is closely related to Sphinx version, so keep it in sync with sphinx-pdg.spec
4 %bcond_without tests # unit tests
6 Summary: Sphinx Doxygen renderer
7 Summary(pl.UTF-8): Renderer Doxygena dla systemu dokumentacji Sphinx
12 Group: Development/Languages/Python
13 #Source0Download: https://github.com/michaeljones/breathe/releases
14 Source0: https://github.com/michaeljones/breathe/archive/v%{version}/breathe-%{version}.tar.gz
15 # Source0-md5: 6a4a9af5bcbc778f455da0a00ff3be71
16 URL: https://github.com/michaeljones/breathe
17 BuildRequires: python3-modules >= 1:3.6
18 BuildRequires: python3-setuptools
20 BuildRequires: python3-Sphinx >= 4.0
21 BuildRequires: python3-Sphinx < 6
22 BuildRequires: python3-docutils >= 0.12
23 BuildRequires: python3-pytest
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python3-Sphinx >= 3
28 Requires: python3-modules >= 1:3.6
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Breathe is an extension to reStructuredText and Sphinx to be able to
34 read and render the Doxygen XML output.
36 %description -l pl.UTF-8
37 Breathe to rozszerzenie do systemu dokumentacji reStructuredText i
38 Sphinx, pozwalające na odczyt i renderowanie wyjścia XML z Doxygena.
41 %setup -q -n breathe-%{version}
49 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
50 %{__python3} -m pytest -v
55 rm -rf $RPM_BUILD_ROOT
59 %{__mv} $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc{,-3}
60 ln -sf breathe-apidoc-3 $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc LICENSE README.rst
68 %attr(755,root,root) %{_bindir}/breathe-apidoc
69 %attr(755,root,root) %{_bindir}/breathe-apidoc-3
70 %{py3_sitescriptdir}/breathe
71 %{py3_sitescriptdir}/breathe-%{version}-py*.egg-info