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