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