glfs/general/genlib/libpaper.xml
2023-03-09 13:57:26 -06:00

189 lines
4.9 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY libpaper-download-http "https://github.com/rrthomas/libpaper/releases/download/v&libpaper-version;/libpaper-&libpaper-version;.tar.gz">
<!ENTITY libpaper-download-ftp " ">
<!ENTITY libpaper-md5sum "39322b429e795e33410db65b6d2fe163">
<!ENTITY libpaper-size "1.2 MB">
<!ENTITY libpaper-buildsize "11 MB (with tests)">
<!ENTITY libpaper-time "0.1 SBU (with tests)">
]>
<sect1 id="libpaper" xreflabel="libpaper-&libpaper-version;">
<?dbhtml filename="libpaper.html"?>
<title>libpaper-&libpaper-version;</title>
<indexterm zone="libpaper">
<primary sortas="a-libpaper">libpaper</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to libpaper</title>
<para>
This package is intended to provide a simple way for applications to take
actions based on a system or user-specified paper size.
</para>
&lfs113_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&libpaper-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&libpaper-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &libpaper-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &libpaper-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &libpaper-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &libpaper-time;
</para>
</listitem>
</itemizedlist>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/libpaper"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of libpaper</title>
<para>
Install <application>libpaper</application> by running the following
commands:
</para>
<screen><userinput>./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-static \
--enable-relocatable \
--docdir=/usr/share/doc/paper-&libpaper-version; &amp;&amp;
make</userinput></screen>
<para>
To test the results, issue: <command>make check</command>.
</para>
<para>
Now, as the &root; user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/static-libraries.xml"/>
<para>
<option>--enable-relocatable</option>:
This option is needed to run the tests.
</para>
</sect2>
<sect2 role="configuration">
<title>Configuring libpaper</title>
<sect3>
<title>Configuration Information</title>
<para>
Create <filename>/etc/paper</filename> to set the default
system paper size. Issue the following command as the
&root; user to set this to 'a4'. You may wish
to use a different size, such as letter.
</para>
<screen role="root"><userinput>echo "a4" &gt; /etc/paper</userinput></screen>
</sect3>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
paper
</seg>
<seg>
libpaper.so
</seg>
<seg>
/usr/share/doc/paper-&libpaper-version;
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="paper">
<term><command>paper</command></term>
<listitem>
<para>
prints paper configuration information
</para>
<indexterm zone="libpaper paper">
<primary sortas="b-paper">paper</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libpaper-lib">
<term><filename class="libraryfile">libpaper.so</filename></term>
<listitem>
<para>
contains functions for interrogating the paper library
</para>
<indexterm zone="libpaper libpaper-lib">
<primary sortas="c-libpaper">libpaper.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>