[packages/gpsbabel] - disable jing (uses network to access docbook stylesheets)

qboosh qboosh at pld-linux.org
Wed Jun 26 22:26:42 CEST 2024


commit 04c81948caf15df9e2eca4f88fb6e39ade4d1010
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jun 26 22:23:12 2024 +0200

    - disable jing (uses network to access docbook stylesheets)

 gpsbabel-no-jing.patch | 11 +++++++++++
 gpsbabel.spec          |  5 +++--
 2 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/gpsbabel.spec b/gpsbabel.spec
index 9ceddaa..5b47237 100644
--- a/gpsbabel.spec
+++ b/gpsbabel.spec
@@ -35,6 +35,7 @@ Source0:	https://github.com/GPSBabel/gpsbabel/archive/%{name}_%{fver}.tar.gz
 # Source0-md5:	8555b7b4c89fbae832451ed0679e04f0
 Source1:	%{name}.desktop
 Source2:	%{name}.png
+Patch0:		%{name}-no-jing.patch
 Patch2:		gmapbase.patch
 Patch4:		privacy.patch
 URL:		http://www.gpsbabel.org/
@@ -82,8 +83,7 @@ BuildRequires:	qt6-linguist >= %{qt6_ver}
 BuildRequires:	docbook-dtd50-xml
 BuildRequires:	docbook-style-xsl-ns
 BuildRequires:	libxslt-progs
-# xmllint + (optional) jing for validation
-BuildRequires:	jing
+# xmllint for validation
 BuildRequires:	libxml2-progs
 %endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -116,6 +116,7 @@ Graficzny interfejs Qt do programu GPSBabel.
 
 %prep
 %setup -q -n %{name}-%{name}_%{fver}
+%patch0 -p1
 %patch2 -p1
 %patch4 -p1
 
diff --git a/gpsbabel-no-jing.patch b/gpsbabel-no-jing.patch
new file mode 100644
index 0000000..48d3106
--- /dev/null
+++ b/gpsbabel-no-jing.patch
@@ -0,0 +1,11 @@
+--- gpsbabel-gpsbabel_1_9_0/tools/make_gpsbabel_doc.sh.orig	2023-09-30 18:51:46.000000000 +0200
++++ gpsbabel-gpsbabel_1_9_0/tools/make_gpsbabel_doc.sh	2024-06-26 22:21:51.926083734 +0200
+@@ -6,7 +6,7 @@ xmllint --noout --relaxng http://docbook
+ # the following doesn't seem to work.
+ #xmllint --noout --schematron http://docbook.org/xml/5.0/sch/docbook.sch xmldoc/readme.xml
+ # jing and many depedencies removed from fedora
+-if command -v jing >/dev/null 2>&1; then
++if false; then
+   jing http://docs.oasis-open.org/docbook/xml/5.0/rng/docbook.rng xmldoc/readme.xml
+   # can seed a failure by removing version="5.0" from xmldoc/readme.xml
+   jing http://docs.oasis-open.org/docbook/xml/5.0/sch/docbook.sch xmldoc/readme.xml
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gpsbabel.git/commitdiff/04c81948caf15df9e2eca4f88fb6e39ade4d1010



More information about the pld-cvs-commit mailing list