source: general/genlib/libbytesize.xml@ 9bda86e

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 9bda86e was 9bda86e, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

libbytesize: precise that six is needed for bscalc

I wonder whether we shouldn't rather recommend six: bscalc is handy
for a lot of calculations, for example:
$ bscalc -H 33312
32.53 KiB

  • Property mode set to 100644
File size: 5.5 KB
Line 
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
7 <!ENTITY libbytesize-download-http "https://github.com/storaged-project/libbytesize/releases/download/&libbytesize-version;/libbytesize-&libbytesize-version;.tar.gz">
8 <!ENTITY libbytesize-download-ftp " ">
9 <!ENTITY libbytesize-md5sum "c3f5b9bfbf67020c8b42225093321e23">
10 <!ENTITY libbytesize-size "435 KB">
11 <!ENTITY libbytesize-buildsize "3.7 MB">
12 <!ENTITY libbytesize-time "less than 0.1 SBU (including tests)">
13]>
14
15<sect1 id="libbytesize" xreflabel="libbytesize-&libbytesize-version;">
16 <?dbhtml filename="libbytesize.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>libbytesize-&libbytesize-version;</title>
23
24 <indexterm zone="libbytesize">
25 <primary sortas="a-libbytesize">libbytesize</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to libbytesize</title>
30
31 <para>
32 The <application>libbytesize</application> package is a library which
33 facilitates the common operations with sizes in bytes.
34 </para>
35
36 &lfs112_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&libbytesize-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&libbytesize-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &libbytesize-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &libbytesize-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &libbytesize-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &libbytesize-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">libbytesize Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Required</bridgehead>
75 <para role="required">
76 <xref linkend="pcre2"/> and
77 <xref linkend="pygments"/>
78 </para>
79
80 <bridgehead renderas="sect4">Optional</bridgehead>
81 <para role="optional">
82 <xref linkend="gtk-doc"/>,
83 <xref linkend="six"/> (needed for tests, python bindings, and running
84 <command>bscalc</command>),
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)
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
103<screen><userinput>./configure --prefix=/usr &amp;&amp;
104make</userinput></screen>
105
106 <para>
107 If you have the optional python modules installed, the regression
108 tests can be run with: <command>make check</command>.
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<!--
119 <sect2 role="commands">
120 <title>Command Explanations</title>
121
122 <para>
123 <option>-i -without-python2</option>: If
124 <application>Python 2</application> is installed, use this switch to
125 prevent the use of <application>Python 2</application>. This may be
126 required to run the tests, if some of the needed python modules have been
127 installed for <application>Python 3</application> only.
128 </para>
129 </sect2>
130-->
131 <sect2 role="content">
132 <title>Contents</title>
133
134 <segmentedlist>
135 <segtitle>Installed Programs</segtitle>
136 <segtitle>Installed Library</segtitle>
137 <segtitle>Installed Directories</segtitle>
138
139 <seglistitem>
140 <seg>
141 bscalc
142 </seg>
143 <seg>
144 libbytesize.so
145 </seg>
146 <seg>
147 /usr/include/bytesize and
148 /usr/lib/python&python3-majorver;/site-packages/bytesize
149 </seg>
150 </seglistitem>
151 </segmentedlist>
152
153 <variablelist>
154 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
155 <?dbfo list-presentation="list"?>
156 <?dbhtml list-presentation="table"?>
157
158 <varlistentry id="bscalc">
159 <term><command>bscalc</command></term>
160 <listitem>
161 <para>
162 converts from a larger unit, such as MB or TB,
163 back to a value in bytes
164 </para>
165 <indexterm zone="libbytesize bscalc">
166 <primary sortas="b-bscalc">bscalc</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="libbytesize-lib">
172 <term><filename class="libraryfile">libbytesize.so</filename></term>
173 <listitem>
174 <para>
175 contains functions used to handle common read/write operations
176 with sizes in bytes
177 </para>
178 <indexterm zone="libbytesize libbytesize-lib">
179 <primary sortas="c-libbytesize">libbytesize.so</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 </variablelist>
185
186 </sect2>
187
188</sect1>
Note: See TracBrowser for help on using the repository browser.