Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
1effcfbdb8
!15 python-breathe package init for openEuler-20.03-LTS-SP4
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-10-16 06:34:01 +00:00
cherry530
4134ab5775 package init for sp4
Signed-off-by: cherry530 <707078654@qq.com>
2023-10-16 09:16:00 +08:00
openeuler-ci-bot
9e05f2cf58
!14 Update package to version 4.35.0
From: @jxy_git 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2023-03-22 03:42:13 +00:00
jxy_git
6176bb4f66 Update package to version 4.35.0 2023-03-21 14:34:58 +08:00
openeuler-ci-bot
f5c7b81abd
!12 Upgrade to 4.34.0
From: @jxy_git 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-10-08 02:20:17 +00:00
jxy_git
3694f64b39 Upgrade to 4.34.0 2022-09-30 16:57:31 +08:00
openeuler-ci-bot
559a340429
!11 Package upgrade
From: @houyingchao 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
2022-06-17 06:41:38 +00:00
houyingchao
52592d7558 Package upgrade 2022-06-17 10:29:16 +08:00
openeuler-ci-bot
309be1c74d
!9 【轻量级 PR】:fix bogus date in %changelog
From: @loong-C 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-06-16 09:31:58 +00:00
loong-C
3f1afebd24
fix bogus date in %changelog 2022-06-16 01:43:42 +00:00
5 changed files with 115 additions and 95 deletions

View 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:

View File

@ -1,25 +0,0 @@
From 8b42ef5a9db2d816c9e749237b9681d1aba0bea2 Mon Sep 17 00:00:00 2001
From: bzg1107 <preloyalwhite@163.com>
Date: Tue, 4 Jan 2022 22:43:54 +0800
Subject: [PATCH] Cancel sphinx version limit
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 3f39730..6acc10a 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ Breathe is an extension to reStructuredText and Sphinx to be able to read and
render `Doxygen <http://www.doxygen.org>`__ xml output.
'''
-requires = ['Sphinx>=3.0,<3.6', 'docutils>=0.12', 'six>=1.9']
+requires = ['Sphinx>=3.0', 'docutils>=0.12', 'six>=1.9']
if sys.version_info < (3, 5):
print('ERROR: Sphinx requires at least Python 3.5 to run.')
--
2.30.0

Binary file not shown.

View File

@ -1,93 +1,85 @@
%global _empty_manifest_terminate_build 0
Name: python-breathe
Version: 4.29.0
Release: 3
Summary: Sphinx Doxygen renderer
License: BSD-3-Clause
Version: 4.11.1
Release: 1
Summary: An extension to reStructuredText and Sphinx
License: BSD
URL: https://github.com/michaeljones/breathe
Source0: https://files.pythonhosted.org/packages/df/0f/a1946bbc0731ac02ca191b11ca18c634310dd8d37121c5e21b06960e2f28/breathe-4.29.0.tar.gz
Patch0: 0001-Cancel-sphinx-version-limit.patch
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
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 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}
%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 Doxygens 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-4.29.0 -p1
%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 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 Jan 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

Binary file not shown.