Package init
This commit is contained in:
parent
b506d8e1dd
commit
e44a1ef6b8
@ -3,7 +3,7 @@
|
||||
|
||||
Name: docbook-dtds
|
||||
Version: 1.0
|
||||
Release: 76
|
||||
Release: 78
|
||||
Summary: The DocBook Document Type Definition.
|
||||
License: Copyright only
|
||||
URL: http://www.oasis-open.org/docbook
|
||||
@ -171,17 +171,76 @@ done
|
||||
%preun
|
||||
|
||||
%post
|
||||
if [ -f /etc/sgml/sgml-docbook-3.0.cat ]
|
||||
then
|
||||
/usr/bin/xmlcatalog --noout --sgml --del /etc/sgml/sgml-docbook-3.0.cat \
|
||||
/usr/share/sgml/openjade-1.3.1/catalog 2>/dev/null
|
||||
fi
|
||||
if [ -f /etc/sgml/sgml-docbook-3.1.cat ]
|
||||
then
|
||||
/usr/bin/xmlcatalog --noout --sgml --del /etc/sgml/sgml-docbook-3.1.cat \
|
||||
/usr/share/sgml/openjade-1.3.1/catalog 2>/dev/null
|
||||
fi
|
||||
if [ -f /etc/sgml/sgml-docbook-4.0.cat ]
|
||||
then
|
||||
/usr/bin/xmlcatalog --noout --sgml --del /etc/sgml/sgml-docbook-4.0.cat \
|
||||
/usr/share/sgml/openjade-1.3.1/catalog 2>/dev/null
|
||||
fi
|
||||
if [ -f /etc/sgml/sgml-docbook-4.1.cat ]
|
||||
then
|
||||
/usr/bin/xmlcatalog --noout --sgml --del /etc/sgml/sgml-docbook-4.1.cat \
|
||||
/usr/share/sgml/openjade-1.3.1/catalog 2>/dev/null
|
||||
fi
|
||||
if [ -f /etc/sgml/sgml-docbook-4.2.cat ]
|
||||
then
|
||||
/usr/bin/xmlcatalog --noout --sgml --del /etc/sgml/sgml-docbook-4.2.cat \
|
||||
/usr/share/sgml/openjade-1.3.1/catalog 2>/dev/null
|
||||
fi
|
||||
|
||||
xmlcatalog=/usr/share/sgml/docbook/xmlcatalog
|
||||
eval set %{all_catalog}
|
||||
for dir
|
||||
do
|
||||
fmt=${dir#*-} ver=${dir%%-*}
|
||||
sgmldir=/usr/share/sgml/docbook/$fmt-dtd-$ver
|
||||
|
||||
for cat_dir in /usr/share/sgml/sgml-iso-entities-8879.1986 $sgmldir $STYLESHEETS; do
|
||||
/usr/bin/xmlcatalog --noout --sgml --add /etc/sgml/$fmt-docbook-$ver.cat $cat_dir/catalog
|
||||
done
|
||||
|
||||
if [ $fmt = xml -a -w $xmlcatalog ]; then
|
||||
while read f desc; do
|
||||
case $ver in 4.[45]) f=${f/-/} ;; esac
|
||||
/usr/bin/xmlcatalog --noout --add public "$desc" $sgmldir/$f $xmlcatalog
|
||||
done
|
||||
done <<ENDENT
|
||||
ent/iso-pub.ent ISO 8879:1986//ENTITIES Publishing//EN
|
||||
ent/iso-grk1.ent ISO 8879:1986//ENTITIES Greek Letters//EN
|
||||
dbpoolx.mod -//OASIS//ELEMENTS DocBook XML Information Pool V$ver//EN
|
||||
ent/iso-box.ent ISO 8879:1986//ENTITIES Box and Line Drawing//EN
|
||||
docbookx.dtd -//OASIS//DTD DocBook XML V$ver//EN
|
||||
ent/iso-grk3.ent ISO 8879:1986//ENTITIES Greek Symbols//EN
|
||||
ent/iso-amsn.ent ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN
|
||||
ent/iso-num.ent ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN
|
||||
dbcentx.mod -//OASIS//ENTITIES DocBook XML Character Entities V$ver//EN
|
||||
ent/iso-grk4.ent ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN
|
||||
dbnotnx.mod -//OASIS//ENTITIES DocBook XML Notations V$ver//EN
|
||||
ent/iso-dia.ent ISO 8879:1986//ENTITIES Diacritical Marks//EN
|
||||
ent/iso-grk2.ent ISO 8879:1986//ENTITIES Monotoniko Greek//EN
|
||||
dbgenent.mod -//OASIS//ENTITIES DocBook XML Additional General Entities V$ver//EN
|
||||
dbhierx.mod -//OASIS//ELEMENTS DocBook XML Document Hierarchy V$ver//EN
|
||||
ent/iso-amsa.ent ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN
|
||||
ent/iso-amso.ent ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN
|
||||
ent/iso-cyr1.ent ISO 8879:1986//ENTITIES Russian Cyrillic//EN
|
||||
ent/iso-tech.ent ISO 8879:1986//ENTITIES General Technical//EN
|
||||
ent/iso-amsc.ent ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN
|
||||
soextblx.dtd -//OASIS//DTD XML Exchange Table Model 19990315//EN
|
||||
calstblx.dtd -//OASIS//DTD DocBook XML CALS Table Model V$ver//EN
|
||||
ent/iso-lat1.ent ISO 8879:1986//ENTITIES Added Latin 1//EN
|
||||
ent/iso-amsb.ent ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN
|
||||
ent/iso-lat2.ent ISO 8879:1986//ENTITIES Added Latin 2//EN
|
||||
ent/iso-amsr.ent ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN
|
||||
ent/iso-cyr2.ent ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN
|
||||
ENDENT
|
||||
for f in System URI; do
|
||||
/usr/bin/xmlcatalog --noout --add rewrite$f "http://www.oasis-open.org/docbook/xml/$ver" \
|
||||
$sgmldir $xmlcatalog
|
||||
@ -190,6 +249,14 @@ do
|
||||
done
|
||||
|
||||
%postun
|
||||
%triggerin -- openjade >= 1.3.2
|
||||
eval set %{all_catalog}
|
||||
for dir
|
||||
do
|
||||
fmt=${dir#*-} ver=${dir%%-*}
|
||||
/usr/bin/xmlcatalog --sgml --noout --add /etc/sgml/$fmt-docbook-$ver.cat \
|
||||
/usr/share/sgml/openjade-1.3.2/catalog
|
||||
done
|
||||
|
||||
%files
|
||||
%config(noreplace) /etc/sgml/*ml-docbook.cat
|
||||
@ -200,6 +267,12 @@ done
|
||||
/usr/share/sgml/docbook/xsd-*
|
||||
|
||||
%changelog
|
||||
* Fri Nov 08 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0-78
|
||||
- fix libkcapi build error.
|
||||
|
||||
* Fri Nov 01 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0-77
|
||||
- fix wpa_supplicant build error.
|
||||
|
||||
* Tue Oct 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0-76
|
||||
- optimize spec file.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user