]>
Commit | Line | Data |
---|---|---|
f7ab12ae SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = sgml-common | |
7 | version = 0.6.3 | |
c903105e | 8 | release = 3 |
f7ab12ae SS |
9 | |
10 | groups = Applications/Text | |
11 | url = | |
12 | license = GPL+ | |
13 | summary = Common SGML catalog and DTD files. | |
14 | ||
15 | desciption | |
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. | |
20 | end | |
21 | ||
22 | source_dl = | |
23 | sources = %{thisapp}.tgz | |
24 | ||
25 | build | |
5cd803df MT |
26 | arches = noarch |
27 | ||
f7ab12ae SS |
28 | requires |
29 | autoconf | |
30 | automake | |
31 | libxml2-devel | |
32 | end | |
33 | ||
34 | configure_options += \ | |
c903105e SS |
35 | --mandir=%{mandir} \ |
36 | --sysconfdir=%{sysconfdir} | |
f7ab12ae SS |
37 | |
38 | prepare_cmds | |
39 | for i in COPYING INSTALL install-sh missing mkinstalldirs; do \ | |
40 | rm -f ${i}; \ | |
c903105e | 41 | cp -pvf %{datadir}/automake*/${i} .; \ |
f7ab12ae SS |
42 | done |
43 | end | |
44 | ||
45 | install_cmds | |
c903105e SS |
46 | mkdir -pv %{BUILDROOT}%{sysconfdir}/{sg,x}ml/docbook |
47 | mkdir -pv %{BUILDROOT}%{datadir}/sgml/docbook | |
1f9bc2f0 | 48 | |
f7ab12ae | 49 | # Touch SGML catalog |
c903105e | 50 | touch %{BUILDROOT}%{sysconfdir}/sgml/catalog |
f7ab12ae SS |
51 | |
52 | # Create an empty XML catalog. | |
c903105e | 53 | xmlcatalog --noout --create %{BUILDROOT}%{sysconfdir}/xml/catalog |
f7ab12ae SS |
54 | |
55 | # Now put the common DocBook entries in it | |
56 | xmlcatalog --noout --add "delegatePublic" \ | |
57 | "-//OASIS//ENTITIES DocBook XML" \ | |
c903105e | 58 | "file://%{sysconfdir}/sgml/docbook/xmlcatalog" %{BUILDROOT}%{sysconfdir}/xml/catalog |
f7ab12ae SS |
59 | |
60 | xmlcatalog --noout --add "delegatePublic" \ | |
61 | "-//OASIS//DTD DocBook XML" \ | |
c903105e | 62 | "file://%{sysconfdir}/sgml/docbook/xmlcatalog" %{BUILDROOT}%{sysconfdir}/xml/catalog |
f7ab12ae SS |
63 | |
64 | xmlcatalog --noout --add "delegatePublic" \ | |
65 | "ISO 8879:1986" \ | |
c903105e | 66 | "file://%{sysconfdir}/sgml/docbook/xmlcatalog" %{BUILDROOT}%{sysconfdir}/xml/catalog |
f7ab12ae SS |
67 | |
68 | xmlcatalog --noout --add "delegateSystem" \ | |
69 | "http://www.oasis-open.org/docbook/" \ | |
c903105e | 70 | "file://%{sysconfdir}/sgml/docbook/xmlcatalog" %{BUILDROOT}%{sysconfdir}/xml/catalog |
f7ab12ae SS |
71 | |
72 | xmlcatalog --noout --add "delegateURI" \ | |
73 | "http://www.oasis-open.org/docbook/" \ | |
c903105e | 74 | "file://%{sysconfdir}/sgml/docbook/xmlcatalog" %{BUILDROOT}%{sysconfdir}/xml/catalog |
f7ab12ae SS |
75 | |
76 | # Also create the common DocBook catalog | |
77 | xmlcatalog --noout --create \ | |
c903105e | 78 | %{BUILDROOT}%{sysconfdir}/sgml/docbook/xmlcatalog |
f7ab12ae | 79 | |
c903105e SS |
80 | ln -svf ../../../..%{sysconfdir}/sgml/docbook/xmlcatalog \ |
81 | %{BUILDROOT}%{datadir}/sgml/docbook/xmlcatalog | |
f7ab12ae | 82 | |
c903105e | 83 | rm -rvf %{BUILDROOT}%{datadir}/sgml/xml.dcl |
f7ab12ae SS |
84 | |
85 | install -p -m0644 %{DIR_SOURCE}/*.dcl %{DIR_SOURCE}/*.soc \ | |
c903105e | 86 | %{BUILDROOT}%{datadir}/sgml |
f7ab12ae | 87 | |
c903105e SS |
88 | rm -rvf %{BUILDROOT}%{datadir}/xml/* |
89 | ||
90 | # Remove unused and wrongly installed HTML documentation. | |
91 | rm -rvf %{BUILDROOT}%{prefix}/doc | |
f7ab12ae SS |
92 | end |
93 | end | |
94 | ||
95 | packages | |
96 | package %{name} | |
97 | requires | |
98 | xml-common | |
99 | end | |
100 | end | |
101 | ||
102 | package xml-common | |
103 | summary = Common XML catalog and DTD files. | |
104 | description | |
105 | The xml-common is a subpackage of sgml-common which contains | |
106 | a collection XML catalogs that are useful for processing XML, | |
107 | but that don't need to be included in main package. | |
108 | end | |
109 | ||
110 | files | |
c903105e SS |
111 | %{sysconfdir}/xml |
112 | %{sysconfdir}/sgml/docbook/xmlcatalog | |
113 | %{datadir}/sgml/docbook/xmlcatalog | |
f7ab12ae SS |
114 | end |
115 | end | |
116 | end |