- Add docbook_5-nvdl.patch to change path to DocBook RNG/SCH files

OBS-URL: https://build.opensuse.org/package/show/Publishing/docbook_5?expand=0&rev=22
This commit is contained in:
Thomas Schraitle 2017-11-24 09:02:29 +00:00 committed by Git OBS Bridge
parent c15174c855
commit a8425675b8
5 changed files with 39 additions and 30 deletions

View File

@ -1,13 +0,0 @@
--- docbook-5.0/docbook.nvdl.bak 2017-11-10 20:33:44.294076884 +0100
+++ docbook-5.0/docbook.nvdl 2017-11-10 20:34:26.114496772 +0100
@@ -4,8 +4,8 @@
<mode name="docbook">
<namespace ns="http://docbook.org/ns/docbook">
- <validate schema="rng/docbook.rng" useMode="attach"/>
- <validate schema="sch/docbook.sch" useMode="attach"/>
+ <validate schema="docbook.rng" useMode="attach"/>
+ <validate schema="docbook.sch" useMode="attach"/>
</namespace>
</mode>

View File

@ -1,13 +0,0 @@
--- docbook-5.1/docbook.nvdl.bak 2017-11-10 20:38:32.596975700 +0100
+++ docbook-5.1/docbook.nvdl 2017-11-10 20:38:47.445124748 +0100
@@ -4,8 +4,8 @@
<mode name="docbook">
<namespace ns="http://docbook.org/ns/docbook">
- <validate schema="rng/docbook.rng" useMode="attach"/>
- <validate schema="sch/docbook.sch" useMode="attach"/>
+ <validate schema="docbook.rng" useMode="attach"/>
+ <validate schema="docbook.sch" useMode="attach"/>
</namespace>
</mode>

35
docbook_5-nvdl.patch Normal file
View File

@ -0,0 +1,35 @@
From: Thomas Schraitle <toms@opensuse.org>
Date: 2017-11-10 20:33:44 +0100
Subject: change path to DocBook RNG/SCH schema files
References: n/a
Upstream: no
openSUSE installs links in the nvdl/ folder so the path to the
DocBook schema files were necessary.
--- docbook-5.0/docbook.nvdl.bak 2017-11-10 20:33:44.294076884 +0100
+++ docbook-5.0/docbook.nvdl 2017-11-10 20:34:26.114496772 +0100
@@ -4,8 +4,8 @@
<mode name="docbook">
<namespace ns="http://docbook.org/ns/docbook">
- <validate schema="rng/docbook.rng" useMode="attach"/>
- <validate schema="sch/docbook.sch" useMode="attach"/>
+ <validate schema="docbook.rng" useMode="attach"/>
+ <validate schema="docbook.sch" useMode="attach"/>
</namespace>
</mode>
--- docbook-5.1/docbook.nvdl.bak 2017-11-10 20:38:32.596975700 +0100
+++ docbook-5.1/docbook.nvdl 2017-11-10 20:38:47.445124748 +0100
@@ -4,8 +4,8 @@
<mode name="docbook">
<namespace ns="http://docbook.org/ns/docbook">
- <validate schema="rng/docbook.rng" useMode="attach"/>
- <validate schema="sch/docbook.sch" useMode="attach"/>
+ <validate schema="docbook.rng" useMode="attach"/>
+ <validate schema="docbook.sch" useMode="attach"/>
</namespace>
</mode>

View File

@ -8,7 +8,7 @@ Sun Nov 12 17:02:51 UTC 2017 - thomas.schraitle@suse.com
- Add missing assembly.rn{c,g} and dbits.rn{c,g} for Schematron
- Correct spec file:
- Add docbook_5-docbook5{0,1}.nvdl.patch
- Add docbook_5-nvdl.patch to change path to DocBook RNG/SCH files
- Apply spec-cleaner
-------------------------------------------------------------------

View File

@ -38,8 +38,9 @@ Source500: docbook-5.0.tar.bz2
# DB 5.1
Source510: docbook-5.1.tar.bz2
#
Patch501: %{name}-docbook50.nvdl.patch
Patch511: %{name}-docbook51.nvdl.patch
# PATCH-FIX-OPENSUSE docbook_5-nvdl.patch change path to schema files
Patch501: %{name}-nvdl.patch
#
BuildRequires: fdupes
BuildRequires: sgml-skel
@ -96,7 +97,6 @@ find . -type f | xargs chmod a-x
# Patching
%patch501
%patch511
%build
# Nothing to build