!15 python-breathe package init for openEuler-20.03-LTS-SP4
From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
1effcfbdb8
53
0001-Add-events-attribute-to-MockApp.patch
Normal file
53
0001-Add-events-attribute-to-MockApp.patch
Normal file
@ -0,0 +1,53 @@
|
||||
From 7c0a1ed9a14d9bb777df2657c99b82250e9851cf Mon Sep 17 00:00:00 2001
|
||||
From: Jakob Lykke Andersen <Jakob@caput.dk>
|
||||
Date: Sun, 20 Jan 2019 14:03:02 +0100
|
||||
Subject: [PATCH] Fix tests for 1.8
|
||||
|
||||
---
|
||||
tests/test_renderer.py | 20 +++++++++++++++-----
|
||||
2 files changed, 16 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/tests/test_renderer.py b/tests/test_renderer.py
|
||||
index d1e88638..4298b957 100644
|
||||
--- a/tests/test_renderer.py
|
||||
+++ b/tests/test_renderer.py
|
||||
@@ -6,6 +6,7 @@
|
||||
from breathe.renderer.sphinxrenderer import SphinxRenderer
|
||||
from breathe.renderer.filter import OpenFilter
|
||||
from docutils import frontend, nodes, parsers, utils
|
||||
+from sphinx.config import Config
|
||||
from sphinx.domains.cpp import CPPDomain
|
||||
from sphinx.domains.c import CDomain
|
||||
|
||||
@@ -53,17 +54,26 @@ class TestParam(paramTypeSub, TestDoxygenNode):
|
||||
def __init__(self, **kwargs):
|
||||
TestDoxygenNode.__init__(self, paramTypeSub, **kwargs)
|
||||
|
||||
-class MockConfig(object):
|
||||
- cpp_id_attributes = []
|
||||
- cpp_paren_attributes = []
|
||||
- cpp_index_common_prefix = []
|
||||
+
|
||||
+class MockRegistry(object):
|
||||
+ def get_envversion(self, app):
|
||||
+ return None
|
||||
+
|
||||
+ def create_domains(self, env):
|
||||
+ return []
|
||||
|
||||
|
||||
class MockApp(object):
|
||||
def __init__(self):
|
||||
self.doctreedir = None
|
||||
self.srcdir = None
|
||||
- self.config = MockConfig()
|
||||
+ self.config = Config()
|
||||
+ self.config.pre_init_values()
|
||||
+ self.config.init_values()
|
||||
+ self.config.add('cpp_id_attributes', [], 'env', ())
|
||||
+ self.config.add('cpp_paren_attributes', [], 'env', ())
|
||||
+ self.config.add('cpp_index_common_prefix', [], 'env', ())
|
||||
+ self.registry = MockRegistry()
|
||||
|
||||
|
||||
class MockState:
|
||||
Binary file not shown.
@ -1,101 +1,85 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-breathe
|
||||
Version: 4.35.0
|
||||
Version: 4.11.1
|
||||
Release: 1
|
||||
Summary: Sphinx Doxygen renderer
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/breathe-doc/breathe
|
||||
Source0: https://github.com/breathe-doc/breathe/archive/refs/tags/v%{version}.tar.gz#/breathe-%{version}.tar.gz
|
||||
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
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Breathe is an extension to reStructuredText and Sphinx to be able to read and render Doxygen xml output.
|
||||
Patch0: 0001-Add-events-attribute-to-MockApp.patch
|
||||
|
||||
%package -n python3-breathe
|
||||
Summary: Sphinx Doxygen renderer
|
||||
Provides: python-breathe = %{version}-%{release}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: python3-docutils
|
||||
BuildRequires: python3-six python3-pip
|
||||
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
|
||||
|
||||
%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 Doxygen’s 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 Doxygen’s xml output.
|
||||
|
||||
%package -n python3-breathe
|
||||
Summary: An extension to reStructuredText and Sphinx
|
||||
Requires: python3-six doxygen
|
||||
%{?python_provide:%python_provide python3-breathe}
|
||||
|
||||
%description -n python3-breathe
|
||||
Breathe is an extension to reStructuredText and Sphinx to be able to read and render Doxygen xml output.
|
||||
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 Doxygen’s xml output.
|
||||
|
||||
%package help
|
||||
Summary: Sphinx Doxygen renderer
|
||||
Provides: python3-breathe-doc
|
||||
%description help
|
||||
Breathe is an extension to reStructuredText and Sphinx to be able to read and render Doxygen 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
|
||||
|
||||
%description help
|
||||
Documentation for developer documentation for breathe.
|
||||
|
||||
%prep
|
||||
%autosetup -n breathe-%{version} -p1
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
%make_build html
|
||||
rm documentation/build/html/.buildinfo
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||
pushd %{buildroot}
|
||||
if [ -d usr/lib ]; then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ]; then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/bin ]; then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ]; then
|
||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
touch doclist.lst
|
||||
if [ -d usr/share/man ]; then
|
||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
make dev-test
|
||||
|
||||
%files -n python3-breathe -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
%files -n python2-breathe
|
||||
%doc README.rst LICENSE
|
||||
%{python2_sitelib}/*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
%files -n python3-breathe
|
||||
%doc README.rst LICENSE
|
||||
%{_bindir}/breathe-apidoc
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%files help
|
||||
%doc documentation/build/html LICENSE
|
||||
|
||||
%changelog
|
||||
* Tue Mar 21 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 4.35.0-1
|
||||
- Update package to version 4.35.0
|
||||
|
||||
* Fri Sep 30 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 4.34.0-1
|
||||
- Upgrade to 4.34.0
|
||||
|
||||
* Fri Jun 17 2022 houyingchao <houyingchao@h-partners.com> - 4.33.1-1
|
||||
- Upgrade to version 4.33.1
|
||||
|
||||
* Tue May 10 2022 houyingchao <houyingchao@h-partners.com> - 4.29.0-3
|
||||
- License compliance rectification
|
||||
|
||||
* Sat Jan 8 2022 baizhonggui <baizhonggui@huawei.com> - 4.29.0-2
|
||||
- fix build error
|
||||
|
||||
* Mon Aug 23 2021 OpenStack_SIG <openstack@openeuler.org> - 4.29.0-1
|
||||
- Package update to 4.29.0
|
||||
|
||||
* Thu Feb 04 2021 wangxiao <wangxiao65@huawei.com> - 4.26.1-1
|
||||
- update to 4.26.1 for fix build errors with Sphinx 3.4
|
||||
|
||||
* Sat Oct 10 2020 zhanghua <zhanghua40@huawei.com> - 4.22.1-1
|
||||
- update to 4.22.1 for fix build errors with Sphinx 3.1
|
||||
|
||||
* Thu Feb 20 2020 Ling Yang <lingyang2@huawei.com> - 4.11.1-2
|
||||
* Thu Oct 12 2023 chenyaqiang<chenyaqiang@huawei.com> - 4.11.1-1
|
||||
- Package init
|
||||
|
||||
BIN
v4.11.1.tar.gz
Normal file
BIN
v4.11.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user