Compare commits

..

No commits in common. 'c9' and 'cs10' have entirely different histories.
c9 ... cs10

@ -1,5 +1,5 @@
--- docbook-dtds-1.0/4.2-sgml/docbookx.dtd.euro 2003-07-15 09:07:58.000000000 +0100
+++ docbook-dtds-1.0/4.2-sgml/docbookx.dtd 2003-07-15 09:08:12.000000000 +0100
--- 4.2-sgml/docbookx.dtd.euro 2003-07-15 09:07:58.000000000 +0100
+++ 4.2-sgml/docbookx.dtd 2003-07-15 09:08:12.000000000 +0100
@@ -106,7 +106,7 @@
<![%dbcent.module;[
@ -9,8 +9,8 @@
]]>
<![%xml.features;[
<!ENTITY euro "&#x20AC;"><!-- euro sign, U+20AC NEW -->
--- docbook-dtds-1.0/4.2-xml/docbookx.dtd.euro 2003-07-15 09:08:02.000000000 +0100
+++ docbook-dtds-1.0/4.2-xml/docbookx.dtd 2003-07-15 09:08:21.000000000 +0100
--- 4.2-xml/docbookx.dtd.euro 2003-07-15 09:08:02.000000000 +0100
+++ 4.2-xml/docbookx.dtd 2003-07-15 09:08:21.000000000 +0100
@@ -106,7 +106,7 @@
<![%dbcent.module;[

@ -1,5 +1,5 @@
--- docbook.cat Tue Dec 10 16:35:22 1996
+++ catalog Mon Jun 5 11:08:34 2000
--- 3.0-sgml/docbook.cat Tue Dec 10 16:35:22 1996
+++ 3.0-sgml/catalog Mon Jun 5 11:08:34 2000
@@ -41,29 +41,6 @@
PUBLIC "-//Davenport//ELEMENTS DocBook Information Pool V3.0//EN" "dbpool.mod"
PUBLIC "-//Davenport//ELEMENTS DocBook Document Hierarchy V3.0//EN" "dbhier.mod"

@ -1,5 +1,5 @@
--- docbook.cat Tue Feb 2 06:53:32 1999
+++ catalog Thu May 25 11:45:01 2000
--- 3.1-sgml/docbook.cat Tue Feb 2 06:53:32 1999
+++ 3.1-sgml/catalog Thu May 25 11:45:01 2000
@@ -35,29 +35,6 @@
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V3.1//EN" "dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V3.1//EN" "dbnotn.mod"

@ -1,5 +1,5 @@
--- docbook.cat Mon May 22 22:38:05 2000
+++ catalog Mon May 22 22:12:36 2000
--- 4.0-sgml/docbook.cat Mon May 22 22:38:05 2000
+++ 4.0-sgml/catalog Mon May 22 22:12:36 2000
@@ -35,29 +35,6 @@
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.0//EN" "dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.0//EN" "dbnotn.mod"

@ -1,5 +1,5 @@
--- docbook.cat Mon May 22 22:38:05 2000
+++ catalog Mon May 22 22:12:36 2000
--- 4.1-sgml/docbook.cat Mon May 22 22:38:05 2000
+++ 4.1-sgml/catalog Mon May 22 22:12:36 2000
@@ -35,29 +35,6 @@
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.1//EN" "dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.1//EN" "dbnotn.mod"

@ -1,6 +1,6 @@
diff -urNp docbook-dtds-1.0-orig/4.1.2-xml/docbook.cat docbook-dtds-1.0/4.1.2-xml/docbook.cat
--- docbook-dtds-1.0-orig/4.1.2-xml/docbook.cat 2009-02-19 13:49:08.000000000 +0100
+++ docbook-dtds-1.0/4.1.2-xml/docbook.cat 2009-02-19 13:50:59.000000000 +0100
--- 4.1.2-xml/docbook.cat 2009-02-19 13:49:08.000000000 +0100
+++ 4.1.2-xml/docbook.cat 2009-02-19 13:50:59.000000000 +0100
@@ -41,25 +41,25 @@ PUBLIC "-//OASIS//ENTITIES DocBook XML C
-- ...................................................................... --
-- ISO entity sets ...................................................... --

@ -1,5 +1,5 @@
--- docbook.cat.orig 2002-07-17 17:14:28.000000000 +0100
+++ docbook.cat 2002-07-17 21:58:24.000000000 +0100
--- 4.2-sgml/docbook.cat.orig 2002-07-17 17:14:28.000000000 +0100
+++ 4.2-sgml/docbook.cat 2002-07-17 21:58:24.000000000 +0100
@@ -49,65 +49,5 @@
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN"
"dbcentx.mod"

@ -1,5 +1,5 @@
--- docbook-dtds-1.0/4.3-sgml/docbook.cat.ents 2005-12-13 13:14:24.000000000 +0000
+++ docbook-dtds-1.0/4.3-sgml/docbook.cat 2005-12-13 13:14:38.000000000 +0000
--- 4.3-sgml/docbook.cat.ents 2005-12-13 13:14:24.000000000 +0000
+++ 4.3-sgml/docbook.cat 2005-12-13 13:14:38.000000000 +0000
@@ -51,6 +51,7 @@
-- ...................................................................... --
@ -15,8 +15,8 @@
+--
-- End of catalog data for DocBook V4.3 ................................. --
-- ...................................................................... --
--- docbook-dtds-1.0/4.4-sgml/docbook.cat.ents 2005-12-13 13:14:51.000000000 +0000
+++ docbook-dtds-1.0/4.4-sgml/docbook.cat 2005-12-13 13:14:59.000000000 +0000
--- 4.4-sgml/docbook.cat.ents 2005-12-13 13:14:51.000000000 +0000
+++ 4.4-sgml/docbook.cat 2005-12-13 13:14:59.000000000 +0000
@@ -54,6 +54,7 @@
-- ...................................................................... --
@ -32,9 +32,9 @@
+--
-- End of catalog data for DocBook V4.4 ................................. --
-- ...................................................................... --
diff -urNp docbook-dtds-1.0-orig/4.5-sgml/docbook.cat docbook-dtds-1.0/4.5-sgml/docbook.cat
diff -urNp docbook-dtds-1.0-orig/4.5-sgml/docbook.cat 4.5-sgml/docbook.cat
--- docbook-dtds-1.0-orig/4.5-sgml/docbook.cat 2009-02-19 13:45:22.000000000 +0100
+++ docbook-dtds-1.0/4.5-sgml/docbook.cat 2009-02-19 13:47:31.000000000 +0100
+++ 4.5-sgml/docbook.cat 2009-02-19 13:47:31.000000000 +0100
@@ -60,6 +60,7 @@ PUBLIC "-//OASIS//ENTITIES DocBook Chara
-- ...................................................................... --

@ -1,5 +1,5 @@
diff -urNp docbook-dtds-1.0-orig/3.0-sgml/docbook.cat docbook-dtds-1.0/3.0-sgml/docbook.cat
--- docbook-dtds-1.0-orig/3.0-sgml/docbook.cat 2009-02-05 16:44:15.000000000 +0100
diff -urNp 3.0-sgml/docbook.cat docbook-dtds-1.0/3.0-sgml/docbook.cat
--- 3.0-sgml/docbook.cat 2009-02-05 16:44:15.000000000 +0100
+++ docbook-dtds-1.0/3.0-sgml/docbook.cat 2009-02-05 16:48:58.000000000 +0100
@@ -30,6 +30,12 @@
DTDDECL "-//Davenport//DTD DocBook V3.0//EN" "docbook.dcl"
@ -14,8 +14,8 @@ diff -urNp docbook-dtds-1.0-orig/3.0-sgml/docbook.cat docbook-dtds-1.0/3.0-sgml/
-- DocBook driver file .................................................. --
PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd"
diff -urNp docbook-dtds-1.0-orig/3.1-sgml/docbook.cat docbook-dtds-1.0/3.1-sgml/docbook.cat
--- docbook-dtds-1.0-orig/3.1-sgml/docbook.cat 2009-02-05 16:44:15.000000000 +0100
diff -urNp 3.1-sgml/docbook.cat docbook-dtds-1.0/3.1-sgml/docbook.cat
--- 3.1-sgml/docbook.cat 2009-02-05 16:44:15.000000000 +0100
+++ docbook-dtds-1.0/3.1-sgml/docbook.cat 2009-02-05 16:56:51.000000000 +0100
@@ -22,6 +22,12 @@
DTDDECL "-//OASIS//DTD DocBook V3.1//EN" "docbook.dcl"
@ -30,8 +30,8 @@ diff -urNp docbook-dtds-1.0-orig/3.1-sgml/docbook.cat docbook-dtds-1.0/3.1-sgml/
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook V3.1//EN" "docbook.dtd"
diff -urNp docbook-dtds-1.0-orig/4.0-sgml/docbook.cat docbook-dtds-1.0/4.0-sgml/docbook.cat
--- docbook-dtds-1.0-orig/4.0-sgml/docbook.cat 2009-02-05 16:44:16.000000000 +0100
diff -urNp 4.0-sgml/docbook.cat docbook-dtds-1.0/4.0-sgml/docbook.cat
--- 4.0-sgml/docbook.cat 2009-02-05 16:44:16.000000000 +0100
+++ docbook-dtds-1.0/4.0-sgml/docbook.cat 2009-02-05 16:49:06.000000000 +0100
@@ -22,6 +22,12 @@
DTDDECL "-//OASIS//DTD DocBook V4.0//EN" "docbook.dcl"
@ -46,8 +46,8 @@ diff -urNp docbook-dtds-1.0-orig/4.0-sgml/docbook.cat docbook-dtds-1.0/4.0-sgml/
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
diff -urNp docbook-dtds-1.0-orig/4.1-sgml/docbook.cat docbook-dtds-1.0/4.1-sgml/docbook.cat
--- docbook-dtds-1.0-orig/4.1-sgml/docbook.cat 2009-02-05 16:44:16.000000000 +0100
diff -urNp 4.1-sgml/docbook.cat docbook-dtds-1.0/4.1-sgml/docbook.cat
--- 4.1-sgml/docbook.cat 2009-02-05 16:44:16.000000000 +0100
+++ docbook-dtds-1.0/4.1-sgml/docbook.cat 2009-02-05 16:49:27.000000000 +0100
@@ -22,6 +22,12 @@
DTDDECL "-//OASIS//DTD DocBook V4.1//EN" "docbook.dcl"
@ -62,8 +62,8 @@ diff -urNp docbook-dtds-1.0-orig/4.1-sgml/docbook.cat docbook-dtds-1.0/4.1-sgml/
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
diff -urNp docbook-dtds-1.0-orig/4.1.2-xml/docbook.cat docbook-dtds-1.0/4.1.2-xml/docbook.cat
--- docbook-dtds-1.0-orig/4.1.2-xml/docbook.cat 2000-08-27 17:19:42.000000000 +0200
diff -urNp 4.1.2-xml/docbook.cat docbook-dtds-1.0/4.1.2-xml/docbook.cat
--- 4.1.2-xml/docbook.cat 2000-08-27 17:19:42.000000000 +0200
+++ docbook-dtds-1.0/4.1.2-xml/docbook.cat 2009-02-05 16:52:16.000000000 +0100
@@ -17,6 +17,12 @@
--
@ -78,8 +78,8 @@ diff -urNp docbook-dtds-1.0-orig/4.1.2-xml/docbook.cat docbook-dtds-1.0/4.1.2-xm
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbookx.dtd"
diff -urNp docbook-dtds-1.0-orig/4.2-sgml/docbook.cat docbook-dtds-1.0/4.2-sgml/docbook.cat
--- docbook-dtds-1.0-orig/4.2-sgml/docbook.cat 2009-02-05 16:44:17.000000000 +0100
diff -urNp 4.2-sgml/docbook.cat docbook-dtds-1.0/4.2-sgml/docbook.cat
--- 4.2-sgml/docbook.cat 2009-02-05 16:44:17.000000000 +0100
+++ docbook-dtds-1.0/4.2-sgml/docbook.cat 2009-02-05 16:50:10.000000000 +0100
@@ -17,6 +17,12 @@
--
@ -94,8 +94,8 @@ diff -urNp docbook-dtds-1.0-orig/4.2-sgml/docbook.cat docbook-dtds-1.0/4.2-sgml/
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook V4.2//EN"
diff -urNp docbook-dtds-1.0-orig/4.2-xml/docbook.cat docbook-dtds-1.0/4.2-xml/docbook.cat
--- docbook-dtds-1.0-orig/4.2-xml/docbook.cat 2002-07-17 18:14:41.000000000 +0200
diff -urNp 4.2-xml/docbook.cat docbook-dtds-1.0/4.2-xml/docbook.cat
--- 4.2-xml/docbook.cat 2002-07-17 18:14:41.000000000 +0200
+++ docbook-dtds-1.0/4.2-xml/docbook.cat 2009-02-05 16:52:53.000000000 +0100
@@ -17,6 +17,12 @@
--
@ -110,8 +110,8 @@ diff -urNp docbook-dtds-1.0-orig/4.2-xml/docbook.cat docbook-dtds-1.0/4.2-xml/do
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
diff -urNp docbook-dtds-1.0-orig/4.3-sgml/docbook.cat docbook-dtds-1.0/4.3-sgml/docbook.cat
--- docbook-dtds-1.0-orig/4.3-sgml/docbook.cat 2009-02-05 16:44:18.000000000 +0100
diff -urNp 4.3-sgml/docbook.cat docbook-dtds-1.0/4.3-sgml/docbook.cat
--- 4.3-sgml/docbook.cat 2009-02-05 16:44:18.000000000 +0100
+++ docbook-dtds-1.0/4.3-sgml/docbook.cat 2009-02-05 16:50:37.000000000 +0100
@@ -17,6 +17,13 @@
--
@ -127,8 +127,8 @@ diff -urNp docbook-dtds-1.0-orig/4.3-sgml/docbook.cat docbook-dtds-1.0/4.3-sgml/
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook V4.3//EN"
diff -urNp docbook-dtds-1.0-orig/4.3-xml/docbook.cat docbook-dtds-1.0/4.3-xml/docbook.cat
--- docbook-dtds-1.0-orig/4.3-xml/docbook.cat 2004-03-31 13:22:18.000000000 +0200
diff -urNp 4.3-xml/docbook.cat docbook-dtds-1.0/4.3-xml/docbook.cat
--- 4.3-xml/docbook.cat 2004-03-31 13:22:18.000000000 +0200
+++ docbook-dtds-1.0/4.3-xml/docbook.cat 2009-02-05 16:53:12.000000000 +0100
@@ -17,6 +17,12 @@
--
@ -143,8 +143,8 @@ diff -urNp docbook-dtds-1.0-orig/4.3-xml/docbook.cat docbook-dtds-1.0/4.3-xml/do
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
diff -urNp docbook-dtds-1.0-orig/4.4-sgml/docbook.cat docbook-dtds-1.0/4.4-sgml/docbook.cat
--- docbook-dtds-1.0-orig/4.4-sgml/docbook.cat 2009-02-05 16:44:18.000000000 +0100
diff -urNp 4.4-sgml/docbook.cat docbook-dtds-1.0/4.4-sgml/docbook.cat
--- 4.4-sgml/docbook.cat 2009-02-05 16:44:18.000000000 +0100
+++ docbook-dtds-1.0/4.4-sgml/docbook.cat 2009-02-05 16:50:57.000000000 +0100
@@ -17,6 +17,12 @@
--
@ -159,8 +159,8 @@ diff -urNp docbook-dtds-1.0-orig/4.4-sgml/docbook.cat docbook-dtds-1.0/4.4-sgml/
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
diff -urNp docbook-dtds-1.0-orig/4.4-xml/docbook.cat docbook-dtds-1.0/4.4-xml/docbook.cat
--- docbook-dtds-1.0-orig/4.4-xml/docbook.cat 2005-01-27 14:57:19.000000000 +0100
diff -urNp 4.4-xml/docbook.cat docbook-dtds-1.0/4.4-xml/docbook.cat
--- 4.4-xml/docbook.cat 2005-01-27 14:57:19.000000000 +0100
+++ docbook-dtds-1.0/4.4-xml/docbook.cat 2009-02-05 16:53:30.000000000 +0100
@@ -17,6 +17,12 @@
--
@ -175,8 +175,8 @@ diff -urNp docbook-dtds-1.0-orig/4.4-xml/docbook.cat docbook-dtds-1.0/4.4-xml/do
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
diff -urNp docbook-dtds-1.0-orig/4.5-sgml/docbook.cat docbook-dtds-1.0/4.5-sgml/docbook.cat
--- docbook-dtds-1.0-orig/4.5-sgml/docbook.cat 2006-10-03 15:27:50.000000000 +0200
diff -urNp 4.5-sgml/docbook.cat docbook-dtds-1.0/4.5-sgml/docbook.cat
--- 4.5-sgml/docbook.cat 2006-10-03 15:27:50.000000000 +0200
+++ docbook-dtds-1.0/4.5-sgml/docbook.cat 2009-02-05 16:51:22.000000000 +0100
@@ -17,6 +17,12 @@
--
@ -191,8 +191,8 @@ diff -urNp docbook-dtds-1.0-orig/4.5-sgml/docbook.cat docbook-dtds-1.0/4.5-sgml/
-- DocBook driver file .................................................. --
PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
diff -urNp docbook-dtds-1.0-orig/4.5-xml/docbook.cat docbook-dtds-1.0/4.5-xml/docbook.cat
--- docbook-dtds-1.0-orig/4.5-xml/docbook.cat 2006-10-03 15:26:00.000000000 +0200
diff -urNp 4.5-xml/docbook.cat docbook-dtds-1.0/4.5-xml/docbook.cat
--- 4.5-xml/docbook.cat 2006-10-03 15:26:00.000000000 +0200
+++ docbook-dtds-1.0/4.5-xml/docbook.cat 2009-02-05 16:55:45.000000000 +0100
@@ -17,6 +17,12 @@
--

@ -5,11 +5,11 @@
Name: docbook-dtds
Version: 1.0
Release: 79%{?dist}
Release: 88%{?dist}
Summary: SGML and XML document type definitions for DocBook
License: Copyright only
License: LicenseRef-docbook-dtds
URL: http://www.oasis-open.org/docbook/
Obsoletes: docbook-dtd30-sgml < %{version}-%{release}
@ -33,14 +33,15 @@ Provides: docbook-dtd44-xml = %{version}-%{release}
Provides: docbook-dtd45-sgml = %{version}-%{release}
Provides: docbook-dtd45-xml = %{version}-%{release}
Requires(post): /usr/bin/xmlcatalog
Requires(postun): /usr/bin/xmlcatalog
Requires(post): %{_bindir}/xmlcatalog
Requires(postun): %{_bindir}/xmlcatalog
Requires(post): %{_bindir}/chmod
Requires(post): sed
Requires(postun): sed
Requires: sgml-common
Requires: xml-common
BuildRequires: unzip
BuildArch: noarch
Source0: http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip
@ -59,28 +60,28 @@ Source12: http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip
Source13: http://www.docbook.org/rng/4.2/docbook-rng-4.2.zip
Source14: http://www.docbook.org/rng/4.3/docbook-rng-4.3.zip
Source15: http://www.docbook.org/rng/4.4/docbook-rng-4.4.zip
#compressed from http://www.docbook.org/rng/4.5/ upstream archive unavailable
# Compressed from http://www.docbook.org/rng/4.5/ upstream archive unavailable
Source16: docbook-rng-4.5.zip
Source17: http://www.docbook.org/xsd/4.2/docbook-xsd-4.2.zip
Source18: http://www.docbook.org/xsd/4.3/docbook-xsd-4.3.zip
Source19: http://www.docbook.org/xsd/4.4/docbook-xsd-4.4.zip
#compressed from http://www.docbook.org/xsd/4.5/ upstream archive unavailable
# Compressed from http://www.docbook.org/xsd/4.5/ upstream archive unavailable
Source20: docbook-xsd-4.5.zip
#fix old catalog files
# Fix old catalog files
Patch0: docbook-dtd30-sgml-1.0.catalog.patch
Patch1: docbook-dtd31-sgml-1.0.catalog.patch
Patch2: docbook-dtd40-sgml-1.0.catalog.patch
Patch3: docbook-dtd41-sgml-1.0.catalog.patch
Patch4: docbook-dtd42-sgml-1.0.catalog.patch
#fix euro sign in 4.2 dtds
# Fix euro sign in 4.2 dtds
Patch5: docbook-4.2-euro.patch
#Fix ISO entities in 4.3/4.4/4.5 SGML
# Fix ISO entities in 4.3/4.4/4.5 SGML
Patch6: docbook-dtds-ents.patch
#Use system rewrite for web URL's in sgml catalogs to prevent reading from the network(#478680)
# Use system rewrite for web URL's in sgml catalogs to prevent reading from the network(#478680)
Patch7: docbook-sgml-systemrewrite.patch
#use XML at the end of public identificators of XML 4.1.2 ISO entities
# Use XML at the end of public identificators of XML 4.1.2 ISO entities
Patch8: docbook-dtd412-entities.patch
BuildRequires: unzip
%description
The DocBook Document Type Definition (DTD) describes the syntax of
@ -92,138 +93,57 @@ This package contains SGML and XML versions of the DocBook DTD.
%prep
%setup -c -T
eval mkdir %{version_list}
# DocBook V3.0
cd 3.0-sgml
unzip %{SOURCE0}
%patch0 -p0 -b docbook.cat
cd ..
# DocBook V3.1
cd 3.1-sgml
unzip %{SOURCE1}
%patch1 -p0 -b docbook.cat
cd ..
# DocBook V4.0
cd 4.0-sgml
unzip %{SOURCE2}
%patch2 -p0 -b docbook.cat
cd ..
# DocBook V4.1
cd 4.1-sgml
unzip %{SOURCE3}
%patch3 -p0 -b docbook.cat
cd ..
# DocBook XML V4.1.2
cd 4.1.2-xml
unzip %{SOURCE4}
cd ..
# DocBook V4.2
cd 4.2-sgml
unzip %{SOURCE5}
%patch4 -p0 -b docbook.cat
cd ..
# DocBook XML V4.2
cd 4.2-xml
unzip %{SOURCE6}
cd ..
# DocBook V4.3
cd 4.3-sgml
unzip %{SOURCE7}
cd ..
# DocBook XML V4.3
cd 4.3-xml
unzip %{SOURCE8}
cd ..
# DocBook V4.4
cd 4.4-sgml
unzip %{SOURCE9}
cd ..
# DocBook XML V4.4
cd 4.4-xml
unzip %{SOURCE10}
cd ..
# DocBook v4.5
cd 4.5-sgml
unzip %{SOURCE11}
cd ..
# DocBook XML v4.5
cd 4.5-xml
unzip %{SOURCE12}
cd ..
# Docbook RNG v4.2
cd 4.2-rng
unzip %{SOURCE13}
cd ..
# Docbook RNG v4.3
cd 4.3-rng
unzip %{SOURCE14}
cd ..
# Docbook RNG v4.4
cd 4.4-rng
unzip %{SOURCE15}
cd ..
# Docbook RNG v4.5
cd 4.5-rng
unzip %{SOURCE16}
cd ..
# Docbook XSD v4.2
cd 4.2-xsd
unzip %{SOURCE17}
cd ..
# Docbook XSD v4.3
cd 4.3-xsd
unzip %{SOURCE18}
cd ..
# Docbook XSD v4.4
cd 4.4-xsd
unzip %{SOURCE19}
cd ..
# Docbook XSD v4.5
cd 4.5-xsd
unzip %{SOURCE20}
cd ..
unzip %{SOURCE0} -d 3.0-sgml
unzip %{SOURCE1} -d 3.1-sgml
unzip %{SOURCE2} -d 4.0-sgml
unzip %{SOURCE3} -d 4.1-sgml
unzip %{SOURCE4} -d 4.1.2-xml
unzip %{SOURCE5} -d 4.2-sgml
unzip %{SOURCE6} -d 4.2-xml
unzip %{SOURCE7} -d 4.3-sgml
unzip %{SOURCE8} -d 4.3-xml
unzip %{SOURCE9} -d 4.4-sgml
unzip %{SOURCE10} -d 4.4-xml
unzip %{SOURCE11} -d 4.5-sgml
unzip %{SOURCE12} -d 4.5-xml
unzip %{SOURCE13} -d 4.2-rng
unzip %{SOURCE14} -d 4.3-rng
unzip %{SOURCE15} -d 4.4-rng
unzip %{SOURCE16} -d 4.5-rng
unzip %{SOURCE17} -d 4.2-xsd
unzip %{SOURCE18} -d 4.3-xsd
unzip %{SOURCE19} -d 4.4-xsd
unzip %{SOURCE20} -d 4.5-xsd
%patch -P 0 -p0
%patch -P 1 -p0
%patch -P 2 -p0
%patch -P 3 -p0
%patch -P 4 -p0
# Fix &euro; in SGML.
%patch5 -p1
%patch -P 5 -p0
# Fix ISO entities in 4.3/4.4/4.5 SGML
%patch6 -p1
%patch -P 6 -p0
# Rewrite SYSTEM to use local catalog instead web ones (#478680)
%patch7 -p1
%patch -P 7 -p0
# Add XML to the end of public identificators of 4.1.2 XML entities
%patch8 -p1
%patch -P 8 -p0
# Increase NAMELEN (bug #36058, bug #159382).
sed -e's,\(NAMELEN\s\+\)44\(\s\*\)\?,\1256,' -i.namelen */docbook.dcl
# fix of \r\n issue from rpmlint
# Fix of \r\n issue from rpmlint
sed -i 's/\r//' */*.txt
if [ `id -u` -eq 0 ]; then
chown -R root:root .
chmod -R a+rX,g-w,o-w .
%{_bindir}/chown -R root:root .
%{_bindir}/chmod -R a+rX,g-w,o-w .
fi
@ -231,81 +151,89 @@ fi
%install
# Symlinks
mkdir -p $RPM_BUILD_ROOT/etc/sgml
# Creating a directory for SGML
eval mkdir -p %{buildroot}/etc/sgml
# Loop through sgml and xml formats
for fmt in sgml xml; do
ln -s $fmt-docbook-4.5.cat \
$RPM_BUILD_ROOT/etc/sgml/$fmt-docbook.cat
# Creating symbolic links for docbook catalog files
ln -s $fmt-docbook-4.5.cat %{buildroot}/etc/sgml/$fmt-docbook.cat
done
# Loop through different versions of docbook
eval set %{version_list}
for dir
do
cd $dir
fmt=${dir#*-} ver=${dir%%-*}
for dir in $@; do
pushd $dir
fmt=${dir#*-} ver=${dir%%-*} # Formatting and versioning
# Directory paths for different formats
case $fmt in
sgml) DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-dtd-$ver ;;
xml) DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-dtd-$ver ;;
rng) DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-$ver ;;
xsd) DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-$ver ;;
sgml|xml) DESTDIR=%{buildroot}/usr/share/sgml/docbook/$fmt-dtd-$ver ;;
rng|xsd) DESTDIR=%{buildroot}/usr/share/sgml/docbook/$fmt-$ver ;;
esac
# Installing files to the corresponding directories
case $fmt in
sgml) mkdir -p $DESTDIR ; install *.dcl $DESTDIR ;;
xml) mkdir -p $DESTDIR/ent ; install ent/* $DESTDIR/ent ;;
rng) mkdir -p $DESTDIR ; install *.r* $DESTDIR ;;
xsd) mkdir -p $DESTDIR ; install *.xsd $DESTDIR;;
esac
cd ..
popd
done
# Loop through different catalog versions
eval set %{catalog_list}
for dir
do
cd $dir
fmt=${dir#*-} ver=${dir%%-*}
DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-dtd-$ver
for dir in $@; do
pushd $dir
fmt=${dir#*-} ver=${dir%%-*} # Formatting and versioning
DESTDIR=%{buildroot}/usr/share/sgml/docbook/$fmt-dtd-$ver
# Installing dtd and mod files, along with the catalog file
install *.dtd *.mod $DESTDIR
install docbook.cat $DESTDIR/catalog
cd ..
# File for %%ghost
touch $RPM_BUILD_ROOT/etc/sgml/$fmt-docbook-$ver.cat
popd
# Creating ghost file for each format-version pair
touch %{buildroot}/etc/sgml/$fmt-docbook-$ver.cat
done
#workaround the missing support for --parents hack in rpm 4.11+
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}
for i in */*.txt */ChangeLog */README
do
cp -pr --parents $i $RPM_BUILD_ROOT%{_pkgdocdir}
# Workaround for missing support for --parents in rpm 4.11+
mkdir -p %{buildroot}%{_pkgdocdir}
# Copying text, ChangeLog, and README files to pkgdocdir with their parent directories
for i in */*.txt */ChangeLog */README; do
cp -pr --parents $i %{buildroot}%{_pkgdocdir}
done
%files
#in upstream tarballs there is a lot of files with 0755 permissions
#but they don't need to be, 0644 is enough for every file in tarball
%{_pkgdocdir}
/usr/share/sgml/docbook/*ml-dtd-*
/usr/share/sgml/docbook/rng-*
/usr/share/sgml/docbook/xsd-*
%config(noreplace) /etc/sgml/*ml-docbook.cat
%ghost %config(noreplace) /etc/sgml/*ml-docbook-*.cat
# There is a lot of files with 0755 permissions in upstream tarballs,
# but it is not needed. 0644 is enough for every file in tarball
%doc %{_pkgdocdir}
%{_datadir}/sgml/docbook/*ml-dtd-*
%{_datadir}/sgml/docbook/rng-*
%{_datadir}/sgml/docbook/xsd-*
%config(noreplace) %{_sysconfdir}/sgml/*ml-docbook.cat
%ghost %config(noreplace) %{_sysconfdir}/sgml/*ml-docbook-*.cat
%post
catcmd='/usr/bin/xmlcatalog --noout'
xmlcatalog=/usr/share/sgml/docbook/xmlcatalog
xmlcatalog=%{_datadir}/sgml/docbook/xmlcatalog
## Clean up pre-docbook-dtds mess caused by broken trigger.
for v in 3.0 3.1 4.0 4.1 4.2
# Clean up pre-docbook-dtds mess caused by broken trigger.
for v in 3.0 3.1 4.0 4.1 4.2 4.3 4.4 4.5
do
if [ -f /etc/sgml/sgml-docbook-$v.cat ]
if [ -f %{_sysconfdir}/sgml/sgml-docbook-$v.cat ]
then
$catcmd --sgml --del /etc/sgml/sgml-docbook-$v.cat \
/usr/share/sgml/openjade-1.3.1/catalog 2>/dev/null
$catcmd --sgml --del %{_sysconfdir}/sgml/sgml-docbook-$v.cat \
%{_datadir}/sgml/openjade-%{openjadever}/catalog 2>/dev/null
fi
done
# The STYLESHEETS/catalog command is for the case in which the style sheets
# were installed after another DTD but before this DTD
for STYLESHEETS in /usr/share/sgml/docbook/dsssl-stylesheets-*; do : ; done
for STYLESHEETS in %{_datadir}/sgml/docbook/dsssl-stylesheets-*; do : ; done
case $STYLESHEETS in
*-"*") STYLESHEETS= ;;
esac
@ -313,13 +241,13 @@ eval set %{catalog_list}
for dir
do
fmt=${dir#*-} ver=${dir%%-*}
sgmldir=/usr/share/sgml/docbook/$fmt-dtd-$ver
## SGML catalog
sgmldir=%{_datadir}/sgml/docbook/$fmt-dtd-$ver
# SGML catalog
# Update the centralized catalog corresponding to this version of the DTD
for cat_dir in /usr/share/sgml/sgml-iso-entities-8879.1986 $sgmldir $STYLESHEETS; do
$catcmd --sgml --add /etc/sgml/$fmt-docbook-$ver.cat $cat_dir/catalog
for cat_dir in %{_datadir}/sgml/sgml-iso-entities-8879.1986 $sgmldir $STYLESHEETS; do
$catcmd --sgml --add %{_sysconfdir}/sgml/$fmt-docbook-$ver.cat $cat_dir/catalog
done
## XML catalog
# XML catalog
if [ $fmt = xml -a -w $xmlcatalog ]; then
while read f desc; do
case $ver in 4.[45]) f=${f/-/} ;; esac
@ -381,16 +309,16 @@ sed -ni '
g
s/^\n//p
}
' /etc/sgml/catalog
' %{_sysconfdir}/sgml/catalog
# Finally, make sure everything in /etc/sgml is readable!
%{_bindir}/chmod a+r /etc/sgml/*
%{_bindir}/chmod a+r %{_sysconfdir}/sgml/*
%postun
# remove entries only on removal of package
# Remove entries only on removal of package
if [ "$1" = 0 ]; then
catcmd='/usr/bin/xmlcatalog --noout'
xmlcatalog=/usr/share/sgml/docbook/xmlcatalog
catcmd='%{_bindir}/xmlcatalog --noout'
xmlcatalog=%{_datadir}/sgml/docbook/xmlcatalog
entities="
ent/iso-pub.ent
ent/iso-grk1.ent
@ -424,11 +352,11 @@ ent/iso-cyr2.ent
for dir
do
fmt=${dir#*-} ver=${dir%%-*}
sgmldir=/usr/share/sgml/docbook/$fmt-dtd-$ver
sgmldir=%{_datadir}/sgml/docbook/$fmt-dtd-$ver
## SGML catalog
# Update the centralized catalog corresponding to this version of the DTD
$catcmd --sgml --del /etc/sgml/catalog /etc/sgml/$fmt-docbook-$ver.cat >/dev/null
rm -f /etc/sgml/$fmt-docbook-$ver.cat
$catcmd --sgml --del %{_sysconfdir}/sgml/catalog %{_sysconfdir}/sgml/$fmt-docbook-$ver.cat >/dev/null
rm -f %{_sysconfdir}/sgml/$fmt-docbook-$ver.cat
## XML catalog
if [ $fmt = xml -a -w $xmlcatalog ]; then
for f in $entities; do
@ -447,7 +375,7 @@ ent/iso-cyr2.ent
g
s/^\n//p
}
' /etc/sgml/catalog
' %{_sysconfdir}/sgml/catalog
fi
%triggerin -- openjade >= %{openjadever}
@ -455,8 +383,8 @@ eval set %{catalog_list}
for dir
do
fmt=${dir#*-} ver=${dir%%-*}
/usr/bin/xmlcatalog --sgml --noout --add /etc/sgml/$fmt-docbook-$ver.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
%{_bindir}/xmlcatalog --sgml --noout --add %{_sysconfdir}/sgml/$fmt-docbook-$ver.cat \
%{_datadir}/sgml/openjade-%{openjadever}/catalog
done
%triggerun -- openjade >= %{openjadever}
@ -465,17 +393,49 @@ eval set %{catalog_list}
for dir
do
fmt=${dir#*-} ver=${dir%%-*}
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/$fmt-docbook-$ver.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
%{_bindir}/xmlcatalog --sgml --noout --del %{_sysconfdir}/sgml/$fmt-docbook-$ver.cat \
%{_datadir}/sgml/openjade-%{openjadever}/catalog
done
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0-79
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.0-88
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Tue Jul 02 2024 Ondrej Sloup <osloup@redhat.com> - 1.0-87
- Update license tag to the SPDX format (LicenseRef-docbook-dtds)
- Resolves: RHEL-45839
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.0-86
- Bump release for June 2024 mass rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Sep 14 2023 Ondrej Sloup <osloup@redhat.com> - 1.0-83
- Use %%patch -P N instead of deprecated %%patchN
- Use RPM macros in the spec file for paths
- Add comments, improve the structure
- Unify paths in patch files
- Simplify install script
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.0-78
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
@ -483,7 +443,7 @@ done
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Feb 05 2020 Ondrej Vasik <ovasik@redhat.com> - 1.0-75
* Wed Feb 05 2020 Ondrej Vasik <ovasik@redhat.com> - 1.0-75
- do not print an error when uninstalling and no other catalogs
are present (#1357273)

Loading…
Cancel
Save