source: general/genlib/libpaper.xml@ e052e1c0

trunk
Last change on this file since e052e1c0 was ff87379, checked in by Thomas Trepl <thomas@…>, 6 weeks ago

Upgrade libpaper-2.2.3

  • Property mode set to 100644
File size: 5.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY libpaper-download-http "https://github.com/rrthomas/libpaper/releases/download/v&libpaper-version;/libpaper-&libpaper-version;.tar.gz">
8 <!ENTITY libpaper-download-ftp " ">
9 <!ENTITY libpaper-md5sum "86cb46fafa22bd2a45a72b6cdbd933a1">
10 <!ENTITY libpaper-size "1.1 MB">
11 <!ENTITY libpaper-buildsize "11 MB (with tests)">
12 <!ENTITY libpaper-time "0.1 SBU (with tests)">
13]>
14
15<sect1 id="libpaper" xreflabel="libpaper-&libpaper-version;">
16 <?dbhtml filename="libpaper.html"?>
17
18
19 <title>libpaper-&libpaper-version;</title>
20
21 <indexterm zone="libpaper">
22 <primary sortas="a-libpaper">libpaper</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to libpaper</title>
27
28 <para>
29 This package is intended to provide a simple way for applications to take
30 actions based on a system or user-specified paper size.
31 </para>
32
33 &lfs121_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&libpaper-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&libpaper-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &libpaper-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &libpaper-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &libpaper-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &libpaper-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of libpaper</title>
73
74 <para>
75 Install <application>libpaper</application> by running the following
76 commands:
77 </para>
78
79<screen><userinput>./configure --prefix=/usr \
80 --sysconfdir=/etc \
81 --disable-static \
82 --enable-relocatable \
83 --docdir=/usr/share/doc/libpaper-&libpaper-version; &amp;&amp;
84make</userinput></screen>
85
86 <para>
87 To test the results, issue: <command>make check</command>.
88 </para>
89
90 <para>
91 Now, as the &root; user:
92 </para>
93
94<screen role="root"><userinput>make install</userinput></screen>
95
96 </sect2>
97
98 <sect2 role="commands">
99 <title>Command Explanations</title>
100
101 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
102 href="../../xincludes/static-libraries.xml"/>
103
104 <para>
105 <parameter>--enable-relocatable</parameter>:
106 This switch is needed to run the tests.
107 </para>
108
109 </sect2>
110
111 <sect2 role="configuration">
112 <title>Configuring libpaper</title>
113
114 <sect3>
115 <title>Configuration Information</title>
116
117 <para>
118 The paper size is automatically determined from the system locale;
119 see <literal>LC_PAPER</literal> in <ulink role='man'
120 url='&man;locale.7'>locale(7)</ulink>.
121 If you want to override it, create a <filename>papersize</filename>
122 file in the user configuration directory. For example:
123 </para>
124
125<screen role="nodump"><userinput>mkdir -pv ~/.config &amp;&amp;
126echo "a4" &gt; ~/.config/papersize</userinput></screen>
127
128 <para>
129 If you want to override the paper size globally (for all users),
130 set up the <envar>PAPERSIZE</envar> environment variable. For
131 example:
132 </para>
133
134<screen role="nodump"><userinput>echo "PAPERSIZE=a4" &gt; /etc/profile.d/libpaper.sh</userinput></screen>
135
136 <para>
137 You may use a different paper size, such as
138 <quote><literal>letter</literal></quote>.
139 </para>
140
141 </sect3>
142
143 </sect2>
144
145 <sect2 role="content">
146 <title>Contents</title>
147
148 <segmentedlist>
149 <segtitle>Installed Programs</segtitle>
150 <segtitle>Installed Library</segtitle>
151 <segtitle>Installed Directories</segtitle>
152
153 <seglistitem>
154 <seg>
155 paper and
156 paperconf
157 </seg>
158 <seg>
159 libpaper.so
160 </seg>
161 <seg>
162 /usr/share/doc/libpaper-&libpaper-version;
163 </seg>
164 </seglistitem>
165 </segmentedlist>
166
167 <variablelist>
168 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
169 <?dbfo list-presentation="list"?>
170 <?dbhtml list-presentation="table"?>
171
172 <varlistentry id="paper">
173 <term><command>paper</command></term>
174 <listitem>
175 <para>
176 prints paper configuration information
177 </para>
178 <indexterm zone="libpaper paper">
179 <primary sortas="b-paper">paper</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 <varlistentry id="paperconf">
185 <term><command>paperconf</command></term>
186 <listitem>
187 <para>
188 prints paper configuration information in a compatibility mode
189 </para>
190 <indexterm zone="libpaper paperconf">
191 <primary sortas="b-paperconf">paperconf</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="libpaper-lib">
197 <term><filename class="libraryfile">libpaper.so</filename></term>
198 <listitem>
199 <para>
200 contains functions for interrogating the paper library
201 </para>
202 <indexterm zone="libpaper libpaper-lib">
203 <primary sortas="c-libpaper">libpaper.so</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 </variablelist>
209
210 </sect2>
211
212</sect1>
Note: See TracBrowser for help on using the repository browser.