1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Applications/Text
13 summary = Common SGML catalog and DTD files.
16 The sgml-common package contains a collection of entities and DTDs
17 that are useful for processing SGML, but that don't need to be
18 included in multiple packages. Sgml-common also includes an
19 up-to-date Open Catalog file.
23 sources = %{thisapp}.tgz
32 configure_options += \
33 --mandir=/usr/share/man \
37 for i in COPYING INSTALL install-sh missing mkinstalldirs; do \
39 cp -pvf /usr/share/automake*/${i} .; \
44 mkdir -pv %{BUILDROOT}/etc/{sg,x}ml/docbook
45 mkdir -pv %{BUILDROOT}/usr/share/sgml/docbook
48 touch %{BUILDROOT}/etc/sgml/catalog
50 # Create an empty XML catalog.
51 xmlcatalog --noout --create %{BUILDROOT}/etc/xml/catalog
53 # Now put the common DocBook entries in it
54 xmlcatalog --noout --add "delegatePublic" \
55 "-//OASIS//ENTITIES DocBook XML" \
56 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
58 xmlcatalog --noout --add "delegatePublic" \
59 "-//OASIS//DTD DocBook XML" \
60 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
62 xmlcatalog --noout --add "delegatePublic" \
64 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
66 xmlcatalog --noout --add "delegateSystem" \
67 "http://www.oasis-open.org/docbook/" \
68 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
70 xmlcatalog --noout --add "delegateURI" \
71 "http://www.oasis-open.org/docbook/" \
72 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
74 # Also create the common DocBook catalog
75 xmlcatalog --noout --create \
76 %{BUILDROOT}/etc/sgml/docbook/xmlcatalog
78 ln -svf ../../../../etc/sgml/docbook/xmlcatalog \
79 %{BUILDROOT}/usr/share/sgml/docbook/xmlcatalog
81 rm -f %{BUILDROOT}/usr/share/sgml/xml.dcl
83 install -p -m0644 %{DIR_SOURCE}/*.dcl %{DIR_SOURCE}/*.soc \
84 %{BUILDROOT}/usr/share/sgml
86 rm -rf %{BUILDROOT}/usr/share/xml/*
98 summary = Common XML catalog and DTD files.
100 The xml-common is a subpackage of sgml-common which contains
101 a collection XML catalogs that are useful for processing XML,
102 but that don't need to be included in main package.
107 /etc/sgml/docbook/xmlcatalog
108 /usr/share/sgml/docbook/xmlcatalog