source: general/genlib/libbytesize.xml@ a1bb0d9

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since a1bb0d9 was d553af0, checked in by Bruce Dubbs <bdubbs@…>, 15 months ago

Update to libbytesize-2.8.

  • Property mode set to 100644
File size: 5.6 KB
RevLine 
[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 " ">
[d553af0]9 <!ENTITY libbytesize-md5sum "ae3a3b3a88398a83737bea9628820256">
10 <!ENTITY libbytesize-size "448 KB">
11 <!ENTITY libbytesize-buildsize "3.5 MB">
[079d52ac]12 <!ENTITY libbytesize-time "less than 0.1 SBU (including tests)">
[6dcb9e77]13]>
14
15<sect1 id="libbytesize" xreflabel="libbytesize-&libbytesize-version;">
16 <?dbhtml filename="libbytesize.html"?>
17
18
19 <title>libbytesize-&libbytesize-version;</title>
20
21 <indexterm zone="libbytesize">
22 <primary sortas="a-libbytesize">libbytesize</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to libbytesize</title>
27
28 <para>
[477d66d]29 The <application>libbytesize</application> package is a library which
[6dcb9e77]30 facilitates the common operations with sizes in bytes.
31 </para>
32
[acd88fc]33 &lfs113_checked;
[6dcb9e77]34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&libbytesize-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&libbytesize-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &libbytesize-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &libbytesize-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &libbytesize-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &libbytesize-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">libbytesize Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required">
[f948b30]73 <xref linkend="pcre2"/> and
74 <xref linkend="pygments"/>
[6dcb9e77]75 </para>
76
[10be56f]77 <bridgehead renderas="sect4">Recommended</bridgehead>
[b2baae0]78
79 <para role="recommended">
80 <xref linkend="six"/>
81 </para>
82
[6dcb9e77]83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="gtk-doc"/>,
[b2baae0]86 <!--<xref linkend="six"/> (needed for tests, python bindings, and running
87 <command>bscalc</command>),-->
[8558044]88 <ulink url="https://github.com/rhinstaller/pocketlint/releases">pocketlint</ulink> (python module for one test), and
[c6afa0d]89 <ulink url="https://pypi.python.org/pypi/polib">polib</ulink> (python module for one test)
[6dcb9e77]90 </para>
91
92 <para condition="html" role="usernotes">User Notes:
93 <ulink url="&blfs-wiki;/libbytesize"/>
94 </para>
95
96 </sect2>
97
98 <sect2 role="installation">
99 <title>Installation of libbytesize</title>
100
101 <para>
102 Install <application>libbytesize</application> by running the following
103 commands:
104 </para>
105
[ce794256]106<screen><userinput>./configure --prefix=/usr &amp;&amp;
[6dcb9e77]107make</userinput></screen>
108
109 <para>
[8558044]110 If you have the optional python modules installed, the regression
111 tests can be run with: <command>make check</command>.
[6dcb9e77]112 </para>
113
114 <para>
115 Now, as the <systemitem class="username">root</systemitem> user:
116 </para>
117
118<screen role="root"><userinput>make install</userinput></screen>
119
120 </sect2>
[8558044]121<!--
[0dc5ab2e]122 <sect2 role="commands">
123 <title>Command Explanations</title>
124
125 <para>
[568e425]126 <option>-i -without-python2</option>: If
[d0331db]127 <application>Python 2</application> is installed, use this switch to
128 prevent the use of <application>Python 2</application>. This may be
129 required to run the tests, if some of the needed python modules have been
130 installed for <application>Python 3</application> only.
[0dc5ab2e]131 </para>
132 </sect2>
[568e425]133-->
[6dcb9e77]134 <sect2 role="content">
135 <title>Contents</title>
136
137 <segmentedlist>
138 <segtitle>Installed Programs</segtitle>
139 <segtitle>Installed Library</segtitle>
140 <segtitle>Installed Directories</segtitle>
141
142 <seglistitem>
143 <seg>
[05e57e19]144 bscalc
[6dcb9e77]145 </seg>
146 <seg>
147 libbytesize.so
148 </seg>
149 <seg>
[1ba06ad9]150 /usr/include/bytesize and
[336d81c3]151 /usr/lib/python&python3-majorver;/site-packages/bytesize
[6dcb9e77]152 </seg>
153 </seglistitem>
154 </segmentedlist>
[477d66d]155
[6dcb9e77]156 <variablelist>
157 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
158 <?dbfo list-presentation="list"?>
159 <?dbhtml list-presentation="table"?>
160
[477d66d]161 <varlistentry id="bscalc">
162 <term><command>bscalc</command></term>
163 <listitem>
164 <para>
165 converts from a larger unit, such as MB or TB,
[4c24eb0a]166 back to a value in bytes
[477d66d]167 </para>
168 <indexterm zone="libbytesize bscalc">
169 <primary sortas="b-bscalc">bscalc</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
[6dcb9e77]174 <varlistentry id="libbytesize-lib">
[4c24eb0a]175 <term><filename class="libraryfile">libbytesize.so</filename></term>
[6dcb9e77]176 <listitem>
177 <para>
[477d66d]178 contains functions used to handle common read/write operations
[4c24eb0a]179 with sizes in bytes
[6dcb9e77]180 </para>
181 <indexterm zone="libbytesize libbytesize-lib">
182 <primary sortas="c-libbytesize">libbytesize.so</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 </variablelist>
[477d66d]188
[6dcb9e77]189 </sect2>
190
191</sect1>
Note: See TracBrowser for help on using the repository browser.