[packages/docbook-dtd50-xml] - added catalog patch to make public more system entries (for daps); release 2
qboosh
qboosh at pld-linux.org
Sun Mar 14 21:29:36 CET 2021
commit b9a0dd0fc5a2d037756a0a40a23318abce1c0b76
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 14 21:30:34 2021 +0100
- added catalog patch to make public more system entries (for daps); release 2
docbook-dtd50-xml-catalog.patch | 15 +++++++++++++++
docbook-dtd50-xml.spec | 16 +++++-----------
2 files changed, 20 insertions(+), 11 deletions(-)
---
diff --git a/docbook-dtd50-xml.spec b/docbook-dtd50-xml.spec
index 5ac80b6..74dc5e3 100644
--- a/docbook-dtd50-xml.spec
+++ b/docbook-dtd50-xml.spec
@@ -2,12 +2,13 @@ Summary: XML DocBook DTD 5.0
Summary(pl.UTF-8): XML DocBook DTD 5.0
Name: docbook-dtd50-xml
Version: 5.0
-Release: 1
+Release: 2
License: Free
Group: Applications/Publishing/XML
-Source0: http://docbook.org/xml/%{version}/docbook-%{version}.zip
+Source0: https://docbook.org/xml/%{version}/docbook-%{version}.zip
# Source0-md5: 2411c19ed4fb141f3fa3d389fae40736
-URL: http://docbook.org/
+Patch0: %{name}-catalog.patch
+URL: https://docbook.org/
BuildRequires: libxml2-progs
BuildRequires: rpm-build >= 4.0.2-94
BuildRequires: unzip
@@ -37,7 +38,7 @@ Ten pakiet zawiera wersję DocBook 5.0 XML.
%prep
%setup -q -n docbook-5.0
-#chmod -R a+rX *
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
@@ -46,13 +47,6 @@ install -d $RPM_BUILD_ROOT%{dtd_path}
cp -p catalog.xml $RPM_BUILD_ROOT%{dtd_path}
cp -a dtd rng sch xsd $RPM_BUILD_ROOT%{dtd_path}
-%if 0
-%xmlcat_add_rewrite \
- http://docbook.org/xml/%{version} \
- file://%{dtd_path} \
- $RPM_BUILD_ROOT%{xmlcat_file}
-%endif
-
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/docbook-dtd50-xml-catalog.patch b/docbook-dtd50-xml-catalog.patch
new file mode 100644
index 0000000..366db9b
--- /dev/null
+++ b/docbook-dtd50-xml-catalog.patch
@@ -0,0 +1,15 @@
+Required for daps to detect DocBook 5.0 XML
+--- docbook-5.0/catalog.xml.orig 2008-02-06 15:13:23.000000000 +0100
++++ docbook-5.0/catalog.xml 2021-03-14 20:27:42.789901127 +0100
+@@ -25,6 +25,11 @@
+
+ <system systemId="http://docbook.org/xml/5.0/dtd/docbook.dtd" uri="dtd/docbook.dtd"/>
+
++<system systemId="http://docbook.org/xml/5.0/rng/docbook.rnc" uri="rng/docbook.rnc"/>
++<system systemId="http://docbook.org/xml/5.0/rng/docbook.rng" uri="rng/docbook.rng"/>
++<system systemId="http://docbook.org/xml/5.0/rng/docbookxi.rnc" uri="rng/docbookxi.rnc"/>
++<system systemId="http://docbook.org/xml/5.0/rng/docbookxi.rng" uri="rng/docbookxi.rng"/>
++
+ <uri name="http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" uri="rng/docbook.rng"/>
+
+ <uri name="http://docbook.org/xml/5.0/rng/docbook.rng" uri="rng/docbook.rng"/>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/docbook-dtd50-xml.git/commitdiff/b9a0dd0fc5a2d037756a0a40a23318abce1c0b76
More information about the pld-cvs-commit
mailing list