docbook-dtds.spec revision 18615
10139N/A#
10139N/A# spec file for package docbook-dtds
10139N/A#
13658N/A# copied from fedora core 6
10139N/A#
16307N/A# Note doo bug #10274 - should add docbook 4.5 to Solaris. The
10139N/A# totem-05-docbook.diff patch can be removed once this is resolved.
10139N/A#
10139N/A%define owner laca
19078N/A#
10139N/A
10139N/A%define OSR delivered in s10:1.0
10139N/A
10710N/AName: docbook-dtds
13658N/AVendor: Sourceforge
10710N/AVersion: 1.0
10139N/ARelease: 30.1
10139N/AGroup: Applications/Text
18688N/A
18688N/ASummary: SGML and XML document type definitions for DocBook.
10139N/A
10139N/ALicense: Distributable
11947N/AURL: http://www.oasis-open.org/docbook/
19078N/A
10139N/AObsoletes: docbook-dtd30-sgml docbook-dtd31-sgml
12680N/AObsoletes: docbook-dtd40-sgml docbook-dtd41-sgml
19078N/AObsoletes: docbook-dtd412-xml
10139N/A
10139N/AProvides: docbook-dtd-xml docbook-dtd-sgml
10139N/AProvides: docbook-dtd30-sgml docbook-dtd31-sgml
19142N/AProvides: docbook-dtd40-sgml docbook-dtd41-sgml
16401N/AProvides: docbook-dtd412-xml
10139N/AProvides: docbook-dtd42-sgml docbook-dtd42-xml
17868N/AProvides: docbook-dtd43-sgml docbook-dtd43-xml
10139N/AProvides: docbook-dtd44-sgml docbook-dtd44-xml
10139N/A
10139N/APreReq: xml-common fileutils
10139N/APreReq: textutils grep perl
10139N/APreReq: libxml2 >= 2.4.8
10139N/A# If upgrading, the old package's postun scriptlet may use install-catalog
10139N/A# to remove its entries. xmlcatalog (which this package uses) adds quotes
10139N/A# to the catalog files, and install-catalog only handles this in 0.6.3-4 or
16307N/A# later.
10139N/APreReq: sgml-common >= 0.6.3-4
12557N/A# We provide the directory layout expected by 0.6.3-5 or later of
13072N/A# xml-common. Earlier versions won't understand.
13072N/APreReq: xml-common >= 0.6.3-8
13072N/A
15232N/ABuildRoot: %{_tmppath}/%{name}-%{version}
17497N/A
18481N/ABuildArch: noarch
18187N/ASource0: http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip
16307N/ASource1: http://www.oasis-open.org/docbook/sgml/3.1/docbk31.zip
16401N/ASource2: http://www.oasis-open.org/docbook/sgml/4.0/docbk40.zip
17868N/ASource3: http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip
10139N/ASource4: http://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip
10139N/ASource5: http://www.oasis-open.org/docbook/sgml/4.2/docbook-4.2.zip
10139N/ASource6: http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip
10139N/ASource7: http://www.docbook.org/sgml/4.3/docbook-4.3.zip
10139N/ASource8: http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
10139N/ASource9: http://www.docbook.org/sgml/4.4/docbook-4.4.zip
10139N/ASource10: http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip
12557N/A# owner:laca date:2007-02-15 type:bug state:upstream from fedora core
13072N/APatch0: docbook-dtds-01-30-sgml-1.0.catalog.diff
19078N/A# owner:laca date:2007-02-15 type:bug state:upstream from fedora core
19078N/APatch1: docbook-dtds-02-31-sgml-1.0.catalog.diff
18993N/A# owner:laca date:2007-02-15 type:bug state:upstream from fedora core
16348N/APatch2: docbook-dtds-03-40-sgml-1.0.catalog.diff
18187N/A# owner:laca date:2007-02-15 type:bug state:upstream from fedora core
10139N/APatch3: docbook-dtds-04-41-sgml-1.0.catalog.diff
10139N/A# owner:laca date:2007-02-15 type:bug state:upstream from fedora core
10139N/APatch4: docbook-dtds-05-42-sgml-1.0.catalog.diff
10139N/A# owner:laca date:2007-02-15 type:bug state:upstream from fedora core
10139N/APatch5: docbook-dtds-06-4.2-euro.diff
19142N/A# owner:laca date:2007-02-15 type:bug state:upstream from fedora core
10139N/APatch6: docbook-dtds-07-ents.diff
10139N/ABuildRequires: unzip
10139N/A
10139N/A%define openjadever 1.3.2
10139N/ARequires: openjade = %{openjadever}
19142N/A
10139N/A%description
16401N/AThe DocBook Document Type Definition (DTD) describes the syntax of
10139N/Atechnical documentation texts (articles, books and manual pages).
10139N/AThis syntax is XML-compliant and is developed by the OASIS consortium.
10139N/AThis package contains SGML and XML versions of the DocBook DTD.
19126N/A
10139N/A
19126N/A%prep
10139N/A%setup -c -T
19142N/A# DocBook V3.0
10139N/Amkdir 3.0-sgml
10139N/Acd 3.0-sgml
10139N/Aunzip %{SOURCE0}
10139N/Agpatch -b docbook.cat %{PATCH0}
10139N/Acd ..
10139N/A
10710N/A# DocBook V3.1
13658N/Amkdir 3.1-sgml
10710N/Acd 3.1-sgml
11947N/Aunzip %{SOURCE1}
11947N/Agpatch -b docbook.cat %{PATCH1}
10139N/Acd ..
17868N/A
19078N/A# DocBook V4.0
10139N/Amkdir 4.0-sgml
17061N/Acd 4.0-sgml
17061N/Aunzip %{SOURCE2}
17195N/Agpatch -b docbook.cat %{PATCH2}
10139N/Acd ..
10139N/A
10139N/A# DocBook V4.1
10710N/Amkdir 4.1-sgml
13658N/Acd 4.1-sgml
13658N/Aunzip %{SOURCE3}
13658N/Agpatch -b docbook.cat %{PATCH3}
13658N/Acd ..
13658N/A
13658N/A# DocBook XML V4.1.2
10710N/Amkdir 4.1.2-xml
10139N/Acd 4.1.2-xml
10139N/Aunzip %{SOURCE4}
10710N/Acd ..
13658N/A
10710N/A# DocBook V4.2
10139N/Amkdir 4.2-sgml
13658N/Acd 4.2-sgml
13658N/Aunzip %{SOURCE5}
13658N/Agpatch -b docbook.cat %{PATCH4}
13658N/Acd ..
13658N/A
10139N/A# DocBook XML V4.2
10139N/Amkdir 4.2-xml
10139N/Acd 4.2-xml
10139N/Aunzip %{SOURCE6}
10139N/Acd ..
10139N/A
11947N/A# DocBook V4.3
11947N/Amkdir 4.3-sgml
11947N/Acd 4.3-sgml
11947N/Aunzip %{SOURCE7}
11947N/Acd ..
10139N/A
10139N/A# DocBook XML V4.3
10139N/Amkdir 4.3-xml
10139N/Acd 4.3-xml
10139N/Aunzip %{SOURCE8}
10139N/Acd ..
16307N/A
10139N/A# DocBook V4.4
10139N/Amkdir 4.4-sgml
16307N/Acd 4.4-sgml
10139N/Aunzip %{SOURCE9}
10139N/Acd ..
10139N/A
10139N/A# DocBook XML V4.4
10139N/Amkdir 4.4-xml
10139N/Acd 4.4-xml
10139N/Aunzip %{SOURCE10}
10710N/Acd ..
10710N/A
20041N/A# Fix € in SGML.
20041N/A%patch5 -p1
20041N/A
20041N/A# Fix ISO entities in 4.3/4.4 SGML
20041N/A%patch6 -p1
17061N/A
10139N/A# Increase NAMELEN (bug #36058, bug #159382).
17945N/Afor f in */docbook.dcl
10139N/Ado
10139N/A mv $f $f.namelen
10139N/A sed -e's,\(NAMELEN\ \ *\)44,\1256,' $f.namelen >$f
10139N/Adone
10139N/A
10714N/Aif [ `id -u` -eq 0 ]; then
10714N/A chown -R root:root .
10714N/A chmod -R a+rX,g-w,o-w .
10714N/Afi
12042N/A
11103N/A
11103N/A%build
12042N/A
10714N/A
10714N/A%install
12042N/A# DocBook V3.0
10714N/Acd 3.0-sgml
10714N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/sgml-dtd-3.0-%{version}-%{release}
12042N/Amkdir -p $DESTDIR
10714N/Ainstall *.dcl $DESTDIR
10714N/Ainstall docbook.cat $DESTDIR/catalog
12042N/Ainstall *.dtd $DESTDIR
17061N/Ainstall *.mod $DESTDIR
17061N/Acd ..
17061N/A
10139N/A# DocBook V3.1
10139N/Acd 3.1-sgml
13735N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/sgml-dtd-3.1-%{version}-%{release}
10139N/Amkdir -p $DESTDIR
13735N/Ainstall *.dcl $DESTDIR
14399N/Ainstall docbook.cat $DESTDIR/catalog
14399N/Ainstall *.dtd $DESTDIR
14399N/Ainstall *.mod $DESTDIR
14399N/Acd ..
14399N/A
14399N/A# DocBook V4.0
14399N/Acd 4.0-sgml
14399N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/sgml-dtd-4.0-%{version}-%{release}
14399N/Amkdir -p $DESTDIR
14399N/Ainstall *.dcl $DESTDIR
14399N/Ainstall docbook.cat $DESTDIR/catalog
14399N/Ainstall *.dtd $DESTDIR
14399N/Ainstall *.mod $DESTDIR
14399N/Acd ..
14399N/A
18481N/A# DocBook V4.1
10139N/Acd 4.1-sgml
10139N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/sgml-dtd-4.1-%{version}-%{release}
10522N/Amkdir -p $DESTDIR
10139N/Ainstall *.dcl $DESTDIR
10710N/Ainstall docbook.cat $DESTDIR/catalog
10139N/Ainstall *.dtd $DESTDIR
10139N/Ainstall *.mod $DESTDIR
10139N/Acd ..
10139N/A
10139N/A# DocBook XML V4.1.2
10139N/Acd 4.1.2-xml
10139N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/xml-dtd-4.1.2-%{version}-%{release}
10710N/Amkdir -p $DESTDIR/ent
10710N/Ainstall docbook.cat $DESTDIR/catalog
10139N/Ainstall *.dtd $DESTDIR
10139N/Ainstall *.mod $DESTDIR
10139N/Ainstall ent/* $DESTDIR/ent
10139N/Acd ..
10139N/A
10139N/A# DocBook V4.2
10139N/Acd 4.2-sgml
10139N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/sgml-dtd-4.2-%{version}-%{release}
10139N/Amkdir -p $DESTDIR
10139N/Ainstall *.dcl $DESTDIR
10139N/Ainstall docbook.cat $DESTDIR/catalog
10139N/Ainstall *.dtd $DESTDIR
10139N/Ainstall *.mod $DESTDIR
19078N/Acd ..
19078N/A
18391N/A# DocBook XML V4.2
18391N/Acd 4.2-xml
18187N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/xml-dtd-4.2-%{version}-%{release}
18187N/Amkdir -p $DESTDIR/ent
17945N/Ainstall docbook.cat $DESTDIR/catalog
17945N/Ainstall *.dtd $DESTDIR
17868N/Ainstall *.mod $DESTDIR
17868N/Ainstall ent/* $DESTDIR/ent
17497N/Acd ..
17497N/A
17195N/A# DocBook V4.3
17195N/Acd 4.3-sgml
17172N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/sgml-dtd-4.3-%{version}-%{release}
17172N/Amkdir -p $DESTDIR
16348N/Ainstall *.dcl $DESTDIR
16348N/Ainstall docbook.cat $DESTDIR/catalog
16307N/Ainstall *.dtd $DESTDIR
16307N/Ainstall *.mod $DESTDIR
16104N/Acd ..
16104N/A
13735N/A# DocBook XML V4.3
13735N/Acd 4.3-xml
13658N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/xml-dtd-4.3-%{version}-%{release}
13658N/Amkdir -p $DESTDIR/ent
13658N/Ainstall docbook.cat $DESTDIR/catalog
13072N/Ainstall *.dtd $DESTDIR
13072N/Ainstall *.mod $DESTDIR
12557N/Ainstall ent/* $DESTDIR/ent
12557N/Acd ..
12112N/A
12112N/A# DocBook V4.4
12042N/Acd 4.4-sgml
12042N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/sgml-dtd-4.4-%{version}-%{release}
11947N/Amkdir -p $DESTDIR
11947N/Ainstall *.dcl $DESTDIR
11868N/Ainstall docbook.cat $DESTDIR/catalog
11868N/Ainstall *.dtd $DESTDIR
11868N/Ainstall *.mod $DESTDIR
11847N/Acd ..
11847N/A
11847N/A# DocBook XML V4.4
11375N/Acd 4.4-xml
11311N/ADESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/xml-dtd-4.4-%{version}-%{release}
11311N/Amkdir -p $DESTDIR/ent
11103N/Ainstall docbook.cat $DESTDIR/catalog
11103N/Ainstall *.dtd $DESTDIR
10714N/Ainstall *.mod $DESTDIR
10714N/Ainstall ent/* $DESTDIR/ent
10710N/Acd ..
10710N/A
10522N/A# Symlinks
10522N/Amkdir -p $RPM_BUILD_ROOT/etc/sgml
10139N/Aln -s sgml-docbook-4.4-%{version}-%{release}.cat \
10139N/A $RPM_BUILD_ROOT/etc/sgml/sgml-docbook.cat
10139N/Aln -s xml-docbook-4.4-%{version}-%{release}.cat \
10139N/A $RPM_BUILD_ROOT/etc/sgml/xml-docbook.cat
10139N/A
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A
10139N/A%files
10139N/A%defattr (-,root,root)
10139N/A%doc --parents 3.1-sgml/ChangeLog
10139N/A%doc --parents 4.1-sgml/ChangeLog
10139N/A%doc --parents */*.txt
10139N/A/usr/share/sgml/docbook/sgml-dtd-3.0-%{version}-%{release}
10139N/A/usr/share/sgml/docbook/sgml-dtd-3.1-%{version}-%{release}
10139N/A/usr/share/sgml/docbook/sgml-dtd-4.0-%{version}-%{release}
10139N/A/usr/share/sgml/docbook/sgml-dtd-4.1-%{version}-%{release}
10139N/A/usr/share/sgml/docbook/sgml-dtd-4.2-%{version}-%{release}
10139N/A/usr/share/sgml/docbook/sgml-dtd-4.3-%{version}-%{release}
10139N/A/usr/share/sgml/docbook/sgml-dtd-4.4-%{version}-%{release}
10139N/A/usr/share/sgml/docbook/xml-dtd-4.1.2-%{version}-%{release}
10139N/A/usr/share/sgml/docbook/xml-dtd-4.2-%{version}-%{release}
10139N/A/usr/share/sgml/docbook/xml-dtd-4.3-%{version}-%{release}
10139N/A/usr/share/sgml/docbook/xml-dtd-4.4-%{version}-%{release}
10139N/A/etc/sgml/sgml-docbook.cat
10139N/A/etc/sgml/xml-docbook.cat
10139N/A
10139N/A
10139N/A%post
10139N/A## Clean up pre-docbook-dtds mess caused by broken trigger.
10139N/Afor v in 3.0 3.1 4.0 4.1 4.2
10139N/Ado
10139N/A if [ -f /etc/sgml/sgml-docbook-$v.cat ]
10139N/A then
10139N/A /usr/bin/xmlcatalog --sgml --noout --del \
10139N/A /etc/sgml/sgml-docbook-$v.cat \
10139N/A /usr/share/sgml/openjade-1.3.1/catalog 2>/dev/null
10139N/A fi
10139N/Adone
10139N/A
10139N/A##
10139N/A## SGML catalog
10139N/A##
10139N/A
10139N/A# Update the centralized catalog corresponding to this version of the DTD
10139N/A# DocBook V3.0
10139N/A/usr/bin/xmlcatalog --sgml --noout --add \
10139N/A /etc/sgml/sgml-docbook-3.0-%{version}-%{release}.cat \
10139N/A /usr/share/sgml/sgml-iso-entities-8879.1986/catalog
10139N/A/usr/bin/xmlcatalog --sgml --noout --add \
10139N/A /etc/sgml/sgml-docbook-3.0-%{version}-%{release}.cat \
10139N/A /usr/share/sgml/docbook/sgml-dtd-3.0-%{version}-%{release}/catalog
10139N/A
10139N/A# DocBook V3.1
10139N/A/usr/bin/xmlcatalog --sgml --noout --add \
10139N/A /etc/sgml/sgml-docbook-3.1-%{version}-%{release}.cat \
10139N/A /usr/share/sgml/sgml-iso-entities-8879.1986/catalog
10139N/A/usr/bin/xmlcatalog --sgml --noout --add \
10139N/A /etc/sgml/sgml-docbook-3.1-%{version}-%{release}.cat \
10139N/A /usr/share/sgml/docbook/sgml-dtd-3.1-%{version}-%{release}/catalog
10139N/A
10139N/A# DocBook V4.0
10139N/A/usr/bin/xmlcatalog --sgml --noout --add \
10139N/A /etc/sgml/sgml-docbook-4.0-%{version}-%{release}.cat \
10139N/A /usr/share/sgml/sgml-iso-entities-8879.1986/catalog
10139N/A/usr/bin/xmlcatalog --sgml --noout --add \
10139N/A /etc/sgml/sgml-docbook-4.0-%{version}-%{release}.cat \
10139N/A /usr/share/sgml/docbook/sgml-dtd-4.0-%{version}-%{release}/catalog
10139N/A
10139N/A# DocBook V4.1
10139N/A/usr/bin/xmlcatalog --sgml --noout --add \
10139N/A /etc/sgml/sgml-docbook-4.1-%{version}-%{release}.cat \
10139N/A /usr/share/sgml/sgml-iso-entities-8879.1986/catalog
10139N/A/usr/bin/xmlcatalog --sgml --noout --add \
10139N/A /etc/sgml/sgml-docbook-4.1-%{version}-%{release}.cat \
10139N/A /usr/share/sgml/docbook/sgml-dtd-4.1-%{version}-%{release}/catalog
16401N/A
19250N/A# DocBook XML V4.1.2
19567N/A/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.1.2-%{version}-%{release}.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.1.2-%{version}-%{release}.cat \
/usr/share/sgml/docbook/xml-dtd-4.1.2-%{version}-%{release}/catalog
# DocBook V4.2
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.2-%{version}-%{release}.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.2-%{version}-%{release}.cat \
/usr/share/sgml/docbook/sgml-dtd-4.2-%{version}-%{release}/catalog
# DocBook XML V4.2
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat \
/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.3
/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
# DocBook V4.4
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.4-%{version}-%{release}.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.4-%{version}-%{release}.cat \
/usr/share/sgml/docbook/sgml-dtd-4.4-%{version}-%{release}/catalog
# DocBook XML V4.4
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.4-%{version}-%{release}.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.4-%{version}-%{release}.cat \
/usr/share/sgml/docbook/xml-dtd-4.4-%{version}-%{release}/catalog
# The following lines are for the case in which the style sheets
# were installed after another DTD but before this DTD
STYLESHEETS=$(echo /usr/share/sgml/docbook/dsssl-stylesheets-*)
STYLESHEETS=${STYLESHEETS##*/dsssl-stylesheets-}
if [ "$STYLESHEETS" != "*" ]; then
# DocBook V3.0
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-3.0-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-3.0-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
# DocBook V3.1
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-3.1-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-3.1-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
# DocBook V4.0
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.0-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.0-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
# DocBook V4.1
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.1-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.1-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
# DocBook XML V4.1.2
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.1.2-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.1.2-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
# DocBook V4.2
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.2-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.2-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
# DocBook XML V4.2
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.2-%{version}-%{release}.cat \
/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
# DocBook V4.4
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.4-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/sgml-docbook-4.4-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
# DocBook XML V4.4
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.4-%{version}-%{release}.cat \
/usr/share/sgml/openjade-%{openjadever}/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.4-%{version}-%{release}.cat \
/usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog
fi
# 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
# the order of the lines, and SGML tools don't like to see XML things
# they aren't expecting.
CATALOG=/etc/sgml/catalog
SGML=$(cat -n ${CATALOG} | grep sgml-docbook | head -1 | (read n line;echo $n))
XML=$(cat -n ${CATALOG} | grep xml-docbook | head -1 | (read n line; echo $n))
# Do they need switching around?
if [ -n "${XML}" ] && [ -n "${SGML}" ] && [ "${XML}" -lt "${SGML}" ]
then
# Switch those two lines around.
XML=$((XML - 1))
SGML=$((SGML - 1))
perl -e "@_=<>;@_[$XML, $SGML]=@_[$SGML, $XML];print @_" \
${CATALOG} > ${CATALOG}.rpmtmp
mv -f ${CATALOG}.rpmtmp ${CATALOG}
fi
##
## XML catalog
##
CATALOG=/usr/share/sgml/docbook/xmlcatalog
if [ -w $CATALOG ]
then
# DocBook XML V4.1.2
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Publishing//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-pub.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Greek Letters//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-grk1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/dbpoolx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-box.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.1.2//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/docbookx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Greek Symbols//EN" \
"xml-dtd-4.1.2-%{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.1.2-%{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.1.2-%{version}-%{release}/ent/iso-num.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/dbcentx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-grk4.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/dbnotnx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Diacritical Marks//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-dia.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-grk2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/dbgenent.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/dbhierx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \
"xml-dtd-4.1.2-%{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.1.2-%{version}-%{release}/ent/iso-amso.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-cyrl.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES General Technical//EN" \
"xml-dtd-4.1.2-%{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.1.2-%{version}-%{release}/ent/iso-amsc.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/soextblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/calstblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Latin 1//EN" \
"xml-dtd-4.1.2-%{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.1.2-%{version}-%{release}/ent/iso-amsb.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Latin 2//EN" \
"xml-dtd-4.1.2-%{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.1.2-%{version}-%{release}/ent/iso-amsr.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-cyr2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.1.2" \
"xml-dtd-4.1.2-%{version}-%{release}" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.1.2" \
"xml-dtd-4.1.2-%{version}-%{release}" $CATALOG
# DocBook XML V4.2
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Publishing//EN" \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-pub.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Greek Letters//EN" \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-grk1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Information Pool V4.2//EN" \
"xml-dtd-4.2-%{version}-%{release}/dbpoolx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-box.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.2//EN" \
"xml-dtd-4.2-%{version}-%{release}/docbookx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Greek Symbols//EN" \
"xml-dtd-4.2-%{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.2-%{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.2-%{version}-%{release}/ent/iso-num.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Character Entities V4.2//EN" \
"xml-dtd-4.2-%{version}-%{release}/dbcentx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-grk4.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Notations V4.2//EN" \
"xml-dtd-4.2-%{version}-%{release}/dbnotnx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Diacritical Marks//EN" \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-dia.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-grk2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.2//EN" \
"xml-dtd-4.2-%{version}-%{release}/dbgenent.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.2//EN" \
"xml-dtd-4.2-%{version}-%{release}/dbhierx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \
"xml-dtd-4.2-%{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.2-%{version}-%{release}/ent/iso-amso.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-cyrl.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES General Technical//EN" \
"xml-dtd-4.2-%{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.2-%{version}-%{release}/ent/iso-amsc.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"xml-dtd-4.2-%{version}-%{release}/soextblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML CALS Table Model V4.2//EN" \
"xml-dtd-4.2-%{version}-%{release}/calstblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Latin 1//EN" \
"xml-dtd-4.2-%{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.2-%{version}-%{release}/ent/iso-amsb.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Latin 2//EN" \
"xml-dtd-4.2-%{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.2-%{version}-%{release}/ent/iso-amsr.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-cyr2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.2" \
"xml-dtd-4.2-%{version}-%{release}" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.2" \
"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
# DocBook XML V4.4
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Publishing//EN" \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-pub.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Greek Letters//EN" \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-grk1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Information Pool V4.4//EN" \
"xml-dtd-4.4-%{version}-%{release}/dbpoolx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-box.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.4//EN" \
"xml-dtd-4.4-%{version}-%{release}/docbookx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Greek Symbols//EN" \
"xml-dtd-4.4-%{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.4-%{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.4-%{version}-%{release}/ent/iso-num.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Character Entities V4.4//EN" \
"xml-dtd-4.4-%{version}-%{release}/dbcentx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-grk4.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Notations V4.4//EN" \
"xml-dtd-4.4-%{version}-%{release}/dbnotnx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Diacritical Marks//EN" \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-dia.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-grk2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.4//EN" \
"xml-dtd-4.4-%{version}-%{release}/dbgenent.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.4//EN" \
"xml-dtd-4.4-%{version}-%{release}/dbhierx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \
"xml-dtd-4.4-%{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.4-%{version}-%{release}/ent/iso-amso.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-cyrl.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES General Technical//EN" \
"xml-dtd-4.4-%{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.4-%{version}-%{release}/ent/iso-amsc.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"xml-dtd-4.4-%{version}-%{release}/soextblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML CALS Table Model V4.4//EN" \
"xml-dtd-4.4-%{version}-%{release}/calstblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Latin 1//EN" \
"xml-dtd-4.4-%{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.4-%{version}-%{release}/ent/iso-amsb.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Added Latin 2//EN" \
"xml-dtd-4.4-%{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.4-%{version}-%{release}/ent/iso-amsr.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "public" \
"ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-cyr2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.4" \
"xml-dtd-4.4-%{version}-%{release}" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.4" \
"xml-dtd-4.4-%{version}-%{release}" $CATALOG
fi
# Finally, make sure everything in /etc/sgml is readable!
/bin/chmod a+r /etc/sgml/*
%postun
##
## SGML catalog
##
# Update the centralized catalog corresponding to this version of the DTD
# DocBook V3.0
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/etc/sgml/sgml-docbook-3.0-%{version}-%{release}.cat
rm -f /etc/sgml/sgml-docbook-3.0-%{version}-%{release}.cat
# DocBook V3.1
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/etc/sgml/sgml-docbook-3.1-%{version}-%{release}.cat
rm -f /etc/sgml/sgml-docbook-3.1-%{version}-%{release}.cat
# DocBook V4.0
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/etc/sgml/sgml-docbook-4.0-%{version}-%{release}.cat
rm -f /etc/sgml/sgml-docbook-4.0-%{version}-%{release}.cat
# DocBook V4.1
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/etc/sgml/sgml-docbook-4.1-%{version}-%{release}.cat
rm -f /etc/sgml/sgml-docbook-4.1-%{version}-%{release}.cat
# DocBook XML V4.1.2
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/etc/sgml/xml-docbook-4.1.2-%{version}-%{release}.cat
rm -f /etc/sgml/xml-docbook-4.1.2-%{version}-%{release}.cat
# DocBook V4.2
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/etc/sgml/sgml-docbook-4.2-%{version}-%{release}.cat
rm -f /etc/sgml/sgml-docbook-4.2-%{version}-%{release}.cat
# DocBook XML V4.2
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/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
# DocBook V4.4
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/etc/sgml/sgml-docbook-4.4-%{version}-%{release}.cat
rm -f /etc/sgml/sgml-docbook-4.4-%{version}-%{release}.cat
# DocBook XML V4.4
/usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/catalog \
/etc/sgml/xml-docbook-4.4-%{version}-%{release}.cat
rm -f /etc/sgml/xml-docbook-4.4-%{version}-%{release}.cat
# 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
# the order of the lines, and SGML tools don't like to see XML things
# they aren't expecting.
CATALOG=/etc/sgml/catalog
SGML=$(cat -n ${CATALOG} | grep sgml-docbook | head -1 | (read n line;echo $n))
XML=$(cat -n ${CATALOG} | grep xml-docbook | head -1 | (read n line; echo $n))
# Do they need switching around?
if [ -n "${XML}" ] && [ -n "${SGML}" ] && [ "${XML}" -lt "${SGML}" ]
then
# Switch those two lines around.
XML=$((XML - 1))
SGML=$((SGML - 1))
perl -e "@_=<>;@_[$XML, $SGML]=@_[$SGML, $XML];print @_" \
${CATALOG} > ${CATALOG}.rpmtmp
mv -f ${CATALOG}.rpmtmp ${CATALOG}
fi
##
## XML catalog
##
CATALOG=/usr/share/sgml/docbook/xmlcatalog
if [ -w $CATALOG ]
then
# DocBook XML V4.1.2
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-pub.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-grk1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/dbpoolx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-box.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/docbookx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-grk3.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-amsn.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-num.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/dbcentx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-grk4.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/dbnotnx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-dia.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-grk2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/dbgenent.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/dbhierx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-amsa.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-amso.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-cyrl.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-tech.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-amsc.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/soextblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/calstblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-lat1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-amsb.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-lat2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-amsr.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}/ent/iso-cyr2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2-%{version}-%{release}" $CATALOG
# DocBook XML V4.2
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-pub.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-grk1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/dbpoolx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-box.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/docbookx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-grk3.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-amsn.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-num.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/dbcentx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-grk4.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/dbnotnx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-dia.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-grk2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/dbgenent.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/dbhierx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-amsa.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-amso.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-cyrl.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-tech.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-amsc.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/soextblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/calstblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-lat1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-amsb.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-lat2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-amsr.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.2-%{version}-%{release}/ent/iso-cyr2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"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
# DocBook XML V4.4
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-pub.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-grk1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/dbpoolx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-box.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/docbookx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-grk3.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-amsn.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-num.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/dbcentx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-grk4.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/dbnotnx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-dia.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-grk2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/dbgenent.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/dbhierx.mod" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-amsa.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-amso.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-cyrl.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-tech.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-amsc.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/soextblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/calstblx.dtd" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-lat1.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-amsb.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-lat2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-amsr.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}/ent/iso-cyr2.ent" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.4-%{version}-%{release}" $CATALOG
fi
%changelog
* Wed Feb 28 2007 - halton.huo@sun.com
- Fix Increase NAMELEN sed script error.
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0-30.1
- rebuild
* Tue Dec 13 2005 Tim Waugh <twaugh@redhat.com> 1.0-30
- Fix ISO entities in 4.3/4.4 SGML.
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
* Fri Oct 21 2005 Tim Waugh <twaugh@redhat.com> 1.0-29
- Scriptlet fix (bug #171229).
* Thu Oct 13 2005 Tim Waugh <twaugh@redhat.com> 1.0-28
- Fixed last fix (bug #159382).
* Thu Jun 2 2005 Tim Waugh <twaugh@redhat.com> 1.0-27
- Increase NAMELEN (bug #36058, bug #159382).
* Tue Feb 1 2005 Tim Waugh <twaugh@redhat.com> 1.0-26
- DocBook 4.4 SGML and XML.
* 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
- Use ':' instead of '.' as separator for chown.
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Wed Aug 6 2003 Tim Waugh <twaugh@redhat.com> 1.0-22.1
- Rebuilt.
* Wed Aug 6 2003 Tim Waugh <twaugh@redhat.com> 1.0-22
- More work-arounds for buggy xmlcatalog.
* Tue Jul 15 2003 Tim Waugh <twaugh@redhat.com> 1.0-21.1
- Rebuilt.
* Tue Jul 15 2003 Tim Waugh <twaugh@redhat.com> 1.0-21
- Fix &euro; in SGML tools.
* Wed May 28 2003 Tim Waugh <twaugh@redhat.com> 1.0-20
- Fix summary and description (bug #73005).
* Fri Mar 28 2003 Tim Waugh <twaugh@redhat.com> 1.0-19
- Use --parents in %%doc.
- Fix %%postun scriptlet.
* Fri Mar 14 2003 Tim Waugh <twaugh@redhat.com> 1.0-18
- Use Requires:, not Conflicts:, for openjade.
- Require openjade 1.3.2.
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 1.0-17
- rebuilt
* Fri Dec 20 2002 Tim Waugh <twaugh@redhat.com> 1.0-16
- Fix typos in scriplets (bug #80109).
* Wed Nov 20 2002 Tim Powers <timp@redhat.com> 1.0-15
- rebuild in current collinst
* Mon Jul 30 2002 Tim Waugh <twaugh@redhat.com> 1.0-14
- Fix typo in XML catalog (Eric Raymond).
* Tue Jul 23 2002 Tim Waugh <twaugh@redhat.com> 1.0-13
- Provide docbook-dtd42-sgml and docbook-dtd42-xml.
* Thu Jul 18 2002 Tim Waugh <twaugh@redhat.com> 1.0-12
- Fix up SGML super catalog if necessary.
* Wed Jul 17 2002 Tim Waugh <twaugh@redhat.com> 1.0-11
- Add DocBook V4.2.
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.0-10
- automated rebuild
* Thu May 23 2002 Tim Powers <timp@redhat.com> 1.0-9
- automated rebuild
* Thu Mar 14 2002 Tim Waugh <twaugh@redhat.com> 1.0-8
- Allow for shared /usr/share (bug #61147).
* Tue Mar 12 2002 Tim Waugh <twaugh@redhat.com> 1.0-7
- Make sure that the config files are readable.
* Fri Mar 8 2002 Tim Waugh <twaugh@redhat.com> 1.0-6
- Make %%post scriptlet quiet (bug #60820).
* Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 1.0-5
- Make sure to clean up old catalog files.
* Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 1.0-3
- Rebuild in new environment.
* Mon Jan 28 2002 Tim Waugh <twaugh@redhat.com> 1.0-2
- Prepare for openjade 1.3.1.
* Thu Jan 17 2002 Tim Waugh <twaugh@redhat.com> 1.0-1
- Merged all the DTD packages into one (bug #58448).
- Use /usr/share/sgml exclusively.
- Prevent catalog files from disappearing on upgrade (bug #58463).
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Mon Nov 5 2001 Tim Waugh <twaugh@redhat.com> 1.0-8
- Hmm, still need to depend on sgml-common for /etc/sgml.
* Mon Nov 5 2001 Tim Waugh <twaugh@redhat.com> 1.0-7
- Use xmlcatalog (libxml2) instead of install-catalog (sgml-common) in
scriptlets.
- Conflict with install-catalog if it can't handle quotes in catalogs.
- Use release number in centralized catalog name, so that the scriptlets
work properly.
* Wed Oct 10 2001 Tim Waugh <twaugh@redhat.com> 1.0-6
- Change some Requires: to PreReq:s (bug #54507).
* Mon Oct 8 2001 Tim Waugh <twaugh@redhat.com> 1.0-5
- Use release number in the installed directory name, so that the
package scripts work.
* Sat Oct 6 2001 Tim Waugh <twaugh@redhat.com> 1.0-4
- Restore the /etc/sgml/catalog manipulation again.
- Oops, fix DTD path.
* Sat Oct 6 2001 Tim Waugh <twaugh@redhat.com> 1.0-2
- Require xml-common. Use xmlcatalog.
- Move files to /usr/share/xml.
* Tue Jun 12 2001 Tim Waugh <twaugh@redhat.com> 1.0-1
- Build for Red Hat Linux.
* Sat Jun 09 2001 Chris Runge <crunge@pobox.com>
- Provides: docbook-dtd-xml (not docbook-dtd-sgml)
- undo catalog patch and dbcentx patch (this resulted in an effectively
broken DTD when the document was processed with XSL stylesheets); added a
symbolic link to retain docbook.cat -> catalog; added ent
- added ChangeLog to doc
* Fri Jun 08 2001 Chris Runge <crunge@pobox.com>
- created a 4.1.2 version
- update required a change to OTHERCAT in postun
- update required a change to the Makefile patch (no dbgenent.ent any more,
apparently)
* Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com>
- Scripts require fileutils.
- Make scripts quieter.
* Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
- Don't play so many macro games.
- Don't use 'rpm' in post scripts.
- Be sure to own xml-dtd-4.1 directory.
* Sun Jan 14 2001 Tim Waugh <twaugh@redhat.com>
- Change requirement on /usr/bin/install-catalog to sgml-common.
* Tue Jan 09 2001 Tim Waugh <twaugh@redhat.com>
- Change group.
- Use %%{_tmppath}.
- Correct typo.
- rm before install
- openjade not jade.
- Build requires unzip.
- Require install-catalog for post and postun.
- Change Copyright: to License:.
- Remove Packager: line.
* Tue Jan 09 2001 Tim Waugh <twaugh@redhat.com>
- Based on Eric Bischoff's new-trials packages.