python-breathe/python-breathe.spec

86 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

2020-02-26 17:51:22 +08:00
Name: python-breathe
Version: 4.11.1
2022-06-17 10:29:16 +08:00
Release: 1
Summary: An extension to reStructuredText and Sphinx
License: BSD
URL: https://github.com/michaeljones/breathe
Source0: https://github.com/michaeljones/breathe/archive/v%{version}.tar.gz
2020-02-26 17:51:22 +08:00
BuildArch: noarch
Patch0: 0001-Add-events-attribute-to-MockApp.patch
BuildRequires: doxygen git python2-devel python3-devel python2-six >= 1.4 python2-setuptools
BuildRequires: python3-setuptools python2-sphinx >= 1.4 python3-six >= 1.4 python2-docutils >= 0.5
BuildRequires: python2-nose python3-docutils >= 0.5 python-sphinx
2020-02-26 17:51:22 +08:00
%description
Breathe provides a bridge between the Sphinx and Doxygen documentation systems. It is an easy way
to include Doxygen information in a set of documentation generated by Sphinx. The aim is to produce
an autodoc like support for people who enjoy using Sphinx but work with languages other than Python.
The system relies on the Doxygens xml output.
%package -n python2-breathe
Summary: An extension to reStructuredText and Sphinx
Requires: python2-six doxygen
Provides: breathe = %{version}-%{release}
Obsoletes: breathe < %{version}-%{release}
%{?python_provide:%python_provide python2-breathe}
%description -n python2-breathe
Breathe provides a bridge between the Sphinx and Doxygen documentation systems. It is an easy way
to include Doxygen information in a set of documentation generated by Sphinx. The aim is to produce
an autodoc like support for people who enjoy using Sphinx but work with languages other than Python.
The system relies on the Doxygens xml output.
%package -n python3-breathe
Summary: An extension to reStructuredText and Sphinx
Requires: python3-six doxygen
%{?python_provide:%python_provide python3-breathe}
2021-02-04 17:28:14 +08:00
2021-08-23 15:51:32 +00:00
%description -n python3-breathe
Breathe provides a bridge between the Sphinx and Doxygen documentation systems. It is an easy way
to include Doxygen information in a set of documentation generated by Sphinx. The aim is to produce
an autodoc like support for people who enjoy using Sphinx but work with languages other than Python.
The system relies on the Doxygens xml output.
%package help
Summary: Documentation files for breathe
Provides: python-breathe-doc = %{version}-%{release}
Obsoletes: python-breathe-doc < %{version}-%{release}
License: BSD and zlib
2020-02-26 17:51:22 +08:00
%description help
Documentation for developer documentation for breathe.
2020-02-26 17:51:22 +08:00
%prep
2022-09-30 16:57:31 +08:00
%autosetup -n breathe-%{version} -p1
2020-02-26 17:51:22 +08:00
%build
%py2_build
2020-02-26 17:51:22 +08:00
%py3_build
%make_build html
rm documentation/build/html/.buildinfo
2020-02-26 17:51:22 +08:00
%install
%py2_install
2020-02-26 17:51:22 +08:00
%py3_install
2021-08-23 15:51:32 +00:00
%check
make dev-test
2021-08-23 15:51:32 +00:00
%files -n python2-breathe
%doc README.rst LICENSE
%{python2_sitelib}/*
2023-03-21 14:34:58 +08:00
%files -n python3-breathe
%doc README.rst LICENSE
%{_bindir}/breathe-apidoc
%{python3_sitelib}/*
2022-09-30 16:57:31 +08:00
%files help
%doc documentation/build/html LICENSE
2022-06-17 10:29:16 +08:00
%changelog
* Thu Oct 12 2023 chenyaqiang<chenyaqiang@huawei.com> - 4.11.1-1
2020-02-26 17:51:22 +08:00
- Package init