3 %bcond_with tests # do not perform "make test"
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Sphinx Doxygen renderer
8 Summary(pl.UTF-8): Renderer Doxygena dla systemu dokumentacji Sphinx
13 Group: Development/Languages/Python
14 Source0: https://github.com/michaeljones/breathe/archive/v%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: a1617f9cb555bbd618257d70e577909f
16 URL: https://github.com/michaeljones/breathe
17 BuildRequires: python >= 1:2.5
19 BuildRequires: python-modules
22 BuildRequires: python3-modules
24 BuildRequires: rpm-pythonprov
25 BuildRequires: rpmbuild(macros) >= 1.710
26 Requires: python-Sphinx >= 1.0.7
27 Requires: python-docutils >= 0.5
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Breathe is an extension to reStructuredText and Sphinx to be able to
33 read and render the Doxygen XML output.
35 %description -l pl.UTF-8
36 Breathe to rozszerzenie do systemu dokumentacji reStructuredText i
37 Sphinx, pozwalające na odczyt i renderowanie wyjścia XML z Doxygena.
39 %package -n python3-breathe
40 Summary: Sphinx Doxygen renderer
41 Summary(pl.UTF-8): Renderer Doxygena dla systemu dokumentacji Sphinx
42 Group: Libraries/Python
43 Requires: python3-modules
44 Requires: python3-Sphinx >= 1.0.7
45 Requires: python3-docutils >= 0.5
47 %description -n python3-breathe
48 Breathe is an extension to reStructuredText and Sphinx to be able to
49 read and render the Doxygen XML output.
51 %description -n python3-breathe -l pl.UTF-8
52 Breathe to rozszerzenie do systemu dokumentacji reStructuredText i
53 Sphinx, pozwalające na odczyt i renderowanie wyjścia XML z Doxygena.
56 %setup -q -n breathe-%{version}
60 %py_build %{?with_tests:test}
64 %py3_build %{?with_tests:test}
68 rm -rf $RPM_BUILD_ROOT
81 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
85 %doc LICENCE README.rst
86 %{py_sitescriptdir}/breathe
87 %{py_sitescriptdir}/breathe-%{version}-py*.egg-info
89 %files -n python3-breathe
90 %defattr(644,root,root,755)
91 %doc LICENCE README.rst
92 %{py3_sitescriptdir}/breathe
93 %{py3_sitescriptdir}/breathe-%{version}-py*.egg-info