1 # NOTE: for versions >= 4.13 (for python3/Sphinx 2) see python3-breathe.spec
4 %bcond_without tests # nose tests
5 %bcond_without python2 # CPython 2.x module
6 %bcond_with python3 # CPython 3.x module (built from python3-breathe.spec)
8 Summary: Sphinx Doxygen renderer
9 Summary(pl.UTF-8): Renderer Doxygena dla systemu dokumentacji Sphinx
11 # NOTE: keep 4.12 here; 4.13+ requires Sphinx 2 and Python 3
15 Group: Development/Languages/Python
16 #Source0Download: https://github.com/michaeljones/breathe/releases
17 Source0: https://github.com/michaeljones/breathe/archive/v%{version}/%{name}-%{version}.tar.gz
18 # Source0-md5: 2288749c6e3b2fe1e527873e97144843
19 URL: https://github.com/michaeljones/breathe
21 BuildRequires: python-modules >= 1:2.5
22 BuildRequires: python-setuptools
24 BuildRequires: python-Sphinx >= 1.8
25 BuildRequires: python-docutils >= 0.12
26 BuildRequires: python-nose
27 BuildRequires: python-six >= 1.9
31 BuildRequires: python3-modules >= 1:3.2
32 BuildRequires: python3-setuptools
34 BuildRequires: python3-Sphinx >= 1.8
35 BuildRequires: python3-docutils >= 0.12
36 BuildRequires: python3-nose
37 BuildRequires: python3-six >= 1.9
40 BuildRequires: rpm-pythonprov
41 BuildRequires: rpmbuild(macros) >= 1.714
42 Requires: python-modules >= 1:2.5
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Breathe is an extension to reStructuredText and Sphinx to be able to
48 read and render the Doxygen XML output.
50 %description -l pl.UTF-8
51 Breathe to rozszerzenie do systemu dokumentacji reStructuredText i
52 Sphinx, pozwalające na odczyt i renderowanie wyjścia XML z Doxygena.
54 %package -n python3-breathe
55 Summary: Sphinx Doxygen renderer
56 Summary(pl.UTF-8): Renderer Doxygena dla systemu dokumentacji Sphinx
57 Group: Libraries/Python
58 Requires: python3-modules >= 1:3.2
60 %description -n python3-breathe
61 Breathe is an extension to reStructuredText and Sphinx to be able to
62 read and render the Doxygen XML output.
64 %description -n python3-breathe -l pl.UTF-8
65 Breathe to rozszerzenie do systemu dokumentacji reStructuredText i
66 Sphinx, pozwalające na odczyt i renderowanie wyjścia XML z Doxygena.
69 %setup -q -n breathe-%{version}
95 rm -rf $RPM_BUILD_ROOT
102 %{__mv} $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc{,-2}
108 %{__mv} $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc{,-3}
109 ln -sf breathe-apidoc-3 $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc
113 rm -rf $RPM_BUILD_ROOT
117 %defattr(644,root,root,755)
118 %doc LICENSE README.rst
119 %attr(755,root,root) %{_bindir}/breathe-apidoc-2
120 %{py_sitescriptdir}/breathe
121 %{py_sitescriptdir}/breathe-%{version}-py*.egg-info
125 %files -n python3-breathe
126 %defattr(644,root,root,755)
127 %doc LICENSE README.rst
128 %attr(755,root,root) %{_bindir}/breathe-apidoc
129 %attr(755,root,root) %{_bindir}/breathe-apidoc-3
130 %{py3_sitescriptdir}/breathe
131 %{py3_sitescriptdir}/breathe-%{version}-py*.egg-info