Name: docbook-dtds Version: 20080923 Release: 4mamba Group: Applications/Publishing Summary: SGML and XML document type definitions for DocBook. License: Distributable URL: http://www.oasis-open.org/docbook/ Distribution: openmamba Vendor: openmamba Packager: Silvan Calarco Provides: docbook-dtd-xml docbook-dtd-sgml Provides: docbook-dtd30-sgml docbook-dtd31-sgml Provides: docbook-dtd40-sgml docbook-dtd41-sgml Provides: docbook-dtd412-xml Provides: docbook-dtd42-sgml docbook-dtd42-xml Provides: docbook-dtd43-sgml docbook-dtd43-xml Provides: docbook-dtd44-sgml docbook-dtd44-xml Provides: docbook-dtd45-sgml docbook-dtd45-xml Provides: docbook-dtd50-sgml docbook-dtd50-xml Requires(pre): libxml2-utils >= 2.6.17 Requires(pre): libxml2 >= 2.6.17 Source0: http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip Source1: http://www.oasis-open.org/docbook/sgml/3.1/docbk31.zip Source2: http://www.oasis-open.org/docbook/sgml/4.0/docbk40.zip Source3: http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip Source4: http://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip Source5: http://www.oasis-open.org/docbook/sgml/4.2/docbook-4.2.zip Source6: http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip Source7: http://www.oasis-open.org/docbook/sgml/4.3/docbook-4.3.zip Source8: http://www.oasis-open.org/docbook/xml/4.3/docbook-xml-4.3.zip Source9: http://www.oasis-open.org/docbook/sgml/4.4/docbook-4.4.zip Source10: http://www.oasis-open.org/docbook/xml/4.4/docbook-xml-4.4.zip Source11: http://www.oasis-open.org/docbook/sgml/4.5/docbook-4.5.zip Source12: http://www.oasis-open.org/docbook/xml/4.5/docbook-xml-4.5.zip #Source13: http://www.oasis-open.org/docbook/sgml/5.0/docbook-5.0.zip #Source14: http://www.oasis-open.org/docbook/xml/5.0/docbook-xml-5.0.zip Patch0: docbook-dtd30-sgml-1.0.catalog.patch Patch1: docbook-dtd31-sgml-1.0.catalog.patch Patch2: docbook-dtd40-sgml-1.0.catalog.patch Patch3: docbook-dtd41-sgml-1.0.catalog.patch Patch4: docbook-dtd42-sgml-1.0.catalog.patch Patch5: docbook-4.2-euro.patch ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: unzip >= 5.50 BuildRoot: %{_tmppath}/%{name}-%{version} Obsoletes: docbook Provides: docbook BuildArch: noarch %description The DocBook Document Type Definition (DTD) describes the syntax of technical documentation texts (articles, books and manual pages). This syntax is XML-compliant and is developed by the OASIS consortium. This package contains SGML and XML versions of the DocBook DTD. %prep %setup -q -c -T function prep_docbook() { install -d $1 ( cd $1 unzip $2 [ "$3" ] && patch -b docbook.cat $3 || : ) } prep_docbook 3.0-sgml %{SOURCE0} %{PATCH0} prep_docbook 3.1-sgml %{SOURCE1} %{PATCH1} prep_docbook 4.0-sgml %{SOURCE2} %{PATCH2} prep_docbook 4.1-sgml %{SOURCE3} %{PATCH3} prep_docbook 4.1.2-xml %{SOURCE4} prep_docbook 4.2-sgml %{SOURCE5} %{PATCH4} prep_docbook 4.2-xml %{SOURCE6} # Fix € in SGML. %patch5 -p1 prep_docbook 4.3-sgml %{SOURCE7} prep_docbook 4.3-xml %{SOURCE8} prep_docbook 4.4-sgml %{SOURCE9} prep_docbook 4.4-xml %{SOURCE10} prep_docbook 4.5-sgml %{SOURCE11} prep_docbook 4.5-xml %{SOURCE12} #prep_docbook 5.0-sgml %{SOURCE13} #prep_docbook 5.0-xml %{SOURCE14} %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d -m0755 %{buildroot}%{_datadir}/xml/docbook/schema/dtd function build_docbook() { cd $1-$2 DESTDIR=%{buildroot}%{_datadir}/sgml/docbook/$2-dtd-$1%{suffix} DESTDIR_XML=%{buildroot}%{_datadir}/xml/docbook/schema/dtd install -d $DESTDIR # remove uninstalled .gml files if [ "$2" = "sgml" ]; then sed -i -e '/ISO 8879/d' -e '/gml/d' docbook.cat fi install docbook.cat $DESTDIR/catalog install *.dtd $DESTDIR install *.mod $DESTDIR case "$2" in sgml) install *.dcl $DESTDIR ;; xml) install -d $DESTDIR/ent install ent/* $DESTDIR/ent ;; esac # Compatibility symlink if [ "$2" = "xml" ]; then ln -sf ../../../../sgml/docbook/xml-dtd-$1 %{buildroot}%{_datadir}/xml/docbook/schema/dtd/$1 fi cd .. } build_docbook 3.0 sgml build_docbook 3.1 sgml build_docbook 4.0 sgml build_docbook 4.1 sgml build_docbook 4.1.2 xml build_docbook 4.2 sgml build_docbook 4.2 xml build_docbook 4.3 sgml build_docbook 4.3 xml build_docbook 4.4 sgml build_docbook 4.4 xml build_docbook 4.5 sgml build_docbook 4.5 xml #build_docbook 5.0 sgml #build_docbook 5.0 xml # symlinks install -d %{buildroot}/etc/sgml ln -s sgml-docbook-4.5%{suffix}.cat \ %{buildroot}/etc/sgml/sgml-docbook.cat ln -s xml-docbook-4.5%{suffix}.cat \ %{buildroot}/etc/sgml/xml-docbook.cat install -d %{buildroot}%{_datadir}/sgml/sgml-iso-entities-8879.1986 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" # disable executable requirement script because the script contains a function %define __scriptlet_requires /bin/true %post if [ $1 -ge 1 ]; then #new install or upgrade CATALOG=/usr/share/sgml/sgml-iso-entities-8879.1986/catalog [ -e $CATALOG ] || xmlcatalog --noout --create $CATALOG # update the centralized catalog corresponding to this version of the DTD function update_catalog() { /usr/bin/xmlcatalog --sgml --noout \ --add /etc/sgml/$2-docbook-$1%{suffix}.cat \ $CATALOG /usr/bin/xmlcatalog --sgml --noout \ --add /etc/sgml/$2-docbook-$1%{suffix}.cat \ /usr/share/sgml/docbook/$2-dtd-$1%{suffix}/catalog } update_catalog 3.0 sgml update_catalog 3.1 sgml update_catalog 4.0 sgml update_catalog 4.1 sgml update_catalog 4.1.2 xml update_catalog 4.2 sgml update_catalog 4.2 xml update_catalog 4.3 sgml update_catalog 4.3 xml update_catalog 4.4 sgml update_catalog 4.4 xml update_catalog 4.5 sgml update_catalog 4.5 xml #update_catalog 5.0 sgml #update_catalog 5.0 xml # 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 function update_catalog() { #/usr/bin/xmlcatalog --sgml --noout \ # --add /etc/sgml/$2-docbook-$1%{suffix}.cat \ # /usr/share/sgml/openjade-%{openjadever}/catalog /usr/bin/xmlcatalog --sgml --noout \ --add /etc/sgml/$2-docbook-$1%{suffix}.cat \ /usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog } update_catalog 3.0 sgml update_catalog 3.1 sgml update_catalog 4.0 sgml update_catalog 4.1 sgml update_catalog 4.1.2 xml update_catalog 4.2 sgml update_catalog 4.2 xml update_catalog 4.3 sgml update_catalog 4.3 xml update_catalog 4.4 sgml update_catalog 4.4 xml update_catalog 4.5 xml update_catalog 4.5 sgml # update_catalog 5.0 xml # update_catalog 5.0 sgml fi # # XML catalog # CATALOG=/etc/xml/catalog #/usr/share/sgml/docbook/xmlcatalog [ -e $CATALOG ] || xmlcatalog --noout --create $CATALOG function update_catalog() { /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Publishing//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-pub.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Greek Letters//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-grk1.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "-//OASIS//ELEMENTS DocBook XML Information Pool V$1//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/dbpoolx.mod" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-box.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "-//OASIS//DTD DocBook XML V$1//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/docbookx.dtd" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Greek Symbols//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1-%{suffix}/ent/iso-grk3.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-amsn.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-num.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "-//OASIS//ENTITIES DocBook XML Character Entities V$1//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/dbcentx.mod" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-grk4.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "-//OASIS//ENTITIES DocBook XML Notations V$1//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/dbnotnx.mod" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Diacritical Marks//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-dia.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-grk2.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "-//OASIS//ENTITIES DocBook XML Additional General Entities V$1//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/dbgenent.mod" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V$1//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/dbhierx.mod" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-amsa.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-amso.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-cyrl.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES General Technical//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-tech.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-amsc.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/soextblx.dtd" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "-//OASIS//DTD DocBook XML CALS Table Model V$1//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/calstblx.dtd" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Latin 1//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-lat1.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-amsb.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Latin 2//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-lat2.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-amsr.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "public" \ "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}/ent/iso-cyr2.ent" $CATALOG /usr/bin/xmlcatalog --noout --add "rewriteSystem" \ "http://www.oasis-open.org/docbook/xml/$1" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}" $CATALOG /usr/bin/xmlcatalog --noout --add "rewriteURI" \ "http://www.oasis-open.org/docbook/xml/$1" \ "/usr/share/sgml/docbook/xml-dtd-$1%{suffix}" $CATALOG } if [ -w $CATALOG ]; then update_catalog 4.1.2 update_catalog 4.2 update_catalog 4.3 update_catalog 4.4 update_catalog 4.5 # update_catalog 5.0 fi # Finally, make sure everything in /etc/sgml is readable! /bin/chmod a+r /etc/sgml/* fi # new install or upgrade exit 0 %postun if [ $1 -eq 0 ]; then #erase # # SGML catalog # # update the centralized catalog corresponding to this version of the DTD function update_catalog() { /usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/$2-docbook-$1%{suffix}.cat \ /etc/sgml/catalog 2>/dev/null rm -f /etc/sgml/$2-docbook-$1%{suffix}.cat } update_catalog 3.0 sgml update_catalog 3.1 sgml update_catalog 4.0 sgml update_catalog 4.1 sgml update_catalog 4.1.2 xml update_catalog 4.2 sgml update_catalog 4.2 xml update_catalog 4.3 sgml update_catalog 4.3 xml update_catalog 4.4 sgml update_catalog 4.4 xml update_catalog 4.5 sgml update_catalog 4.5 xml #update_catalog 5.0 sgml #update_catalog 5.0 xml # # XML catalog # CATALOG=/usr/share/sgml/docbook/xmlcatalog [ -e $CATALOG ] || xmlcatalog --noout --create $CATALOG function update_catalog() { /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-pub.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-grk1.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/dbpoolx.mod" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-box.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/docbookx.dtd" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-grk3.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-amsn.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-num.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/dbcentx.mod" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-grk4.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/dbnotnx.mod" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-dia.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-grk2.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/dbgenent.mod" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/dbhierx.mod" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-amsa.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-amso.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-cyrl.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-tech.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-amsc.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/soextblx.dtd" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/calstblx.dtd" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-lat1.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-amsb.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-lat2.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-amsr.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}/ent/iso-cyr2.ent" $CATALOG /usr/bin/xmlcatalog --noout \ --del "xml-dtd-$1%{suffix}" $CATALOG } if [ -w $CATALOG ]; then update_catalog 4.1.2 update_catalog 4.2 update_catalog 4.3 update_catalog 4.4 update_catalog 4.5 # update_catalog 5.0 fi fi # erase exit 0 %files %defattr (-,root,root) %dir %{_datadir}/xml/docbook %dir %{_datadir}/xml/docbook/schema %dir %{_datadir}/xml/docbook/schema/dtd %{_datadir}/xml/docbook/schema/dtd/* %{_datadir}/sgml/docbook/sgml-dtd-3.0%{suffix} %{_datadir}/sgml/docbook/sgml-dtd-3.1%{suffix} %{_datadir}/sgml/docbook/sgml-dtd-4.0%{suffix} %{_datadir}/sgml/docbook/sgml-dtd-4.1%{suffix} %{_datadir}/sgml/docbook/sgml-dtd-4.2%{suffix} %{_datadir}/sgml/docbook/sgml-dtd-4.3%{suffix} %{_datadir}/sgml/docbook/sgml-dtd-4.4%{suffix} %{_datadir}/sgml/docbook/sgml-dtd-4.5%{suffix} %{_datadir}/sgml/docbook/xml-dtd-4.1.2%{suffix} %{_datadir}/sgml/docbook/xml-dtd-4.2%{suffix} %{_datadir}/sgml/docbook/xml-dtd-4.3%{suffix} %{_datadir}/sgml/docbook/xml-dtd-4.4%{suffix} %{_datadir}/sgml/docbook/xml-dtd-4.5%{suffix} #%{_datadir}/sgml/docbook/xml-dtd-5.0%{suffix} %dir %{_datadir}/sgml/sgml-iso-entities-8879.1986 /etc/sgml/sgml-docbook.cat /etc/sgml/xml-docbook.cat #%doc --parents 3.1-sgml/ChangeLog #%doc --parents 4.1-sgml/ChangeLog #%doc --parents */*.txt %changelog * Thu Dec 03 2020 Silvan Calarco 20080923-4mamba - remove missing .gml files from installed catalogs * Thu Jul 18 2019 Silvan Calarco 20080923-3mamba - create compatibility symlinks to /usr/share/xml/docbook/schema/dtd * Tue Aug 27 2013 Automatic Build System 20080923-2mamba - automatic rebuild by autodist * Tue Sep 23 2008 Silvan Calarco 20080923-1mamba - update to 20080923 * Sun Oct 30 2005 Silvan Calarco 1.0-6qilnx - rebuilt as noarch package * Wed Feb 23 2005 Silvan Calarco 1.0-5qilnx - fixed requirements on libxml2 * Wed Feb 23 2005 Silvan Calarco 1.0-4qilnx - fixed creation of xml catalog * Tue Feb 22 2005 Silvan Calarco 1.0-3qilnx - added docbook 4.3 and 4.4 - specfile cleanups * Fri Jan 21 2005 Silvan Calarco 1.0-2qilnx - rebuilt and moved for devel-contrib to devel repository * Thu Sep 23 2004 Matteo Bernasconi 1.0-1qilnx - first Build