]> git.pld-linux.org Git - packages/python3-breathe.git/blame - python3-breathe.spec
update tests deps; rel 2
[packages/python3-breathe.git] / python3-breathe.spec
CommitLineData
1d711b48 1# NOTE: this package is closely related to Sphinx version, so keep it in sync with sphinx-pdg.spec
1d711b48
JB
2#
3# Conditional build:
4%bcond_without tests # unit tests
5
6Summary: Sphinx Doxygen renderer
7Summary(pl.UTF-8): Renderer Doxygena dla systemu dokumentacji Sphinx
8Name: python3-breathe
d055db54 9Version: 4.31.0
7f5eba4b 10Release: 2
1d711b48
JB
11License: BSD
12Group: Development/Languages/Python
13#Source0Download: https://github.com/michaeljones/breathe/releases
14Source0: https://github.com/michaeljones/breathe/archive/v%{version}/breathe-%{version}.tar.gz
d055db54 15# Source0-md5: 5ba7b5f811c5b8535ee233f6031bed1a
1d711b48
JB
16URL: https://github.com/michaeljones/breathe
17BuildRequires: python3-modules >= 1:3.5
18BuildRequires: python3-setuptools
19%if %{with tests}
b6bb1c1c 20BuildRequires: python3-Sphinx >= 3.0
7f5eba4b 21BuildRequires: python3-Sphinx < 5
1d711b48
JB
22BuildRequires: python3-docutils >= 0.12
23BuildRequires: python3-pytest
24BuildRequires: python3-six >= 1.9
25%endif
26BuildRequires: rpm-pythonprov
27BuildRequires: rpmbuild(macros) >= 1.714
d055db54 28Requires: python3-Sphinx >= 3
1d711b48 29Requires: python3-modules >= 1:3.5
1d711b48
JB
30BuildArch: noarch
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34Breathe is an extension to reStructuredText and Sphinx to be able to
35read and render the Doxygen XML output.
36
37%description -l pl.UTF-8
38Breathe to rozszerzenie do systemu dokumentacji reStructuredText i
39Sphinx, pozwalające na odczyt i renderowanie wyjścia XML z Doxygena.
40
41%prep
42%setup -q -n breathe-%{version}
43
44%build
45%py3_build
46
47%if %{with tests}
48cd tests
49PYTHONPATH=.. \
b6bb1c1c 50PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
1d711b48
JB
51%{__python3} -m pytest -v
52cd ..
53%endif
54
55%install
56rm -rf $RPM_BUILD_ROOT
57
58%py3_install
59
60%{__mv} $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc{,-3}
61ln -sf breathe-apidoc-3 $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
68%doc LICENSE README.rst
69%attr(755,root,root) %{_bindir}/breathe-apidoc
70%attr(755,root,root) %{_bindir}/breathe-apidoc-3
71%{py3_sitescriptdir}/breathe
72%{py3_sitescriptdir}/breathe-%{version}-py*.egg-info
This page took 0.443282 seconds and 4 git commands to generate.