1
0

2 Commits

3 changed files with 108 additions and 5 deletions

92
fix-doc-link.patch Normal file
View File

@@ -0,0 +1,92 @@
From 178e99067d52a5690b949531df8dc6626be2ee26 Mon Sep 17 00:00:00 2001
From: Joachim Gleissner <jgleissner@suse.com>
Date: Tue, 3 Dec 2024 12:41:43 +0000
Subject: [PATCH 1/4] Fix link to OBS documentation
---
doc/source/image_definition.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/source/image_definition.rst b/doc/source/image_definition.rst
index 890308a..5d58d15 100644
--- a/doc/source/image_definition.rst
+++ b/doc/source/image_definition.rst
@@ -411,7 +411,7 @@ etc., apply as for the image dictionary.
Custom XML files can be useful when generating image descriptions for use in
the Open Build Service, which accepts build configuration directives via XML
source files, like the :file:`_constraints` file. See
-`<https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.build_job_constraints.html>`__
+`<https://openbuildservice.org/help/manuals/obs-user-guide/cha-obs-build-constraints>`__
for details.
schema
From 0f49f67928775e2ced5ce5c9ecc52c861cff32b5 Mon Sep 17 00:00:00 2001
From: Joachim Gleissner <jgleissner@suse.com>
Date: Tue, 3 Dec 2024 15:07:28 +0000
Subject: [PATCH 2/4] Use newer docbook schema
---
doc/DC-keg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/DC-keg b/doc/DC-keg
index d372dbc..fe0353e 100644
--- a/doc/DC-keg
+++ b/doc/DC-keg
@@ -5,4 +5,4 @@ MAIN=xml/book.xml
ADOC_POST=yes
ADOC_TYPE=book
STYLEROOT="/usr/share/xml/docbook/stylesheet/suse2022-ns"
-DOCBOOK5_RNG_URI="file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rnc"
+DOCBOOK5_RNG_URI="file:///usr/share/xml/docbook/schema/rng/5.2/docbookxi.rnc"
From 83502d13bf7face68fe3a2a1d57d7701afec7242 Mon Sep 17 00:00:00 2001
From: Joachim Gleissner <jgleissner@suse.com>
Date: Tue, 3 Dec 2024 15:09:01 +0000
Subject: [PATCH 3/4] Avoid Sphinx warning
Do not set html_theme_path. It is not required in recent Sphinx and this
avoids a deprecation warning wrt get_html_theme_path().
---
doc/source/conf.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 4462038..ce05d6b 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -89,8 +89,6 @@
html_theme = "sphinx_rtd_theme"
-html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
-
html_theme_options = {
'collapse_navigation': False,
'display_version': False
From 15b981f98792a872ded73c5b47c9f459a349e719 Mon Sep 17 00:00:00 2001
From: Joachim Gleissner <jgleissner@suse.com>
Date: Tue, 3 Dec 2024 15:26:27 +0000
Subject: [PATCH 4/4] Fix Sphinx warning about theme options
Do not set obsolete display_version parameter in html_theme_options.
---
doc/source/conf.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/doc/source/conf.py b/doc/source/conf.py
index ce05d6b..e02f6ba 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -90,8 +90,7 @@
html_theme = "sphinx_rtd_theme"
html_theme_options = {
- 'collapse_navigation': False,
- 'display_version': False
+ 'collapse_navigation': False
}
# -- Options for manual page output ---------------------------------------

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jan 31 15:05:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add fix-doc-link.patch to fix build with new Sphinx
- Also convert to pyproject macros to prepare for python 3.14
-------------------------------------------------------------------
Fri Jul 28 15:36:31 UTC 2023 - jgleissner@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-kiwi-keg
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2022 SUSE Software Solutions Germany GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -31,11 +31,16 @@ URL: https://github.com/SUSE-Enceladus/keg
Summary: KEG - Image Composition Tool
License: GPL-3.0-or-later
Source: keg-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/SUSE-Enceladus/keg/pull/154 Fix link to OBS documentation
Patch0: fix-doc-link.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sphinx_rtd_theme}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildArch: noarch
Requires: python-Jinja2
@@ -51,7 +56,7 @@ Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
%endif
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
Provides: python3-kiwi-keg = %version
@@ -77,17 +82,17 @@ more given git repositories that contain keg-recipes source tree. It supports
auto-generation of change log files from commit history.
%prep
%setup -q -n keg-%{version}
%autosetup -p1 -n keg-%{version}
%build
# Build Python 3 version
%python_build
%pyproject_wheel
# Build man pages
make -C doc man
%install
%python_install
%pyproject_install
make buildroot=%{buildroot}/ docdir=%{_defaultdocdir}/ install
%python_clone -a %{buildroot}%{_bindir}/keg