1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY opensp-download-http "http://download.sourceforge.net/openjade/OpenSP-&opensp-version;.tar.gz">
|
---|
8 | <!ENTITY opensp-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/OpenSP-&opensp-version;.tar.gz">
|
---|
9 | <!ENTITY opensp-md5sum "f46fe0a04b76a4454ec27b7fcc84ec54">
|
---|
10 | <!ENTITY opensp-size "1.4 MB">
|
---|
11 | <!ENTITY opensp-buildsize "43 MB">
|
---|
12 | <!ENTITY opensp-time "0.97 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="opensp" xreflabel="OpenSP-&opensp-version;">
|
---|
16 | <?dbhtml filename="opensp.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | <keywordset>
|
---|
22 | <keyword role="package">OpenSP-&opensp-version;.tar</keyword>
|
---|
23 | <keyword role="ftpdir">OpenSP</keyword>
|
---|
24 | </keywordset>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>OpenSP-&opensp-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="opensp">
|
---|
30 | <primary sortas="a-OpenSP">OpenSP</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to OpenSP</title>
|
---|
35 |
|
---|
36 | <para>The <application>OpenSP</application> package contains a
|
---|
37 | <application>C++</application> library for using SGML/XML files.
|
---|
38 | This is useful for validating, parsing and manipulating SGML and XML
|
---|
39 | documents.</para>
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>Download (HTTP): <ulink url="&opensp-download-http;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download (FTP): <ulink url="&opensp-download-ftp;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download MD5 sum: &opensp-md5sum;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download size: &opensp-size;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated disk space required: &opensp-buildsize;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Estimated build time: &opensp-time;</para>
|
---|
60 | </listitem>
|
---|
61 | </itemizedlist>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
64 | <itemizedlist spacing='compact'>
|
---|
65 | <listitem>
|
---|
66 | <para>Required Patch (removes some annoying messages that can appear
|
---|
67 | while running <command>openjade</command>): <ulink
|
---|
68 | url="&patch-root;/OpenSP-&opensp-version;-LITLEN-1.patch"/></para>
|
---|
69 | </listitem>
|
---|
70 | <listitem>
|
---|
71 | <para>Required Patch: <ulink
|
---|
72 | url="&patch-root;/OpenSP-&opensp-version;-gcc34-1.patch"/></para>
|
---|
73 | </listitem>
|
---|
74 | </itemizedlist>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect3">OpenSP Dependencies</bridgehead>
|
---|
77 |
|
---|
78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
79 | <para role="required"><xref linkend="sgml-common"/></para>
|
---|
80 |
|
---|
81 | <para condition="html" role="usernotes">User Notes:
|
---|
82 | <ulink url="&blfs-wiki;/opensp"/></para>
|
---|
83 |
|
---|
84 | </sect2>
|
---|
85 |
|
---|
86 | <sect2 role="installation">
|
---|
87 | <title>Installation of OpenSP</title>
|
---|
88 |
|
---|
89 | <para>Install <application>OpenSP</application> by running the following
|
---|
90 | commands:</para>
|
---|
91 |
|
---|
92 | <screen><userinput>patch -Np1 -i ../OpenSP-&opensp-version;-LITLEN-1.patch &&
|
---|
93 | patch -Np1 -i ../OpenSP-&opensp-version;-gcc34-1.patch &&
|
---|
94 | ./configure --prefix=/usr --disable-static --enable-http \
|
---|
95 | --enable-default-catalog=/etc/sgml/catalog \
|
---|
96 | --enable-default-search-path=/usr/share/sgml &&
|
---|
97 | make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version;</userinput></screen>
|
---|
98 |
|
---|
99 | <para>To test the results, issue <command>make check</command>. As many as
|
---|
100 | eight of the 22 tests may fail. Do not be alarmed.</para>
|
---|
101 |
|
---|
102 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
103 |
|
---|
104 | <screen role="root"><userinput>make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version; install &&
|
---|
105 | ln -v -sf onsgmls /usr/bin/nsgmls &&
|
---|
106 | ln -v -sf osgmlnorm /usr/bin/sgmlnorm &&
|
---|
107 | ln -v -sf ospam /usr/bin/spam &&
|
---|
108 | ln -v -sf ospcat /usr/bin/spcat &&
|
---|
109 | ln -v -sf ospent /usr/bin/spent &&
|
---|
110 | ln -v -sf osx /usr/bin/sx &&
|
---|
111 | ln -v -sf osx /usr/bin/sgml2xml &&
|
---|
112 | ln -v -sf libosp.so /usr/lib/libsp.so</userinput></screen>
|
---|
113 |
|
---|
114 | <!--
|
---|
115 | install-catalog -add /etc/sgml/OpenSP-&opensp-version;.cat \
|
---|
116 | /usr/share/sgml/OpenSP-&opensp-version;/catalog &&
|
---|
117 | install-catalog -add /etc/sgml/sgml-docbook.cat \
|
---|
118 | /etc/sgml/OpenSP-&opensp-version;.cat</command></userinput></screen>
|
---|
119 |
|
---|
120 | <tip><title>Update hint</title>
|
---|
121 | <para>Remove the above catalog items prior to upgrading with:
|
---|
122 | <screen><command>install-catalog -remove /etc/sgml/OpenSP-<replaceable><version></replaceable>.cat \
|
---|
123 | /usr/share/sgml/OpenSP-<replaceable><version></replaceable>/catalog &&
|
---|
124 | install-catalog -remove /etc/sgml/sgml-docbook.cat \
|
---|
125 | /etc/sgml/OpenSP-<replaceable><version></replaceable>.cat</command></screen></para></tip>
|
---|
126 | -->
|
---|
127 |
|
---|
128 | </sect2>
|
---|
129 |
|
---|
130 | <sect2 role="commands">
|
---|
131 | <title>Command Explanations</title>
|
---|
132 |
|
---|
133 | <para><parameter>--disable-static</parameter>: This switch prevents
|
---|
134 | the building of the static library.</para>
|
---|
135 |
|
---|
136 | <para><parameter>--enable-http</parameter>: This switch adds support
|
---|
137 | for HTTP.</para>
|
---|
138 |
|
---|
139 | <para><parameter>--enable-default-catalog=/etc/sgml/catalog</parameter>:
|
---|
140 | This switch sets the path to the centralized catalog.</para>
|
---|
141 |
|
---|
142 | <para><parameter>--enable-default-search-path</parameter>: This switch
|
---|
143 | sets the default value of <envar>SGML_SEARCH_PATH</envar>.</para>
|
---|
144 |
|
---|
145 | <para><option>--enable-xml-messages</option>: This switch adds
|
---|
146 | support for XML Formatted Messages.</para>
|
---|
147 |
|
---|
148 | <para><command>make
|
---|
149 | pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version;</command>: This sets the
|
---|
150 | pkgdatadir variable in the <filename>Makefile</filename> from
|
---|
151 | <filename class="directory">/usr/share/OpenSP</filename> to <filename
|
---|
152 | class="directory">/usr/share/sgml/OpenSP-&opensp-version;</filename>.</para>
|
---|
153 |
|
---|
154 | <para><command>ln -v -sf ...</command>: These commands create the
|
---|
155 | <application>SP</application> equivalents of
|
---|
156 | <application>OpenSP</application> executables and libraries.</para>
|
---|
157 |
|
---|
158 | </sect2>
|
---|
159 |
|
---|
160 | <sect2 role="content">
|
---|
161 | <title>Contents</title>
|
---|
162 |
|
---|
163 | <segmentedlist>
|
---|
164 | <segtitle>Installed Programs</segtitle>
|
---|
165 | <segtitle>Installed Library</segtitle>
|
---|
166 | <segtitle>Installed Directories</segtitle>
|
---|
167 |
|
---|
168 | <seglistitem>
|
---|
169 | <seg>onsgmls, osgmlnorm, ospam, ospcat, ospent, osx, and the
|
---|
170 | <application>SP</application> equivalent symlinks: nsgmls, sgml2xml,
|
---|
171 | sgmlnorm, spam, spcat, spent, and sx</seg>
|
---|
172 | <seg>libosp.so and the <application>SP</application> equivalent symlink:
|
---|
173 | libsp.so</seg>
|
---|
174 | <seg>/usr/include/OpenSP, /usr/share/doc/OpenSP, and
|
---|
175 | /usr/share/sgml/OpenSP-&opensp-version;</seg>
|
---|
176 | </seglistitem>
|
---|
177 | </segmentedlist>
|
---|
178 |
|
---|
179 | <variablelist>
|
---|
180 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
181 | <?dbfo list-presentation="list"?>
|
---|
182 | <?dbhtml list-presentation="table"?>
|
---|
183 |
|
---|
184 | <varlistentry id="onsgmls">
|
---|
185 | <term><command>onsgmls</command></term>
|
---|
186 | <listitem>
|
---|
187 | <para>is used to process SGML files.</para>
|
---|
188 | <indexterm zone="opensp onsgmls">
|
---|
189 | <primary sortas="b-onsgmls">onsgmls</primary>
|
---|
190 | </indexterm>
|
---|
191 | </listitem>
|
---|
192 | </varlistentry>
|
---|
193 |
|
---|
194 | <varlistentry id="osgmlnorm">
|
---|
195 | <term><command>osgmlnorm</command></term>
|
---|
196 | <listitem>
|
---|
197 | <para>prints on the standard output a normalized document instance
|
---|
198 | for the SGML document contained in the concatenation of the entities
|
---|
199 | with system identifiers .nf and .fi.</para>
|
---|
200 | <indexterm zone="opensp osgmlnorm">
|
---|
201 | <primary sortas="b-osgmlnorm">osgmlnorm</primary>
|
---|
202 | </indexterm>
|
---|
203 | </listitem>
|
---|
204 | </varlistentry>
|
---|
205 |
|
---|
206 | <varlistentry id="ospam">
|
---|
207 | <term><command>ospam</command></term>
|
---|
208 | <listitem>
|
---|
209 | <para>is a markup stream editor.</para>
|
---|
210 | <indexterm zone="opensp ospam">
|
---|
211 | <primary sortas="b-ospam">ospam</primary>
|
---|
212 | </indexterm>
|
---|
213 | </listitem>
|
---|
214 | </varlistentry>
|
---|
215 |
|
---|
216 | <varlistentry id="ospcat">
|
---|
217 | <term><command>ospcat</command></term>
|
---|
218 | <listitem>
|
---|
219 | <para>prints effective system identifiers found in the catalogs.</para>
|
---|
220 | <indexterm zone="opensp ospcat">
|
---|
221 | <primary sortas="b-ospcat">ospcat</primary>
|
---|
222 | </indexterm>
|
---|
223 | </listitem>
|
---|
224 | </varlistentry>
|
---|
225 |
|
---|
226 | <varlistentry id="ospent">
|
---|
227 | <term><command>ospent</command></term>
|
---|
228 | <listitem>
|
---|
229 | <para>provides access to <application>OpenSP</application>'s
|
---|
230 | entity manager.</para>
|
---|
231 | <indexterm zone="opensp ospent">
|
---|
232 | <primary sortas="b-ospent">ospent</primary>
|
---|
233 | </indexterm>
|
---|
234 | </listitem>
|
---|
235 | </varlistentry>
|
---|
236 |
|
---|
237 | <varlistentry id="osx">
|
---|
238 | <term><command>osx</command></term>
|
---|
239 | <listitem>
|
---|
240 | <para>is an SGML normalizer or used to convert
|
---|
241 | SGML files to XML files.</para>
|
---|
242 | <indexterm zone="opensp osx">
|
---|
243 | <primary sortas="b-osx">osx</primary>
|
---|
244 | </indexterm>
|
---|
245 | </listitem>
|
---|
246 | </varlistentry>
|
---|
247 |
|
---|
248 | <varlistentry id="nsgmls">
|
---|
249 | <term><command>nsgmls</command></term>
|
---|
250 | <listitem>
|
---|
251 | <para>is a symlink to <command>onsgmls</command>.</para>
|
---|
252 | <indexterm zone="opensp nsgmls">
|
---|
253 | <primary sortas="g-nsgmls">nsgmls</primary>
|
---|
254 | </indexterm>
|
---|
255 | </listitem>
|
---|
256 | </varlistentry>
|
---|
257 |
|
---|
258 | <varlistentry id="sgml2xml">
|
---|
259 | <term><command>sgml2xml</command></term>
|
---|
260 | <listitem>
|
---|
261 | <para>is a symlink to <command>osx</command>.</para>
|
---|
262 | <indexterm zone="opensp sgml2xml">
|
---|
263 | <primary sortas="g-sgml2xml">sgml2xml</primary>
|
---|
264 | </indexterm>
|
---|
265 | </listitem>
|
---|
266 | </varlistentry>
|
---|
267 |
|
---|
268 | <varlistentry id="sgmlnorm">
|
---|
269 | <term><command>sgmlnorm</command></term>
|
---|
270 | <listitem>
|
---|
271 | <para>is a symlink to <command>osgmlnorm</command>.</para>
|
---|
272 | <indexterm zone="opensp sgmlnorm">
|
---|
273 | <primary sortas="g-sgmlnorm">sgmlnorm</primary>
|
---|
274 | </indexterm>
|
---|
275 | </listitem>
|
---|
276 | </varlistentry>
|
---|
277 |
|
---|
278 | <varlistentry id="spam">
|
---|
279 | <term><command>spam</command></term>
|
---|
280 | <listitem>
|
---|
281 | <para>is a symlink to <command>ospam</command>.</para>
|
---|
282 | <indexterm zone="opensp spam">
|
---|
283 | <primary sortas="g-spam">spam</primary>
|
---|
284 | </indexterm>
|
---|
285 | </listitem>
|
---|
286 | </varlistentry>
|
---|
287 |
|
---|
288 | <varlistentry id="spcat">
|
---|
289 | <term><command>spcat</command></term>
|
---|
290 | <listitem>
|
---|
291 | <para>is a symlink to <command>ospcat</command>.</para>
|
---|
292 | <indexterm zone="opensp spcat">
|
---|
293 | <primary sortas="g-spcat">spcat</primary>
|
---|
294 | </indexterm>
|
---|
295 | </listitem>
|
---|
296 | </varlistentry>
|
---|
297 |
|
---|
298 | <varlistentry id="spent">
|
---|
299 | <term><command>spent</command></term>
|
---|
300 | <listitem>
|
---|
301 | <para>is a symlink to <command>ospent</command>.</para>
|
---|
302 | <indexterm zone="opensp spent">
|
---|
303 | <primary sortas="g-spent">spent</primary>
|
---|
304 | </indexterm>
|
---|
305 | </listitem>
|
---|
306 | </varlistentry>
|
---|
307 |
|
---|
308 | <varlistentry id="sx">
|
---|
309 | <term><command>sx</command></term>
|
---|
310 | <listitem>
|
---|
311 | <para>is a symlink to <command>osx</command>.</para>
|
---|
312 | <indexterm zone="opensp sx">
|
---|
313 | <primary sortas="g-sx">sx</primary>
|
---|
314 | </indexterm>
|
---|
315 | </listitem>
|
---|
316 | </varlistentry>
|
---|
317 |
|
---|
318 | <varlistentry id="libosp">
|
---|
319 | <term><filename class='libraryfile'>libosp.so</filename></term>
|
---|
320 | <listitem>
|
---|
321 | <para>contains functions required by the
|
---|
322 | <application>OpenSP</application> programs to parse, validate and
|
---|
323 | manipulate SGML and XML files.</para>
|
---|
324 | <indexterm zone="opensp libosp">
|
---|
325 | <primary sortas="c-libosp">libosp.so</primary>
|
---|
326 | </indexterm>
|
---|
327 | </listitem>
|
---|
328 | </varlistentry>
|
---|
329 |
|
---|
330 | <varlistentry id="libsp">
|
---|
331 | <term><filename class='libraryfile'>libsp.so</filename></term>
|
---|
332 | <listitem>
|
---|
333 | <para>is a symlink to
|
---|
334 | <filename class='libraryfile'>libosp.so</filename>.</para>
|
---|
335 | <indexterm zone="opensp libsp">
|
---|
336 | <primary sortas="g-libsp">libsp.so</primary>
|
---|
337 | </indexterm>
|
---|
338 | </listitem>
|
---|
339 | </varlistentry>
|
---|
340 |
|
---|
341 | </variablelist>
|
---|
342 |
|
---|
343 | </sect2>
|
---|
344 |
|
---|
345 | </sect1>
|
---|