Blame SPECS/docbook-dtds.spec

e8163d
%global openjadever 1.3.2
e8163d
%global version_list "{3,4}.{0,1}-sgml 4.1.2-xml 4.{2,3,4,5}-{sgml,xml} 4.{2,3,4,5}-rng 4.{2,3,4,5}-xsd"
e8163d
%global catalog_list "{3,4}.{0,1}-sgml 4.1.2-xml 4.{2,3,4,5}-{sgml,xml}"
e8163d
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
e8163d
e8163d
Name: docbook-dtds
e8163d
Version: 1.0
e8163d
Release: 69%{?dist}
e8163d
Group: Applications/Text
e8163d
e8163d
Summary: SGML and XML document type definitions for DocBook
e8163d
e8163d
License: Copyright only
e8163d
URL: http://www.oasis-open.org/docbook/
e8163d
e8163d
Obsoletes: docbook-dtd30-sgml < %{version}-%{release}
e8163d
Obsoletes: docbook-dtd31-sgml < %{version}-%{release}
e8163d
Obsoletes: docbook-dtd40-sgml < %{version}-%{release}
e8163d
Obsoletes: docbook-dtd41-sgml < %{version}-%{release}
e8163d
Obsoletes: docbook-dtd412-xml < %{version}-%{release}
e8163d
Provides: docbook-dtd-xml = %{version}-%{release}
e8163d
Provides: docbook-dtd-sgml = %{version}-%{release}
e8163d
Provides: docbook-dtd30-sgml = %{version}-%{release}
e8163d
Provides: docbook-dtd31-sgml = %{version}-%{release}
e8163d
Provides: docbook-dtd40-sgml = %{version}-%{release}
e8163d
Provides: docbook-dtd41-sgml = %{version}-%{release}
e8163d
Provides: docbook-dtd412-xml = %{version}-%{release}
e8163d
Provides: docbook-dtd42-sgml = %{version}-%{release}
e8163d
Provides: docbook-dtd42-xml = %{version}-%{release}
e8163d
Provides: docbook-dtd43-sgml = %{version}-%{release}
e8163d
Provides: docbook-dtd43-xml = %{version}-%{release}
e8163d
Provides: docbook-dtd44-sgml = %{version}-%{release}
e8163d
Provides: docbook-dtd44-xml = %{version}-%{release}
e8163d
Provides: docbook-dtd45-sgml = %{version}-%{release}
e8163d
Provides: docbook-dtd45-xml = %{version}-%{release}
e8163d
e8163d
Requires(post): /usr/bin/xmlcatalog
e8163d
Requires(postun): /usr/bin/xmlcatalog
e8163d
Requires(post): %{_bindir}/chmod
e8163d
Requires(post): sed
e8163d
Requires(postun): sed
e8163d
Requires: sgml-common
e8163d
Requires: xml-common
e8163d
e8163d
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
e8163d
e8163d
BuildArch: noarch
e8163d
Source0: http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip
e8163d
Source1: http://www.oasis-open.org/docbook/sgml/3.1/docbk31.zip
e8163d
Source2: http://www.oasis-open.org/docbook/sgml/4.0/docbk40.zip
e8163d
Source3: http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip
e8163d
Source4: http://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip
e8163d
Source5: http://www.oasis-open.org/docbook/sgml/4.2/docbook-4.2.zip
e8163d
Source6: http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip
e8163d
Source7: http://www.docbook.org/sgml/4.3/docbook-4.3.zip
e8163d
Source8: http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
e8163d
Source9: http://www.docbook.org/sgml/4.4/docbook-4.4.zip
e8163d
Source10: http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip
e8163d
Source11: http://www.docbook.org/sgml/4.5/docbook-4.5.zip
e8163d
Source12: http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip
e8163d
Source13: http://www.docbook.org/rng/4.2/docbook-rng-4.2.zip
e8163d
Source14: http://www.docbook.org/rng/4.3/docbook-rng-4.3.zip
e8163d
Source15: http://www.docbook.org/rng/4.4/docbook-rng-4.4.zip
e8163d
#compressed from http://www.docbook.org/rng/4.5/ upstream archive unavailable
e8163d
Source16: docbook-rng-4.5.zip
e8163d
Source17: http://www.docbook.org/xsd/4.2/docbook-xsd-4.2.zip
e8163d
Source18: http://www.docbook.org/xsd/4.3/docbook-xsd-4.3.zip
e8163d
Source19: http://www.docbook.org/xsd/4.4/docbook-xsd-4.4.zip
e8163d
#compressed from http://www.docbook.org/xsd/4.5/ upstream archive unavailable
e8163d
Source20: docbook-xsd-4.5.zip
e8163d
#fix old catalog files
e8163d
Patch0: docbook-dtd30-sgml-1.0.catalog.patch
e8163d
Patch1: docbook-dtd31-sgml-1.0.catalog.patch
e8163d
Patch2: docbook-dtd40-sgml-1.0.catalog.patch
e8163d
Patch3: docbook-dtd41-sgml-1.0.catalog.patch
e8163d
Patch4: docbook-dtd42-sgml-1.0.catalog.patch
e8163d
#fix euro sign in 4.2 dtds
e8163d
Patch5: docbook-4.2-euro.patch
e8163d
#Fix ISO entities in 4.3/4.4/4.5 SGML
e8163d
Patch6: docbook-dtds-ents.patch
e8163d
#Use system rewrite for web URL's in sgml catalogs to prevent reading from the network(#478680)
e8163d
Patch7: docbook-sgml-systemrewrite.patch
e8163d
#use XML at the end of public identificators of XML 4.1.2 ISO entities
e8163d
Patch8: docbook-dtd412-entities.patch
e8163d
BuildRequires: unzip
e8163d
e8163d
%description
e8163d
The DocBook Document Type Definition (DTD) describes the syntax of
e8163d
technical documentation texts (articles, books and manual pages).
e8163d
This syntax is XML-compliant and is developed by the OASIS consortium.
e8163d
This package contains SGML and XML versions of the DocBook DTD.
e8163d
e8163d
e8163d
%prep
e8163d
%setup -c -T
e8163d
eval mkdir %{version_list}
e8163d
# DocBook V3.0
e8163d
cd 3.0-sgml
e8163d
unzip %{SOURCE0}
e8163d
%patch0 -p0 -b docbook.cat
e8163d
cd ..
e8163d
e8163d
# DocBook V3.1
e8163d
cd 3.1-sgml
e8163d
unzip %{SOURCE1}
e8163d
%patch1 -p0 -b docbook.cat
e8163d
cd ..
e8163d
e8163d
# DocBook V4.0
e8163d
cd 4.0-sgml
e8163d
unzip %{SOURCE2}
e8163d
%patch2 -p0 -b docbook.cat
e8163d
cd ..
e8163d
e8163d
# DocBook V4.1
e8163d
cd 4.1-sgml
e8163d
unzip %{SOURCE3}
e8163d
%patch3 -p0 -b docbook.cat
e8163d
cd ..
e8163d
e8163d
# DocBook XML V4.1.2
e8163d
cd 4.1.2-xml
e8163d
unzip %{SOURCE4}
e8163d
cd ..
e8163d
e8163d
# DocBook V4.2
e8163d
cd 4.2-sgml
e8163d
unzip %{SOURCE5}
e8163d
%patch4 -p0 -b docbook.cat
e8163d
cd ..
e8163d
e8163d
# DocBook XML V4.2
e8163d
cd 4.2-xml
e8163d
unzip %{SOURCE6}
e8163d
cd ..
e8163d
e8163d
# DocBook V4.3
e8163d
cd 4.3-sgml
e8163d
unzip %{SOURCE7}
e8163d
cd ..
e8163d
e8163d
# DocBook XML V4.3
e8163d
cd 4.3-xml
e8163d
unzip %{SOURCE8}
e8163d
cd ..
e8163d
e8163d
# DocBook V4.4
e8163d
cd 4.4-sgml
e8163d
unzip %{SOURCE9}
e8163d
cd ..
e8163d
e8163d
# DocBook XML V4.4
e8163d
cd 4.4-xml
e8163d
unzip %{SOURCE10}
e8163d
cd ..
e8163d
e8163d
# DocBook v4.5
e8163d
cd 4.5-sgml
e8163d
unzip %{SOURCE11}
e8163d
cd ..
e8163d
e8163d
# DocBook XML v4.5
e8163d
cd 4.5-xml
e8163d
unzip %{SOURCE12}
e8163d
cd ..
e8163d
e8163d
# Docbook RNG v4.2
e8163d
cd 4.2-rng
e8163d
unzip %{SOURCE13}
e8163d
cd ..
e8163d
e8163d
# Docbook RNG v4.3
e8163d
cd 4.3-rng
e8163d
unzip %{SOURCE14}
e8163d
cd ..
e8163d
e8163d
# Docbook RNG v4.4
e8163d
cd 4.4-rng
e8163d
unzip %{SOURCE15}
e8163d
cd ..
e8163d
e8163d
# Docbook RNG v4.5
e8163d
cd 4.5-rng
e8163d
unzip %{SOURCE16}
e8163d
cd ..
e8163d
e8163d
# Docbook XSD v4.2
e8163d
cd 4.2-xsd
e8163d
unzip %{SOURCE17}
e8163d
cd ..
e8163d
e8163d
# Docbook XSD v4.3
e8163d
cd 4.3-xsd
e8163d
unzip %{SOURCE18}
e8163d
cd ..
e8163d
e8163d
# Docbook XSD v4.4
e8163d
cd 4.4-xsd
e8163d
unzip %{SOURCE19}
e8163d
cd ..
e8163d
e8163d
# Docbook XSD v4.5
e8163d
cd 4.5-xsd
e8163d
unzip %{SOURCE20}
e8163d
cd ..
e8163d
e8163d
# Fix € in SGML.
e8163d
%patch5 -p1
e8163d
e8163d
# Fix ISO entities in 4.3/4.4/4.5 SGML
e8163d
%patch6 -p1
e8163d
e8163d
# Rewrite SYSTEM to use local catalog instead web ones (#478680)
e8163d
%patch7 -p1
e8163d
e8163d
# Add XML to the end of public identificators of 4.1.2 XML entities
e8163d
%patch8 -p1
e8163d
e8163d
# Increase NAMELEN (bug #36058, bug #159382).
e8163d
sed -e's,\(NAMELEN\s\+\)44\(\s\*\)\?,\1256,' -i.namelen */docbook.dcl
e8163d
e8163d
# fix of \r\n issue from rpmlint
e8163d
sed -i 's/\r//' */*.txt
e8163d
e8163d
e8163d
if [ `id -u` -eq 0 ]; then
e8163d
  chown -R root:root .
e8163d
  chmod -R a+rX,g-w,o-w .
e8163d
fi
e8163d
e8163d
e8163d
%build
e8163d
e8163d
e8163d
%install
e8163d
rm -rf $RPM_BUILD_ROOT
e8163d
e8163d
# Symlinks
e8163d
mkdir -p $RPM_BUILD_ROOT/etc/sgml
e8163d
for fmt in sgml xml; do
e8163d
  ln -s $fmt-docbook-4.5.cat \
e8163d
     $RPM_BUILD_ROOT/etc/sgml/$fmt-docbook.cat
e8163d
done
e8163d
e8163d
eval set %{version_list}
e8163d
for dir
e8163d
do
e8163d
  cd $dir
e8163d
  fmt=${dir#*-} ver=${dir%%-*}
e8163d
  case $fmt in
e8163d
    sgml)   DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-dtd-$ver ;;
e8163d
    xml)    DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-dtd-$ver ;;
e8163d
    rng)    DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-$ver ;;
e8163d
    xsd)    DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-$ver ;;
e8163d
  esac
e8163d
  case $fmt in
e8163d
    sgml)   mkdir -p $DESTDIR ; install *.dcl $DESTDIR ;;
e8163d
    xml)    mkdir -p $DESTDIR/ent ; install ent/* $DESTDIR/ent ;;
e8163d
    rng)    mkdir -p $DESTDIR ; install *.r* $DESTDIR ;;
e8163d
    xsd)    mkdir -p $DESTDIR ; install *.xsd $DESTDIR;;
e8163d
  esac
e8163d
  cd ..
e8163d
done
e8163d
e8163d
eval set %{catalog_list}
e8163d
for dir
e8163d
do
e8163d
  cd $dir
e8163d
  fmt=${dir#*-} ver=${dir%%-*}
e8163d
  DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-dtd-$ver
e8163d
  install *.dtd *.mod $DESTDIR
e8163d
  install docbook.cat $DESTDIR/catalog
e8163d
  cd ..
e8163d
  # File for %%ghost
e8163d
  touch $RPM_BUILD_ROOT/etc/sgml/$fmt-docbook-$ver.cat
e8163d
done
e8163d
e8163d
#workaround the missing support for --parents hack in rpm 4.11+
e8163d
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}
e8163d
for i in */*.txt */ChangeLog */README
e8163d
do
e8163d
  cp -pr --parents $i $RPM_BUILD_ROOT%{_pkgdocdir}
e8163d
done
e8163d
e8163d
%clean
e8163d
rm -rf $RPM_BUILD_ROOT
e8163d
e8163d
e8163d
%files
e8163d
%defattr (0644,root,root,0755)
e8163d
#in upstream tarballs there is a lot of files with 0755 permissions
e8163d
#but they don't need to be, 0644 is enough for every file in tarball
e8163d
%{_pkgdocdir}
e8163d
/usr/share/sgml/docbook/*ml-dtd-*
e8163d
/usr/share/sgml/docbook/rng-*
e8163d
/usr/share/sgml/docbook/xsd-*
e8163d
%config(noreplace) /etc/sgml/*ml-docbook.cat
e8163d
%ghost %config(noreplace) /etc/sgml/*ml-docbook-*.cat
e8163d
e8163d
%post
e8163d
catcmd='/usr/bin/xmlcatalog --noout'
e8163d
xmlcatalog=/usr/share/sgml/docbook/xmlcatalog
e8163d
e8163d
## Clean up pre-docbook-dtds mess caused by broken trigger.
e8163d
for v in 3.0 3.1 4.0 4.1 4.2
e8163d
do
e8163d
  if [ -f /etc/sgml/sgml-docbook-$v.cat ]
e8163d
  then
e8163d
    $catcmd --sgml --del /etc/sgml/sgml-docbook-$v.cat \
e8163d
      /usr/share/sgml/openjade-1.3.1/catalog 2>/dev/null
e8163d
  fi
e8163d
done
e8163d
e8163d
# The STYLESHEETS/catalog command is for the case in which the style sheets
e8163d
# were installed after another DTD but before this DTD
e8163d
for STYLESHEETS in /usr/share/sgml/docbook/dsssl-stylesheets-*; do : ; done
e8163d
case $STYLESHEETS in
e8163d
  *-"*") STYLESHEETS= ;;
e8163d
esac
e8163d
eval set %{catalog_list}
e8163d
for dir
e8163d
do
e8163d
  fmt=${dir#*-} ver=${dir%%-*}
e8163d
  sgmldir=/usr/share/sgml/docbook/$fmt-dtd-$ver
e8163d
  ## SGML catalog
e8163d
  # Update the centralized catalog corresponding to this version of the DTD
e8163d
  for cat_dir in /usr/share/sgml/sgml-iso-entities-8879.1986 $sgmldir $STYLESHEETS; do
e8163d
    $catcmd --sgml --add /etc/sgml/$fmt-docbook-$ver.cat $cat_dir/catalog
e8163d
  done
e8163d
  ## XML catalog
e8163d
  if [ $fmt = xml -a -w $xmlcatalog ]; then
e8163d
    while read f desc; do
e8163d
      case $ver in 4.[45]) f=${f/-/} ;; esac
e8163d
      $catcmd --add public "$desc" $sgmldir/$f $xmlcatalog
e8163d
    done <
e8163d
      ent/iso-pub.ent	ISO 8879:1986//ENTITIES Publishing//EN
e8163d
      ent/iso-grk1.ent	ISO 8879:1986//ENTITIES Greek Letters//EN
e8163d
      dbpoolx.mod	-//OASIS//ELEMENTS DocBook XML Information Pool V$ver//EN
e8163d
      ent/iso-box.ent	ISO 8879:1986//ENTITIES Box and Line Drawing//EN
e8163d
      docbookx.dtd	-//OASIS//DTD DocBook XML V$ver//EN
e8163d
      ent/iso-grk3.ent	ISO 8879:1986//ENTITIES Greek Symbols//EN
e8163d
      ent/iso-amsn.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN
e8163d
      ent/iso-num.ent	ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN
e8163d
      dbcentx.mod	-//OASIS//ENTITIES DocBook XML Character Entities V$ver//EN
e8163d
      ent/iso-grk4.ent	ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN
e8163d
      dbnotnx.mod	-//OASIS//ENTITIES DocBook XML Notations V$ver//EN
e8163d
      ent/iso-dia.ent	ISO 8879:1986//ENTITIES Diacritical Marks//EN
e8163d
      ent/iso-grk2.ent	ISO 8879:1986//ENTITIES Monotoniko Greek//EN
e8163d
      dbgenent.mod	-//OASIS//ENTITIES DocBook XML Additional General Entities V$ver//EN
e8163d
      dbhierx.mod	-//OASIS//ELEMENTS DocBook XML Document Hierarchy V$ver//EN
e8163d
      ent/iso-amsa.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN
e8163d
      ent/iso-amso.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN
e8163d
      ent/iso-cyr1.ent	ISO 8879:1986//ENTITIES Russian Cyrillic//EN
e8163d
      ent/iso-tech.ent	ISO 8879:1986//ENTITIES General Technical//EN
e8163d
      ent/iso-amsc.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN
e8163d
      soextblx.dtd	-//OASIS//DTD XML Exchange Table Model 19990315//EN
e8163d
      calstblx.dtd	-//OASIS//DTD DocBook XML CALS Table Model V$ver//EN
e8163d
      ent/iso-lat1.ent	ISO 8879:1986//ENTITIES Added Latin 1//EN
e8163d
      ent/iso-amsb.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN
e8163d
      ent/iso-lat2.ent	ISO 8879:1986//ENTITIES Added Latin 2//EN
e8163d
      ent/iso-amsr.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN
e8163d
      ent/iso-cyr2.ent	ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN
e8163d
ENDENT
e8163d
    for f in System URI; do
e8163d
      $catcmd --add rewrite$f "http://www.oasis-open.org/docbook/xml/$ver" \
e8163d
	$sgmldir $xmlcatalog
e8163d
    done
e8163d
  fi
e8163d
done
e8163d
e8163d
# Historic versions of this scriptlet contained the following comment:
e8163d
# <quote>
e8163d
# Fix up SGML super catalog so that there isn't an XML DTD before an
e8163d
# SGML one.  We need to do this (*sigh*) because xmlcatalog messes up
e8163d
# the order of the lines, and SGML tools don't like to see XML things
e8163d
# they aren't expecting.
e8163d
# </quote>
e8163d
# But the code that followed just found the first XML DTD and the first
e8163d
# SGML DTD, swappinmg these two lines if the XML one preceded.
e8163d
# But that only ensures that there is an SGML DTD before all XML ones.
e8163d
# No one complained, so either this was enough, or the buggy SGML tools
e8163d
# are long dead, or their users do not use bugzilla.
e8163d
# Anyway, the following code, introduced in 1.0-46, does better: it ensures
e8163d
# that all XML DTDs are after all SGML ones, by moving them to the end.
e8163d
sed -ni '
e8163d
  /xml-docbook/ H
e8163d
  /xml-docbook/ !p
e8163d
  $ {
e8163d
          g
e8163d
          s/^\n//p
e8163d
  }
e8163d
  ' /etc/sgml/catalog
e8163d
e8163d
# Finally, make sure everything in /etc/sgml is readable!
e8163d
%{_bindir}/chmod a+r /etc/sgml/*
e8163d
e8163d
%postun
e8163d
# remove entries only on removal of package
e8163d
if [ "$1" = 0 ]; then
e8163d
  catcmd='/usr/bin/xmlcatalog --noout'
e8163d
  xmlcatalog=/usr/share/sgml/docbook/xmlcatalog
e8163d
  entities="
e8163d
ent/iso-pub.ent
e8163d
ent/iso-grk1.ent
e8163d
dbpoolx.mod
e8163d
ent/iso-box.ent
e8163d
docbookx.dtd
e8163d
ent/iso-grk3.ent
e8163d
ent/iso-amsn.ent
e8163d
ent/iso-num.ent
e8163d
dbcentx.mod
e8163d
ent/iso-grk4.ent
e8163d
dbnotnx.mod
e8163d
ent/iso-dia.ent
e8163d
ent/iso-grk2.ent
e8163d
dbgenent.mod
e8163d
dbhierx.mod
e8163d
ent/iso-amsa.ent
e8163d
ent/iso-amso.ent
e8163d
ent/iso-cyr1.ent
e8163d
ent/iso-tech.ent
e8163d
ent/iso-amsc.ent
e8163d
soextblx.dtd
e8163d
calstblx.dtd
e8163d
ent/iso-lat1.ent
e8163d
ent/iso-amsb.ent
e8163d
ent/iso-lat2.ent
e8163d
ent/iso-amsr.ent
e8163d
ent/iso-cyr2.ent
e8163d
  "
e8163d
  eval set %{catalog_list}
e8163d
  for dir
e8163d
  do
e8163d
    fmt=${dir#*-} ver=${dir%%-*}
e8163d
    sgmldir=/usr/share/sgml/docbook/$fmt-dtd-$ver
e8163d
    ## SGML catalog
e8163d
    # Update the centralized catalog corresponding to this version of the DTD
e8163d
    $catcmd --sgml --del /etc/sgml/catalog /etc/sgml/$fmt-docbook-$ver.cat
e8163d
    rm -f /etc/sgml/$fmt-docbook-$ver.cat
e8163d
    ## XML catalog
e8163d
    if [ $fmt = xml -a -w $xmlcatalog ]; then
e8163d
      for f in $entities; do
e8163d
        case $ver in 4.[45]) f=${f/-/} ;; esac
e8163d
        $catcmd --del $sgmldir/$f $xmlcatalog
e8163d
      done
e8163d
      $catcmd --del $sgmldir $xmlcatalog
e8163d
    fi
e8163d
  done
e8163d
e8163d
  # See the comment attached to this command in the %%post scriptlet.
e8163d
  sed -ni '
e8163d
  /xml-docbook/ H
e8163d
  /xml-docbook/ !p
e8163d
  $ {
e8163d
          g
e8163d
          s/^\n//p
e8163d
  }
e8163d
    ' /etc/sgml/catalog
e8163d
fi
e8163d
e8163d
%triggerin -- openjade >= %{openjadever}
e8163d
eval set %{catalog_list}
e8163d
for dir
e8163d
do
e8163d
  fmt=${dir#*-} ver=${dir%%-*}
e8163d
  /usr/bin/xmlcatalog --sgml --noout --add /etc/sgml/$fmt-docbook-$ver.cat \
e8163d
    /usr/share/sgml/openjade-%{openjadever}/catalog
e8163d
done
e8163d
e8163d
%triggerun -- openjade >= %{openjadever}
e8163d
[ $2 = 0 ] || exit 0
e8163d
eval set %{catalog_list}
e8163d
for dir
e8163d
do
e8163d
  fmt=${dir#*-} ver=${dir%%-*}
e8163d
  /usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/$fmt-docbook-$ver.cat \
e8163d
    /usr/share/sgml/openjade-%{openjadever}/catalog
e8163d
done
e8163d
e8163d
%changelog
e8163d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-69
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e8163d
e8163d
* Tue Oct 31 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.0-68
e8163d
- Use /usr/bin instead of /bin in Requires
e8163d
e8163d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-67
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e8163d
e8163d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-66
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e8163d
e8163d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-65
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e8163d
e8163d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-64
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e8163d
e8163d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-63
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e8163d
e8163d
* Mon Aug 19 2013 Ondrej Vasik <ovasik@redhat.com> - 1.0-62
e8163d
- package Relax NG schema format (#839665)
e8163d
- package W3C XML (XSD) schema format
e8163d
e8163d
* Tue Aug 06 2013 Ondrej Vasik <ovasik@redhat.com> - 1.0-61
e8163d
- use pkgdocdir variable when available (#993727)
e8163d
e8163d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-60
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e8163d
e8163d
* Thu Feb 21 2013 Ondrej Vasik <ovasik@redhat.com> - 1.0-59
e8163d
- workaround incompatible change in rpm (causing FTBFS)
e8163d
e8163d
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-58
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e8163d
e8163d
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-57
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e8163d
e8163d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-56
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e8163d
e8163d
* Tue May 17 2011 Ondrej Vasik <ovasik@redhat.com> - 1.0-55
e8163d
- fix typo in 4.5 xml dtd catalog
e8163d
e8163d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-54
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e8163d
e8163d
* Tue May 18 2010 Ondrej Vasik <ovasik@redhat.com> - 1.0-53
e8163d
- post and postun scriptlet requires sed (#593078)
e8163d
- use standard locations for catalog.xml(#591173)
e8163d
e8163d
* Wed Mar 03 2010 Ondrej Vasik <ovasik@redhat.com> - 1.0-52
e8163d
- remove explicit lib dependency (#225700)
e8163d
e8163d
* Wed Mar 03 2010 Ondrej Vasik <ovasik@redhat.com> - 1.0-51
e8163d
- fix Merge Review comments (#225700) - unversion requires,
e8163d
  fix buildroot
e8163d
e8163d
* Thu Dec 17 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0-50
e8163d
- comment patches
e8163d
- License: Copyright only
e8163d
e8163d
* Tue Oct 27 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0-49
e8163d
- do not obsolete self
e8163d
e8163d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-48
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e8163d
e8163d
* Mon May 11 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0-47
e8163d
- add requires(post) for /bin/chmod (#498680)
e8163d
e8163d
* Wed Apr  8 2009 Stepan Kasal <skasal@redhat.com> - 1.0-46
e8163d
- remove perl dependency (#462997)
e8163d
- make %%install and the scriptlets more compact
e8163d
e8163d
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-45
e8163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e8163d
e8163d
* Thu Feb 19 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0.44
e8163d
- fix ISO entities for 4.5 SGML, use XML at the end of
e8163d
  public identificators of XML 4.1.2 ISO entities
e8163d
e8163d
* Thu Feb 19 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0-43
e8163d
- register sgml catalogs before xml catalogs in openjade
e8163d
  (#486257)
e8163d
e8163d
* Thu Feb 05 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0-42
e8163d
- Use SYSTEM rewrite for web URL's in sgml catalogs to
e8163d
  prevent reading from the network(#478680)
e8163d
e8163d
* Fri Sep 26 2008 Ondrej Vasik <ovasik@redhat.com> - 1.0-41
e8163d
- Removed openjade requirement - registration reworked to
e8163d
  triggers(#234345)
e8163d
e8163d
* Wed Sep 24 2008 Ondrej Vasik <ovasik@redhat.com> - 1.0-40
e8163d
- Fix wrong filenames for xml-dtd-4.4 and xml-dtd-4.5
e8163d
  iso entities(#461206)
e8163d
- /ent/iso-cyr1.ent now correctly registered in xml catalog
e8163d
  (there was /ent/iso-cyrl.ent typo)
e8163d
- fixed broken unregistration of xml-dtds from catalog
e8163d
  (missing CAT_DIR variable)
e8163d
e8163d
* Fri Aug 29 2008 Ondrej Vasik <ovasik@redhat.com> - 1.0-39
e8163d
- rebuild with F9 spec file to fix some heavy-weight black
e8163d
  magic causing failures of sgml documents
e8163d
e8163d
* Fri Jul 11 2008 Ondrej Vasik <ovasik@redhat.com> - 1.0-38
e8163d
- fixed typo in post scriptlet(causing mishandling of DocBook
e8163d
  4.4 and 4.5 DTDs,#453513)
e8163d
e8163d
* Wed Jul 09 2008 Ondrej Vasik <ovasik@redhat.com> - 1.0-37
e8163d
- use full paths in xmlcatalog registration
e8163d
e8163d
* Tue May 13 2008 Ondrej Vasik <ovasik@redhat.com> - 1.0-36
e8163d
- changed License(#445008)
e8163d
e8163d
* Mon Nov 26 2007 Ondrej Vasik <ovasik@redhat.com> - 1.0-35
e8163d
- fixed bug causing typo in spec file(#397651)
e8163d
e8163d
* Tue Oct 23 2007 Ondrej Vasik <ovasik@redhat.com> - 1.0-34
e8163d
- corrected most of rpmlint issues
e8163d
- (PreReq, tab/spaces , wrong permissions on some files,
e8163d
-  wrong file end encoding of txt files, non config files
e8163d
-  in /etc, some requires issues, versioned provides and
e8163d
-  obsoletes, fixed license tag)
e8163d
e8163d
* Fri Oct 19 2007 Ondrej Vasik <ovasik@redhat.com> - 1.0-33
e8163d
- fixed wrong attributes for docs(#326581)
e8163d
e8163d
* Mon Oct  1 2007 Ondrej Vasik <ovasik@redhat.com> - 1.0-32
e8163d
- DocBook 4.5 SGML and XML.(#312941)
e8163d
- added dist tag
e8163d
e8163d
* Wed Jun 20 2007 Ondrej Vasik <ovasik@redhat.com> - 1.0-31
e8163d
- .cat files touched and ghosted to be owned by package
e8163d
- (bug #193475)
e8163d
e8163d
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0-30.1
e8163d
- rebuild
e8163d
e8163d
* Tue Dec 13 2005 Tim Waugh <twaugh@redhat.com> 1.0-30
e8163d
- Fix ISO entities in 4.3/4.4 SGML.
e8163d
e8163d
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
e8163d
- rebuilt
e8163d
e8163d
* Fri Oct 21 2005 Tim Waugh <twaugh@redhat.com> 1.0-29
e8163d
- Scriptlet fix (bug #171229).
e8163d
e8163d
* Thu Oct 13 2005 Tim Waugh <twaugh@redhat.com> 1.0-28
e8163d
- Fixed last fix (bug #159382).
e8163d
e8163d
* Thu Jun  2 2005 Tim Waugh <twaugh@redhat.com> 1.0-27
e8163d
- Increase NAMELEN (bug #36058, bug #159382).
e8163d
e8163d
* Tue Feb  1 2005 Tim Waugh <twaugh@redhat.com> 1.0-26
e8163d
- DocBook 4.4 SGML and XML.
e8163d
e8163d
* Mon Sep 13 2004 Tim Waugh <twaugh@redhat.com> 1.0-25
e8163d
- DocBook 4.3 SGML and XML (bug #131861).
e8163d
e8163d
* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com> 1.0-24
e8163d
- Use ':' instead of '.' as separator for chown.
e8163d
e8163d
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
e8163d
- rebuilt
e8163d
e8163d
* Wed Aug  6 2003 Tim Waugh <twaugh@redhat.com> 1.0-22.1
e8163d
- Rebuilt.
e8163d
e8163d
* Wed Aug  6 2003 Tim Waugh <twaugh@redhat.com> 1.0-22
e8163d
- More work-arounds for buggy xmlcatalog.
e8163d
e8163d
* Tue Jul 15 2003 Tim Waugh <twaugh@redhat.com> 1.0-21.1
e8163d
- Rebuilt.
e8163d
e8163d
* Tue Jul 15 2003 Tim Waugh <twaugh@redhat.com> 1.0-21
e8163d
- Fix € in SGML tools.
e8163d
e8163d
* Wed May 28 2003 Tim Waugh <twaugh@redhat.com> 1.0-20
e8163d
- Fix summary and description (bug #73005).
e8163d
e8163d
* Fri Mar 28 2003 Tim Waugh <twaugh@redhat.com> 1.0-19
e8163d
- Use --parents in %%doc.
e8163d
- Fix %%postun scriptlet.
e8163d
e8163d
* Fri Mar 14 2003 Tim Waugh <twaugh@redhat.com> 1.0-18
e8163d
- Use Requires:, not Conflicts:, for openjade.
e8163d
- Require openjade 1.3.2.
e8163d
e8163d
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 1.0-17
e8163d
- rebuilt
e8163d
e8163d
* Fri Dec 20 2002 Tim Waugh <twaugh@redhat.com> 1.0-16
e8163d
- Fix typos in scriplets (bug #80109).
e8163d
e8163d
* Wed Nov 20 2002 Tim Powers <timp@redhat.com> 1.0-15
e8163d
- rebuild in current collinst
e8163d
e8163d
* Mon Jul 29 2002 Tim Waugh <twaugh@redhat.com> 1.0-14
e8163d
- Fix typo in XML catalog (Eric Raymond).
e8163d
e8163d
* Tue Jul 23 2002 Tim Waugh <twaugh@redhat.com> 1.0-13
e8163d
- Provide docbook-dtd42-sgml and docbook-dtd42-xml.
e8163d
e8163d
* Thu Jul 18 2002 Tim Waugh <twaugh@redhat.com> 1.0-12
e8163d
- Fix up SGML super catalog if necessary.
e8163d
e8163d
* Wed Jul 17 2002 Tim Waugh <twaugh@redhat.com> 1.0-11
e8163d
- Add DocBook V4.2.
e8163d
e8163d
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.0-10
e8163d
- automated rebuild
e8163d
e8163d
* Thu May 23 2002 Tim Powers <timp@redhat.com> 1.0-9
e8163d
- automated rebuild
e8163d
e8163d
* Thu Mar 14 2002 Tim Waugh <twaugh@redhat.com> 1.0-8
e8163d
- Allow for shared /usr/share (bug #61147).
e8163d
e8163d
* Tue Mar 12 2002 Tim Waugh <twaugh@redhat.com> 1.0-7
e8163d
- Make sure that the config files are readable.
e8163d
e8163d
* Fri Mar  8 2002 Tim Waugh <twaugh@redhat.com> 1.0-6
e8163d
- Make %%post scriptlet quiet (bug #60820).
e8163d
e8163d
* Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 1.0-5
e8163d
- Make sure to clean up old catalog files.
e8163d
e8163d
* Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 1.0-3
e8163d
- Rebuild in new environment.
e8163d
e8163d
* Mon Jan 28 2002 Tim Waugh <twaugh@redhat.com> 1.0-2
e8163d
- Prepare for openjade 1.3.1.
e8163d
e8163d
* Thu Jan 17 2002 Tim Waugh <twaugh@redhat.com> 1.0-1
e8163d
- Merged all the DTD packages into one (bug #58448).
e8163d
- Use /usr/share/sgml exclusively.
e8163d
- Prevent catalog files from disappearing on upgrade (bug #58463).
e8163d
e8163d
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
e8163d
- automated rebuild
e8163d
e8163d
* Mon Nov  5 2001 Tim Waugh <twaugh@redhat.com> 1.0-8
e8163d
- Hmm, still need to depend on sgml-common for /etc/sgml.
e8163d
e8163d
* Mon Nov  5 2001 Tim Waugh <twaugh@redhat.com> 1.0-7
e8163d
- Use xmlcatalog (libxml2) instead of install-catalog (sgml-common) in
e8163d
  scriptlets.
e8163d
- Conflict with install-catalog if it can't handle quotes in catalogs.
e8163d
- Use release number in centralized catalog name, so that the scriptlets
e8163d
  work properly.
e8163d
e8163d
* Wed Oct 10 2001 Tim Waugh <twaugh@redhat.com> 1.0-6
e8163d
- Change some Requires: to PreReq:s (bug #54507).
e8163d
e8163d
* Mon Oct  8 2001 Tim Waugh <twaugh@redhat.com> 1.0-5
e8163d
- Use release number in the installed directory name, so that the
e8163d
  package scripts work.
e8163d
e8163d
* Sat Oct  6 2001 Tim Waugh <twaugh@redhat.com> 1.0-4
e8163d
- Restore the /etc/sgml/catalog manipulation again.
e8163d
- Oops, fix DTD path.
e8163d
e8163d
* Sat Oct  6 2001 Tim Waugh <twaugh@redhat.com> 1.0-2
e8163d
- Require xml-common.  Use xmlcatalog.
e8163d
- Move files to /usr/share/xml.
e8163d
e8163d
* Tue Jun 12 2001 Tim Waugh <twaugh@redhat.com> 1.0-1
e8163d
- Build for Red Hat Linux.
e8163d
e8163d
* Sat Jun 09 2001 Chris Runge <crunge@pobox.com>
e8163d
- Provides: docbook-dtd-xml (not docbook-dtd-sgml)
e8163d
- undo catalog patch and dbcentx patch (this resulted in an effectively
e8163d
  broken DTD when the document was processed with XSL stylesheets); added a
e8163d
  symbolic link to retain docbook.cat -> catalog; added ent
e8163d
- added ChangeLog to doc
e8163d
e8163d
* Fri Jun 08 2001 Chris Runge <crunge@pobox.com>
e8163d
- created a 4.1.2 version
e8163d
- update required a change to OTHERCAT in postun
e8163d
- update required a change to the Makefile patch (no dbgenent.ent any more,
e8163d
  apparently)
e8163d
e8163d
* Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com>
e8163d
- Scripts require fileutils.
e8163d
- Make scripts quieter.
e8163d
e8163d
* Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
e8163d
- Don't play so many macro games.
e8163d
- Don't use 'rpm' in post scripts.
e8163d
- Be sure to own xml-dtd-4.1 directory.
e8163d
e8163d
* Sun Jan 14 2001 Tim Waugh <twaugh@redhat.com>
e8163d
- Change requirement on /usr/bin/install-catalog to sgml-common.
e8163d
e8163d
* Tue Jan 09 2001 Tim Waugh <twaugh@redhat.com>
e8163d
- Change group.
e8163d
- Use %%{_tmppath}.
e8163d
- Correct typo.
e8163d
- rm before install
e8163d
- openjade not jade.
e8163d
- Build requires unzip.
e8163d
- Require install-catalog for post and postun.
e8163d
- Change Copyright: to License:.
e8163d
- Remove Packager: line.
e8163d
e8163d
* Tue Jan 09 2001 Tim Waugh <twaugh@redhat.com>
e8163d
- Based on Eric Bischoff's new-trials packages.