source: general/genlib/libbytesize.xml@ cbcf148

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

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 5.6 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
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>
29 The <application>libbytesize</application> package is a library which
30 facilitates the common operations with sizes in bytes.
31 </para>
32
33 &lfs112_checked;
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">
73 <xref linkend="pcre2"/> and
74 <xref linkend="pygments"/>
75 </para>
76
77 <bridgehead renderas="sect4">Recommended</bridgehead>
78
79 <para role="recommended">
80 <xref linkend="six"/>
81 </para>
82
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="gtk-doc"/>,
86 <!--<xref linkend="six"/> (needed for tests, python bindings, and running
87 <command>bscalc</command>),-->
88 <ulink url="https://github.com/rhinstaller/pocketlint/releases">pocketlint</ulink> (python module for one test), and
89 <ulink url="https://pypi.python.org/pypi/polib">polib</ulink> (python module for one test)
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
106<screen><userinput>./configure --prefix=/usr &amp;&amp;
107make</userinput></screen>
108
109 <para>
110 If you have the optional python modules installed, the regression
111 tests can be run with: <command>make check</command>.
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>
121<!--
122 <sect2 role="commands">
123 <title>Command Explanations</title>
124
125 <para>
126 <option>-i -without-python2</option>: If
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.
131 </para>
132 </sect2>
133-->
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>
144 bscalc
145 </seg>
146 <seg>
147 libbytesize.so
148 </seg>
149 <seg>
150 /usr/include/bytesize and
151 /usr/lib/python&python3-majorver;/site-packages/bytesize
152 </seg>
153 </seglistitem>
154 </segmentedlist>
155
156 <variablelist>
157 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
158 <?dbfo list-presentation="list"?>
159 <?dbhtml list-presentation="table"?>
160
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,
166 back to a value in bytes
167 </para>
168 <indexterm zone="libbytesize bscalc">
169 <primary sortas="b-bscalc">bscalc</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="libbytesize-lib">
175 <term><filename class="libraryfile">libbytesize.so</filename></term>
176 <listitem>
177 <para>
178 contains functions used to handle common read/write operations
179 with sizes in bytes
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>
188
189 </sect2>
190
191</sect1>
Note: See TracBrowser for help on using the repository browser.