1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 groups = Applications/Text
14 summary = Common SGML catalog and DTD files.
17 The sgml-common package contains a collection of entities and DTDs
18 that are useful for processing SGML, but that don't need to be
19 included in multiple packages. Sgml-common also includes an
20 up-to-date Open Catalog file.
24 sources = %{thisapp}.tgz
33 configure_options += \
34 --mandir=/usr/share/man \
38 for i in COPYING INSTALL install-sh missing mkinstalldirs; do \
40 cp -pvf /usr/share/automake*/${i} .; \
45 mkdir -pv %{BUILDROOT}/etc/{sg,x}ml/docbook
46 mkdir -pv %{BUILDROOT}/usr/share/sgml/docbook
49 touch %{BUILDROOT}/etc/sgml/catalog
51 # Create an empty XML catalog.
52 xmlcatalog --noout --create %{BUILDROOT}/etc/xml/catalog
54 # Now put the common DocBook entries in it
55 xmlcatalog --noout --add "delegatePublic" \
56 "-//OASIS//ENTITIES DocBook XML" \
57 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
59 xmlcatalog --noout --add "delegatePublic" \
60 "-//OASIS//DTD DocBook XML" \
61 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
63 xmlcatalog --noout --add "delegatePublic" \
65 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
67 xmlcatalog --noout --add "delegateSystem" \
68 "http://www.oasis-open.org/docbook/" \
69 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
71 xmlcatalog --noout --add "delegateURI" \
72 "http://www.oasis-open.org/docbook/" \
73 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
75 # Also create the common DocBook catalog
76 xmlcatalog --noout --create \
77 %{BUILDROOT}/etc/sgml/docbook/xmlcatalog
79 ln -svf ../../../../etc/sgml/docbook/xmlcatalog \
80 %{BUILDROOT}/usr/share/sgml/docbook/xmlcatalog
82 rm -f %{BUILDROOT}/usr/share/sgml/xml.dcl
84 install -p -m0644 %{DIR_SOURCE}/*.dcl %{DIR_SOURCE}/*.soc \
85 %{BUILDROOT}/usr/share/sgml
87 rm -rf %{BUILDROOT}/usr/share/xml/*
99 summary = Common XML catalog and DTD files.
101 The xml-common is a subpackage of sgml-common which contains
102 a collection XML catalogs that are useful for processing XML,
103 but that don't need to be included in main package.
108 /etc/sgml/docbook/xmlcatalog
109 /usr/share/sgml/docbook/xmlcatalog