]> git.pld-linux.org Git - packages/python3-breathe.git/blame - python3-breathe.spec
- updated to 4.34.0
[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
53c6cb71 9Version: 4.34.0
194c9249 10Release: 1
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
53c6cb71 15# Source0-md5: 6a4a9af5bcbc778f455da0a00ff3be71
1d711b48 16URL: https://github.com/michaeljones/breathe
ff877300 17BuildRequires: python3-modules >= 1:3.6
1d711b48
JB
18BuildRequires: python3-setuptools
19%if %{with tests}
53c6cb71
JB
20BuildRequires: python3-Sphinx >= 4.0
21BuildRequires: python3-Sphinx < 6
1d711b48
JB
22BuildRequires: python3-docutils >= 0.12
23BuildRequires: python3-pytest
1d711b48
JB
24%endif
25BuildRequires: rpm-pythonprov
26BuildRequires: rpmbuild(macros) >= 1.714
d055db54 27Requires: python3-Sphinx >= 3
ff877300 28Requires: python3-modules >= 1:3.6
1d711b48
JB
29BuildArch: noarch
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33Breathe is an extension to reStructuredText and Sphinx to be able to
34read and render the Doxygen XML output.
35
36%description -l pl.UTF-8
37Breathe to rozszerzenie do systemu dokumentacji reStructuredText i
38Sphinx, pozwalające na odczyt i renderowanie wyjścia XML z Doxygena.
39
40%prep
41%setup -q -n breathe-%{version}
42
43%build
44%py3_build
45
46%if %{with tests}
47cd tests
48PYTHONPATH=.. \
b6bb1c1c 49PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
1d711b48
JB
50%{__python3} -m pytest -v
51cd ..
52%endif
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57%py3_install
58
59%{__mv} $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc{,-3}
60ln -sf breathe-apidoc-3 $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
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
This page took 0.113578 seconds and 4 git commands to generate.