automatic rebuild by autodist [release 20080923-2mamba;Tue Aug 27 2013]

This commit is contained in:
Automatic Build System 2024-01-05 21:51:35 +01:00
parent 8736543508
commit f32574782e
8 changed files with 732 additions and 0 deletions

View File

@ -1,2 +1,6 @@
# docbook-dtds
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.

22
docbook-4.2-euro.patch Normal file
View File

@ -0,0 +1,22 @@
--- docbook-dtds-1.0/4.2-sgml/docbookx.dtd.euro 2003-07-15 09:07:58.000000000 +0100
+++ docbook-dtds-1.0/4.2-sgml/docbookx.dtd 2003-07-15 09:08:12.000000000 +0100
@@ -106,7 +106,7 @@
<![%dbcent.module;[
<![%sgml.features;[
-<!ENTITY euro "[euro ]"><!-- euro sign, U+20AC NEW -->
+<!ENTITY euro SDATA "[euro ]"><!-- euro sign, U+20AC NEW -->
]]>
<![%xml.features;[
<!ENTITY euro "&#x20AC;"><!-- euro sign, U+20AC NEW -->
--- docbook-dtds-1.0/4.2-xml/docbookx.dtd.euro 2003-07-15 09:08:02.000000000 +0100
+++ docbook-dtds-1.0/4.2-xml/docbookx.dtd 2003-07-15 09:08:21.000000000 +0100
@@ -106,7 +106,7 @@
<![%dbcent.module;[
<![%sgml.features;[
-<!ENTITY euro "[euro ]"><!-- euro sign, U+20AC NEW -->
+<!ENTITY euro SDATA "[euro ]"><!-- euro sign, U+20AC NEW -->
]]>
<![%xml.features;[
<!ENTITY euro "&#x20AC;"><!-- euro sign, U+20AC NEW -->

View File

@ -0,0 +1,41 @@
--- docbook.cat Tue Dec 10 16:35:22 1996
+++ catalog Mon Jun 5 11:08:34 2000
@@ -27,7 +27,7 @@
-- ...................................................................... --
-- SGML declaration associated with DocBook ............................. --
-DTDDECL "-//Davenport//DTD DocBook V3.0//EN" "docbook.dcl"
+SGMLDECL "docbook.dcl"
-- ...................................................................... --
-- DocBook driver file .................................................. --
@@ -41,29 +41,6 @@
PUBLIC "-//Davenport//ELEMENTS DocBook Information Pool V3.0//EN" "dbpool.mod"
PUBLIC "-//Davenport//ELEMENTS DocBook Document Hierarchy V3.0//EN" "dbhier.mod"
PUBLIC "-//Davenport//ENTITIES DocBook Additional General Entities V3.0//EN" "dbgenent.mod"
-
- -- ...................................................................... --
- -- ISO entity sets ...................................................... --
-
-PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "iso-dia.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "iso-num.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "iso-pub.gml"
-PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" "iso-tech.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "iso-lat1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "iso-lat2.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" "iso-grk1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "iso-grk2.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" "iso-grk3.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "iso-grk4.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "iso-amsa.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "iso-amsb.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "iso-amsc.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "iso-amsn.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "iso-amso.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "iso-amsr.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "iso-box.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "iso-cyr1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "iso-cyr2.gml"
-- End of catalog data for DocBook V3.0 ................................. --
-- ...................................................................... --

View File

@ -0,0 +1,41 @@
--- docbook.cat Tue Feb 2 06:53:32 1999
+++ catalog Thu May 25 11:45:01 2000
@@ -19,7 +19,7 @@
-- ...................................................................... --
-- SGML declaration associated with DocBook ............................. --
-DTDDECL "-//OASIS//DTD DocBook V3.1//EN" "docbook.dcl"
+SGMLDECL "docbook.dcl"
-- ...................................................................... --
-- DocBook driver file .................................................. --
@@ -35,29 +35,6 @@
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V3.1//EN" "dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V3.1//EN" "dbnotn.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V3.1//EN" "dbcent.mod"
-
- -- ...................................................................... --
- -- ISO entity sets ...................................................... --
-
-PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "iso-dia.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "iso-num.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "iso-pub.gml"
-PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" "iso-tech.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "iso-lat1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "iso-lat2.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" "iso-grk1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "iso-grk2.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" "iso-grk3.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "iso-grk4.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "iso-amsa.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "iso-amsb.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "iso-amsc.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "iso-amsn.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "iso-amso.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "iso-amsr.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "iso-box.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "iso-cyr1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "iso-cyr2.gml"
-- End of catalog data for DocBook V3.1 ................................. --
-- ...................................................................... --

View File

@ -0,0 +1,41 @@
--- docbook.cat Mon May 22 22:38:05 2000
+++ catalog Mon May 22 22:12:36 2000
@@ -19,7 +19,7 @@
-- ...................................................................... --
-- SGML declaration associated with DocBook ............................. --
-DTDDECL "-//OASIS//DTD DocBook V4.0//EN" "docbook.dcl"
+SGMLDECL "docbook.dcl"
-- ...................................................................... --
-- DocBook driver file .................................................. --
@@ -35,29 +35,6 @@
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.0//EN" "dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.0//EN" "dbnotn.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.0//EN" "dbcent.mod"
-
- -- ...................................................................... --
- -- ISO entity sets ...................................................... --
-
-PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "iso-dia.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "iso-num.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "iso-pub.gml"
-PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" "iso-tech.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "iso-lat1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "iso-lat2.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" "iso-grk1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "iso-grk2.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" "iso-grk3.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "iso-grk4.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "iso-amsa.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "iso-amsb.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "iso-amsc.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "iso-amsn.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "iso-amso.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "iso-amsr.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "iso-box.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "iso-cyr1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "iso-cyr2.gml"
-- End of catalog data for DocBook V4.0 ................................. --
-- ...................................................................... --

View File

@ -0,0 +1,41 @@
--- docbook.cat Mon May 22 22:38:05 2000
+++ catalog Mon May 22 22:12:36 2000
@@ -19,7 +19,7 @@
-- ...................................................................... --
-- SGML declaration associated with DocBook ............................. --
-DTDDECL "-//OASIS//DTD DocBook V4.1//EN" "docbook.dcl"
+SGMLDECL "docbook.dcl"
-- ...................................................................... --
-- DocBook driver file .................................................. --
@@ -35,29 +35,6 @@
PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.1//EN" "dbgenent.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.1//EN" "dbnotn.mod"
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.1//EN" "dbcent.mod"
-
- -- ...................................................................... --
- -- ISO entity sets ...................................................... --
-
-PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "iso-dia.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "iso-num.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "iso-pub.gml"
-PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" "iso-tech.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "iso-lat1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "iso-lat2.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" "iso-grk1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "iso-grk2.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" "iso-grk3.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "iso-grk4.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "iso-amsa.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "iso-amsb.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "iso-amsc.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "iso-amsn.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "iso-amso.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "iso-amsr.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "iso-box.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "iso-cyr1.gml"
-PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "iso-cyr2.gml"
-- End of catalog data for DocBook V4.1 ................................. --
-- ...................................................................... --

View File

@ -0,0 +1,68 @@
--- docbook.cat.orig 2002-07-17 17:14:28.000000000 +0100
+++ docbook.cat 2002-07-17 21:58:24.000000000 +0100
@@ -49,65 +49,5 @@
PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN"
"dbcentx.mod"
- -- ...................................................................... --
- -- ISO entity sets ...................................................... --
-
-PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN"
- "iso-dia.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN"
- "iso-num.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN"
- "iso-pub.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN"
- "iso-tech.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN"
- "iso-lat1.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN"
- "iso-lat2.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN"
- "iso-grk1.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN"
- "iso-grk2.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN"
- "iso-grk3.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN"
- "iso-grk4.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN"
- "iso-amsa.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN"
- "iso-amsb.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN"
- "iso-amsc.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN"
- "iso-amsn.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN"
- "iso-amso.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN"
- "iso-amsr.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN"
- "iso-box.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN"
- "iso-cyr1.gml"
-
-PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN"
- "iso-cyr2.gml"
-
-- End of catalog data for DocBook V4.2 ................................. --
-- ...................................................................... --

474
docbook-dtds.spec Normal file
View File

@ -0,0 +1,474 @@
Name: docbook-dtds
Version: 20080923
Release: 2mamba
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 <silvan.calarco@mambasoft.it>
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
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 &euro; 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}"
function build_docbook() {
cd $1-$2
DESTDIR=%{buildroot}%{_datadir}/sgml/docbook/$2-dtd-$1%{suffix}
install -d $DESTDIR
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
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)
%{_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
* Tue Aug 27 2013 Automatic Build System <autodist@mambasoft.it> 20080923-2mamba
- automatic rebuild by autodist
* Tue Sep 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 20080923-1mamba
- update to 20080923
* Sun Oct 30 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-6qilnx
- rebuilt as noarch package
* Wed Feb 23 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-5qilnx
- fixed requirements on libxml2
* Wed Feb 23 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-4qilnx
- fixed creation of xml catalog
* Tue Feb 22 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-3qilnx
- added docbook 4.3 and 4.4
- specfile cleanups
* Fri Jan 21 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-2qilnx
- rebuilt and moved for devel-contrib to devel repository
* Thu Sep 23 2004 Matteo Bernasconi <voyagernm@virgilio.it> 1.0-1qilnx
- first Build