- DocBook 4.3 SGML and XML (bug #131861).

This commit is contained in:
Tim Waugh 2004-09-13 14:58:05 +00:00
parent e651635390
commit 0a7c95bd98
3 changed files with 236 additions and 3 deletions

View File

@ -5,3 +5,5 @@ docbk41.zip
docbkx412.zip docbkx412.zip
docbook-4.2.zip docbook-4.2.zip
docbook-xml-4.2.zip docbook-xml-4.2.zip
docbook-xml-4.3.zip
docbook-4.3.zip

View File

@ -1,6 +1,6 @@
Name: docbook-dtds Name: docbook-dtds
Version: 1.0 Version: 1.0
Release: 24 Release: 25
Group: Applications/Text Group: Applications/Text
Summary: SGML and XML document type definitions for DocBook. Summary: SGML and XML document type definitions for DocBook.
@ -17,6 +17,7 @@ Provides: docbook-dtd30-sgml docbook-dtd31-sgml
Provides: docbook-dtd40-sgml docbook-dtd41-sgml Provides: docbook-dtd40-sgml docbook-dtd41-sgml
Provides: docbook-dtd412-xml Provides: docbook-dtd412-xml
Provides: docbook-dtd42-sgml docbook-dtd42-xml Provides: docbook-dtd42-sgml docbook-dtd42-xml
Provides: docbook-dtd43-sgml docbook-dtd43-xml
PreReq: xml-common fileutils PreReq: xml-common fileutils
PreReq: textutils grep perl PreReq: textutils grep perl
@ -40,6 +41,8 @@ Source3: http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip
Source4: http://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip Source4: http://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip
Source5: http://www.oasis-open.org/docbook/sgml/4.2/docbook-4.2.zip Source5: http://www.oasis-open.org/docbook/sgml/4.2/docbook-4.2.zip
Source6: http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip Source6: http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip
Source7: http://www.docbook.org/sgml/4.3/docbook-4.3.zip
Source8: http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
Patch0: docbook-dtd30-sgml-1.0.catalog.patch Patch0: docbook-dtd30-sgml-1.0.catalog.patch
Patch1: docbook-dtd31-sgml-1.0.catalog.patch Patch1: docbook-dtd31-sgml-1.0.catalog.patch
Patch2: docbook-dtd40-sgml-1.0.catalog.patch Patch2: docbook-dtd40-sgml-1.0.catalog.patch
@ -107,6 +110,18 @@ cd 4.2-xml
unzip %{SOURCE6} unzip %{SOURCE6}
cd .. cd ..
# DocBook V4.3
mkdir 4.3-sgml
cd 4.3-sgml
unzip %{SOURCE7}
cd ..
# DocBook XML V4.3
mkdir 4.3-xml
cd 4.3-xml
unzip %{SOURCE8}
cd ..
# Fix € in SGML. # Fix € in SGML.
%patch5 -p1 %patch5 -p1
@ -192,11 +207,31 @@ install *.mod $DESTDIR
install ent/* $DESTDIR/ent install ent/* $DESTDIR/ent
cd .. cd ..
# DocBook V4.3
cd 4.3-sgml
DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/sgml-dtd-4.3-%{version}-%{release}
mkdir -p $DESTDIR
install *.dcl $DESTDIR
install docbook.cat $DESTDIR/catalog
install *.dtd $DESTDIR
install *.mod $DESTDIR
cd ..
# DocBook XML V4.3
cd 4.3-xml
DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/xml-dtd-4.3-%{version}-%{release}
mkdir -p $DESTDIR/ent
install docbook.cat $DESTDIR/catalog
install *.dtd $DESTDIR
install *.mod $DESTDIR
install ent/* $DESTDIR/ent
cd ..
# Symlinks # Symlinks
mkdir -p $RPM_BUILD_ROOT/etc/sgml mkdir -p $RPM_BUILD_ROOT/etc/sgml
ln -s sgml-docbook-4.2-%{version}-%{release}.cat \ ln -s sgml-docbook-4.3-%{version}-%{release}.cat \
$RPM_BUILD_ROOT/etc/sgml/sgml-docbook.cat $RPM_BUILD_ROOT/etc/sgml/sgml-docbook.cat
ln -s xml-docbook-4.2-%{version}-%{release}.cat \ ln -s xml-docbook-4.3-%{version}-%{release}.cat \
$RPM_BUILD_ROOT/etc/sgml/xml-docbook.cat $RPM_BUILD_ROOT/etc/sgml/xml-docbook.cat
@ -214,8 +249,10 @@ rm -rf $RPM_BUILD_ROOT
/usr/share/sgml/docbook/sgml-dtd-4.0-%{version}-%{release} /usr/share/sgml/docbook/sgml-dtd-4.0-%{version}-%{release}
/usr/share/sgml/docbook/sgml-dtd-4.1-%{version}-%{release} /usr/share/sgml/docbook/sgml-dtd-4.1-%{version}-%{release}
/usr/share/sgml/docbook/sgml-dtd-4.2-%{version}-%{release} /usr/share/sgml/docbook/sgml-dtd-4.2-%{version}-%{release}
/usr/share/sgml/docbook/sgml-dtd-4.3-%{version}-%{release}
/usr/share/sgml/docbook/xml-dtd-4.1.2-%{version}-%{release} /usr/share/sgml/docbook/xml-dtd-4.1.2-%{version}-%{release}
/usr/share/sgml/docbook/xml-dtd-4.2-%{version}-%{release} /usr/share/sgml/docbook/xml-dtd-4.2-%{version}-%{release}
/usr/share/sgml/docbook/xml-dtd-4.3-%{version}-%{release}
/etc/sgml/sgml-docbook.cat /etc/sgml/sgml-docbook.cat
/etc/sgml/xml-docbook.cat /etc/sgml/xml-docbook.cat
@ -293,6 +330,22 @@ done
/etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat \ /etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat \
/usr/share/sgml/docbook/xml-dtd-4.2-%{version}-%{release}/catalog /usr/share/sgml/docbook/xml-dtd-4.2-%{version}-%{release}/catalog
# DocBook V4.3
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.3-%{version}-%{release}.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.3-%{version}-%{release}.cat \
/usr/share/sgml/docbook/sgml-dtd-4.3-%{version}-%{release}/catalog
# DocBook XML V4.2
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.3-%{version}-%{release}.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.3-%{version}-%{release}.cat \
/usr/share/sgml/docbook/xml-dtd-4.3-%{version}-%{release}/catalog
# The following lines are for the case in which the style sheets # The following lines are for the case in which the style sheets
# were installed after another DTD but before this DTD # were installed after another DTD but before this DTD
STYLESHEETS=$(echo /usr/share/sgml/docbook/dsssl-stylesheets-*) STYLESHEETS=$(echo /usr/share/sgml/docbook/dsssl-stylesheets-*)
@ -353,6 +406,22 @@ if [ "$STYLESHEETS" != "*" ]; then
/usr/bin/xmlcatalog --sgml --noout --add \ /usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat \ /etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog /usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
# DocBook V4.3
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.3-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.3-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
# DocBook XML V4.3
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.3-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.3-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
fi fi
# Fix up SGML super catalog so that there isn't an XML DTD before an # Fix up SGML super catalog so that there isn't an XML DTD before an
@ -558,6 +627,95 @@ then
/usr/bin/xmlcatalog --noout --add "rewriteURI" \ /usr/bin/xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.2" \ "http://www.oasis-open.org/docbook/xml/4.2" \
"xml-dtd-4.2-%{version}-%{release}" $CATALOG "xml-dtd-4.2-%{version}-%{release}" $CATALOG
# DocBook XML V4.3
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Publishing//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-pub.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Greek Letters//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-grk1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Information Pool V4.3//EN" \
"xml-dtd-4.3-%{version}-%{release}/dbpoolx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-box.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.3//EN" \
"xml-dtd-4.3-%{version}-%{release}/docbookx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Greek Symbols//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-grk3.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amsn.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-num.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Character Entities V4.3//EN" \
"xml-dtd-4.3-%{version}-%{release}/dbcentx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-grk4.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Notations V4.3//EN" \
"xml-dtd-4.3-%{version}-%{release}/dbnotnx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Diacritical Marks//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-dia.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-grk2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.3//EN" \
"xml-dtd-4.3-%{version}-%{release}/dbgenent.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.3//EN" \
"xml-dtd-4.3-%{version}-%{release}/dbhierx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amsa.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amso.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-cyrl.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES General Technical//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-tech.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amsc.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"xml-dtd-4.3-%{version}-%{release}/soextblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML CALS Table Model V4.3//EN" \
"xml-dtd-4.3-%{version}-%{release}/calstblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Latin 1//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-lat1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amsb.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Latin 2//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-lat2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amsr.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-cyr2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.3" \
"xml-dtd-4.3-%{version}-%{release}" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.3" \
"xml-dtd-4.3-%{version}-%{release}" $CATALOG
fi fi
# Finally, make sure everything in /etc/sgml is readable! # Finally, make sure everything in /etc/sgml is readable!
@ -604,6 +762,16 @@ rm -f /etc/sgml/sgml-docbook-4.2-%{version}-%{release}.cat
/etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat /etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat
rm -f /etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat rm -f /etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat
# DocBook V4.3
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/etc/sgml/sgml-docbook-4.3-%{version}-%{release}.cat
rm -f /etc/sgml/sgml-docbook-4.3-%{version}-%{release}.cat
# DocBook XML V4.3
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/etc/sgml/xml-docbook-4.3-%{version}-%{release}.cat
rm -f /etc/sgml/xml-docbook-4.3-%{version}-%{release}.cat
# Fix up SGML super catalog so that there isn't an XML DTD before an # Fix up SGML super catalog so that there isn't an XML DTD before an
# SGML one. We need to do this (*sigh*) because xmlcatalog messes up # SGML one. We need to do this (*sigh*) because xmlcatalog messes up
# the order of the lines, and SGML tools don't like to see XML things # the order of the lines, and SGML tools don't like to see XML things
@ -745,9 +913,70 @@ then
"xml-dtd-4.2-%{version}-%{release}/ent/iso-cyr2.ent" $CATALOG "xml-dtd-4.2-%{version}-%{release}/ent/iso-cyr2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \ /usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}" $CATALOG "xml-dtd-4.2-%{version}-%{release}" $CATALOG
# DocBook XML V4.3
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-pub.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-grk1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/dbpoolx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-box.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/docbookx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-grk3.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amsn.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-num.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/dbcentx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-grk4.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/dbnotnx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-dia.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-grk2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/dbgenent.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/dbhierx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amsa.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amso.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-cyrl.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-tech.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amsc.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/soextblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/calstblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-lat1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amsb.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-lat2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-amsr.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}/ent/iso-cyr2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.3-%{version}-%{release}" $CATALOG
fi fi
%changelog %changelog
* Mon Sep 13 2004 Tim Waugh <twaugh@redhat.com> 1.0-25
- DocBook 4.3 SGML and XML (bug #131861).
* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com> 1.0-24 * Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com> 1.0-24
- Use ':' instead of '.' as separator for chown. - Use ':' instead of '.' as separator for chown.

View File

@ -5,3 +5,5 @@ fabcf7dd1d88b94797b7e5344389eab9 docbk40.zip
900d7609fb7e6d78901b357e4acfbc17 docbkx412.zip 900d7609fb7e6d78901b357e4acfbc17 docbkx412.zip
0dfeb94569334dd22a62d90d99fc0630 docbook-4.2.zip 0dfeb94569334dd22a62d90d99fc0630 docbook-4.2.zip
73fe50dfe74ca631c1602f558ed8961f docbook-xml-4.2.zip 73fe50dfe74ca631c1602f558ed8961f docbook-xml-4.2.zip
ab200202b9e136a144db1e0864c45074 docbook-xml-4.3.zip
e3beb1b0b2923c24fa55a68e88654b01 docbook-4.3.zip