[6dcb9e77] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 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 |
|
---|
[eea6737] | 7 | <!ENTITY libbytesize-download-http "https://github.com/storaged-project/libbytesize/releases/download/&libbytesize-version;/libbytesize-&libbytesize-version;.tar.gz">
|
---|
[6dcb9e77] | 8 | <!ENTITY libbytesize-download-ftp " ">
|
---|
[9e629a4] | 9 | <!ENTITY libbytesize-md5sum "aa9bd5a04546873714da2adbaaa9f283">
|
---|
[84ef014] | 10 | <!ENTITY libbytesize-size "404 KB">
|
---|
[9e629a4] | 11 | <!ENTITY libbytesize-buildsize "4.6 MB">
|
---|
[6dcb9e77] | 12 | <!ENTITY libbytesize-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libbytesize" xreflabel="libbytesize-&libbytesize-version;">
|
---|
| 16 | <?dbhtml filename="libbytesize.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libbytesize-&libbytesize-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libbytesize">
|
---|
| 26 | <primary sortas="a-libbytesize">libbytesize</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libbytesize</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | The <application>libbytesize</application> package is a library
|
---|
| 34 | facilitates the common operations with sizes in bytes.
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
[9e629a4] | 37 | &lfs83_checked;
|
---|
[6dcb9e77] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&libbytesize-download-http;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&libbytesize-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download MD5 sum: &libbytesize-md5sum;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download size: &libbytesize-size;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated disk space required: &libbytesize-buildsize;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated build time: &libbytesize-time;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect3">libbytesize Dependencies</bridgehead>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 76 | <para role="required">
|
---|
[0dc5ab2e] | 77 | <xref linkend="pcre"/>
|
---|
[6dcb9e77] | 78 | </para>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 81 | <para role="optional">
|
---|
| 82 | <xref linkend="gtk-doc"/>,
|
---|
| 83 | <xref linkend="python2"/>,
|
---|
[c6afa0d] | 84 | <xref linkend="six"/> (python module for tests),
|
---|
| 85 | <ulink url="https://github.com/rhinstaller/pocketlint/releases">pocketlint</ulink> (python module for one test), and
|
---|
| 86 | <ulink url="https://pypi.python.org/pypi/polib">polib</ulink> (python module for one test)
|
---|
[6dcb9e77] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <para condition="html" role="usernotes">User Notes:
|
---|
| 90 | <ulink url="&blfs-wiki;/libbytesize"/>
|
---|
| 91 | </para>
|
---|
| 92 |
|
---|
| 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 role="installation">
|
---|
| 96 | <title>Installation of libbytesize</title>
|
---|
| 97 |
|
---|
| 98 | <para>
|
---|
| 99 | Install <application>libbytesize</application> by running the following
|
---|
| 100 | commands:
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
[ce794256] | 103 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[6dcb9e77] | 104 | make</userinput></screen>
|
---|
| 105 |
|
---|
| 106 | <para>
|
---|
[c6afa0d] | 107 | If you have the optional python modules installed, the regression
|
---|
| 108 | tests can be run with: <command>make check</command>.
|
---|
[6dcb9e77] | 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <para>
|
---|
| 112 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
[0dc5ab2e] | 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
| 121 |
|
---|
| 122 | <para>
|
---|
| 123 | <option>--with-python3</option>: Use this switch to prefer Python 3 if
|
---|
| 124 | both Python 2 and Python 3 are installed.
|
---|
| 125 | </para>
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
[6dcb9e77] | 128 | <sect2 role="content">
|
---|
| 129 | <title>Contents</title>
|
---|
| 130 |
|
---|
| 131 | <segmentedlist>
|
---|
| 132 | <segtitle>Installed Programs</segtitle>
|
---|
| 133 | <segtitle>Installed Library</segtitle>
|
---|
| 134 | <segtitle>Installed Directories</segtitle>
|
---|
| 135 |
|
---|
| 136 | <seglistitem>
|
---|
| 137 | <seg>
|
---|
| 138 | None
|
---|
| 139 | </seg>
|
---|
| 140 | <seg>
|
---|
| 141 | libbytesize.so
|
---|
| 142 | </seg>
|
---|
| 143 | <seg>
|
---|
[ce794256] | 144 | /usr/include/bytesize,
|
---|
| 145 | /usr/share/gtk-doc/html/libbytesize, and
|
---|
| 146 | /usr/lib/python{2.7,3.6}/site-packages/bytesize
|
---|
[6dcb9e77] | 147 | </seg>
|
---|
| 148 | </seglistitem>
|
---|
| 149 | </segmentedlist>
|
---|
| 150 | <!--
|
---|
| 151 | <variablelist>
|
---|
| 152 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 153 | <?dbfo list-presentation="list"?>
|
---|
| 154 | <?dbhtml list-presentation="table"?>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="libbytesize-lib">
|
---|
| 157 | <term><filename class='libraryfile'>libbytesize.so</filename></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>
|
---|
| 160 | contains the ATA S.M.A.R.T API functions.
|
---|
| 161 | </para>
|
---|
| 162 | <indexterm zone="libbytesize libbytesize-lib">
|
---|
| 163 | <primary sortas="c-libbytesize">libbytesize.so</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | </variablelist>
|
---|
| 169 | -->
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | </sect1>
|
---|