]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - sgml-common/sgml-common.nm
gobject-introspection: Update to 1.39.3.
[people/ms/ipfire-3.x.git] / sgml-common / sgml-common.nm
CommitLineData
f7ab12ae
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = sgml-common
7version = 0.6.3
e409c633
SS
8release = 2
9arch = noarch
f7ab12ae
SS
10
11groups = Applications/Text
12url =
13license = GPL+
14summary = Common SGML catalog and DTD files.
15
16desciption
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.
21end
22
23source_dl =
24sources = %{thisapp}.tgz
25
26build
27 requires
28 autoconf
29 automake
30 libxml2-devel
31 end
32
33 configure_options += \
34 --mandir=/usr/share/man \
35 --sysconfdir=/etc
36
37 prepare_cmds
38 for i in COPYING INSTALL install-sh missing mkinstalldirs; do \
39 rm -f ${i}; \
40 cp -pvf /usr/share/automake*/${i} .; \
41 done
42 end
43
44 install_cmds
45 mkdir -pv %{BUILDROOT}/etc/{sg,x}ml/docbook
46 mkdir -pv %{BUILDROOT}/usr/share/sgml/docbook
1f9bc2f0 47
f7ab12ae
SS
48 # Touch SGML catalog
49 touch %{BUILDROOT}/etc/sgml/catalog
50
51 # Create an empty XML catalog.
52 xmlcatalog --noout --create %{BUILDROOT}/etc/xml/catalog
53
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
58
59 xmlcatalog --noout --add "delegatePublic" \
60 "-//OASIS//DTD DocBook XML" \
61 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
62
63 xmlcatalog --noout --add "delegatePublic" \
64 "ISO 8879:1986" \
65 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
66
67 xmlcatalog --noout --add "delegateSystem" \
68 "http://www.oasis-open.org/docbook/" \
69 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
70
71 xmlcatalog --noout --add "delegateURI" \
72 "http://www.oasis-open.org/docbook/" \
73 "file:///etc/sgml/docbook/xmlcatalog" %{BUILDROOT}/etc/xml/catalog
74
75 # Also create the common DocBook catalog
76 xmlcatalog --noout --create \
77 %{BUILDROOT}/etc/sgml/docbook/xmlcatalog
78
79 ln -svf ../../../../etc/sgml/docbook/xmlcatalog \
80 %{BUILDROOT}/usr/share/sgml/docbook/xmlcatalog
81
82 rm -f %{BUILDROOT}/usr/share/sgml/xml.dcl
83
84 install -p -m0644 %{DIR_SOURCE}/*.dcl %{DIR_SOURCE}/*.soc \
85 %{BUILDROOT}/usr/share/sgml
86
87 rm -rf %{BUILDROOT}/usr/share/xml/*
88 end
89end
90
91packages
92 package %{name}
93 requires
94 xml-common
95 end
96 end
97
98 package xml-common
99 summary = Common XML catalog and DTD files.
100 description
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.
104 end
105
106 files
107 /etc/xml
108 /etc/sgml/docbook/xmlcatalog
109 /usr/share/sgml/docbook/xmlcatalog
110 end
111 end
112end