Compare commits

...

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
5b3e40b854
!46 修复%check失败
From: @disandai 
Reviewed-by: @technology208 
Signed-off-by: @technology208
2024-11-26 06:27:52 +00:00
Wenhua Huang
04793e7346 Fix mkhtml test fail 2024-11-20 19:04:43 +08:00
openeuler-ci-bot
f96ea737e2
!28 remove useless BuildRequires
From: @sdlzx 
Reviewed-by: @zhang__3125 
Signed-off-by: @zhang__3125
2022-10-31 03:08:31 +00:00
openeuler-ci-bot
febf1d71d3
!30 fix spec changelog date
From: @loong-C 
Reviewed-by: @zhang__3125 
Signed-off-by: @zhang__3125
2022-06-23 09:42:45 +00:00
loong_C
15e383049e fix spec changelog date 2022-06-09 13:38:53 +08:00
Liu Zixian
65fb57240c remove useless BuildRequires 2022-02-19 11:11:47 +08:00
openeuler-ci-bot
14d684deae !27 Del buildrequire dblatex by replace macro @DBLATEX@ with dblatex path
From: @si-gui
Reviewed-by: @dwl301
Signed-off-by: @dwl301
2021-10-15 11:06:12 +00:00
sunguoshuai
1c5e7bd5dc Del buildrequire dblatex by replace macro @DBLATEX@ with dblatex path 2021-10-15 17:31:40 +08:00
openeuler-ci-bot
2b8f5e4ec3 !14 Del useless buildrequire gdb
From: @si-gui
Reviewed-by: @small_leek,@orange-snn
Signed-off-by: @small_leek,@orange-snn
2021-07-28 01:47:56 +00:00
sigui
7042695e2f Merge branch 'master' of gitee.com:src-openeuler/gtk-doc into master 2021-07-27 01:41:45 +00:00
openeuler-ci-bot
1f4507c2ff !21 fix gtkdoc-rebase NoneType object has no attribute group error
From: @wang--ge
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2021-07-26 11:02:27 +00:00
wang--ge
cd2f8df1e0 fix gtkdoc-rebase NoneType object has no attribute group 2021-07-26 17:18:18 +08:00
3 changed files with 81 additions and 6 deletions

View File

@ -0,0 +1,27 @@
From 1caecce7002efded6cc3cc95e17372a98189b6f1 Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Mon, 26 Jul 2021 16:21:42 +0800
Subject: [PATCH] fix gtkdoc-rebase NoneType object has no attribute group
error
---
gtkdoc/rebase.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gtkdoc/rebase.py b/gtkdoc/rebase.py
index 31a9b4f..60a8ebf 100755
--- a/gtkdoc/rebase.py
+++ b/gtkdoc/rebase.py
@@ -228,7 +228,8 @@ def RebaseLink(href, options):
package = match.group(1)
elif options.aggressive:
match = re.search(r'''([^/]+)/$''', href)
- package = match.group(1)
+ if not match is None:
+ package = match.group(1)
if package:
if options.online and package in OnlineMap:
--
2.27.0

33
fix-mkhtml-test.patch Normal file
View File

@ -0,0 +1,33 @@
From 951743698610eaaa0cc9030f7d7d02437419ac24 Mon Sep 17 00:00:00 2001
From: Neil Hanlon <neil@shrug.pw>
Date: Fri, 9 Feb 2024 15:32:38 -0500
Subject: [PATCH] Add gobject example source code to path for mkhtml test
Fixes #150
I'm not really sure why this is required, but I suspect it has to do
with changes in how GCC handles path traversal due to recent (ish)
security issues, as the code here is evaluated to
`../xml/../../examples/gobject.c` which probably looks unhealthy to
automatically include.
Signed-off-by: Neil Hanlon <neil@shrug.pw>
---
tests/gobject/docs/meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/gobject/docs/meson.build b/tests/gobject/docs/meson.build
index a1dd66c..236a1cc 100644
--- a/tests/gobject/docs/meson.build
+++ b/tests/gobject/docs/meson.build
@@ -119,6 +119,7 @@ test(
'--path=@0@'.format(':'.join([
gobject_test_docs_dir,
srcdir,
+ join_paths(srcdir, 'tests/gobject/examples'),
])
),
],
--
GitLab

View File

@ -3,22 +3,24 @@
Name: gtk-doc Name: gtk-doc
Version: 1.33.2 Version: 1.33.2
Release: 3 Release: 7
Summary: Generate API documentation from comments that can be added to C code Summary: Generate API documentation from comments that can be added to C code
License: GPLv2+ and GFDL License: GPLv2+
URL: https://www.gtk.org/gtk-doc/ URL: https://www.gtk.org/gtk-doc/
Source0: https://download.gnome.org/sources/gtk-doc/1.33/%{name}-%{version}.tar.xz Source0: https://download.gnome.org/sources/gtk-doc/1.33/%{name}-%{version}.tar.xz
Patch0: fix-fixxref-not-found-file.patch Patch0: fix-fixxref-not-found-file.patch
Patch1: fix-mkdb-not-found-file.patch Patch1: fix-mkdb-not-found-file.patch
Patch2: fix-gtkdoc-rebase-NoneType-object-has-no-attribute-group.patch
Patch3: fix-mkhtml-test.patch
BuildRequires: python3-devel docbook-utils libxslt gettext BuildRequires: docbook-utils libxslt gettext
BuildRequires: itstool yelp-tools docbook-style-xsl gcc BuildRequires: itstool yelp-tools docbook-style-xsl gcc
BuildRequires: dblatex meson glib2-devel BuildRequires: meson glib2-devel
BuildRequires: python3-pygments BuildRequires: python3-pygments
BuildRequires: python3-parameterized BuildRequires: python3-parameterized
BuildRequires: python3-anytree BuildRequires: python3-anytree
BuildRequires: python3-lxml BuildRequires: python3-lxml
Requires: docbook-style-xsl docbook-utils libxslt Requires: docbook-style-xsl docbook-utils libxslt glib2-devel
Requires: python3-pygments python3-parameterized python3-anytree python3-lxml Requires: python3-pygments python3-parameterized python3-anytree python3-lxml
@ -29,6 +31,7 @@ to document application code.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
sed -i 's/@DBLATEX@/\/usr\/bin\/dblatex/g' gtkdoc/config_data.py.in
mv doc/README doc/README.1 mv doc/README doc/README.1
@ -54,9 +57,21 @@ export PYTHON=%{__python3}
%{_datadir}/help/*/%{name}-manual/ %{_datadir}/help/*/%{name}-manual/
%changelog %changelog
* Thu 22 Jul 2021 sunguoshuai <sunguoshuai@huawei.com> - 1.33.2-3 * Wed Nov 20 2024 Wenhua Huang <huangwenhua@kylinos.cn> - 1.33.2-7
- Fix mkhtml test
* Sat Feb 19 2022 Liu Zixian <liuzixian4@huawei.com> - 1.33.2-6
- Remove useless BuildRequires python3-devel
* Fri Oct 15 2021 sunguoshuai <sunguoshuai@huawei.com> - 1.33.2-5
- Del buildrequire dblatex by replace macro @DBLATEX@ with dblatex path
* Tue Jul 27 2021 sunguoshuai <sunguoshuai@huawei.com> - 1.33.2-4
- Del useless buildrequire gdb - Del useless buildrequire gdb
* Mon Jul 26 2021 Ge Wang <wangge20@huawei.com> - 1.33.2-3
- fix gtkdoc-rebase NoneType object has no attribute 'group'
* Sun Jul 25 2021 liyanan <liyanan32@huawei.com> - 1.33.2-2 * Sun Jul 25 2021 liyanan <liyanan32@huawei.com> - 1.33.2-2
- fix not found file - fix not found file