source: general/genlib/brotli.xml@ 8ebc8b4

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 8ebc8b4 was 4395529, checked in by Bruce Dubbs <bdubbs@…>, 10 months ago

Adjust and continue using entities fo rpip3 commands

  • Property mode set to 100644
File size: 6.2 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 brotli-download-http "https://github.com/google/brotli/archive/v&brotli-version;/brotli-&brotli-version;.tar.gz">
8 <!ENTITY brotli-download-ftp " ">
9 <!ENTITY brotli-md5sum "3a6a3dba82a3604792d3cb0bd41bca60">
10 <!ENTITY brotli-size "500 KB">
11 <!ENTITY brotli-buildsize "33 MB (with python3 bindings)">
12 <!-- The python tests for this package are broken. The tarball is missing a lot of test files -->
13 <!ENTITY brotli-time "0.3 SBU (with python3 bindings; parallelism=4)">
14]>
15
16<sect1 id="brotli" xreflabel="Brotli-&brotli-version;">
17 <?dbhtml filename="brotli.html"?>
18
19
20 <title>brotli-&brotli-version;</title>
21
22 <indexterm zone="brotli">
23 <primary sortas="a-brotli">Brotli</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to Brotli</title>
28
29 <para>
30 <application>Brotli</application> provides a general-purpose lossless
31 compression algorithm that compresses data using a combination of a
32 modern variant of the LZ77 algorithm, Huffman coding and 2nd order
33 context modeling. Its libraries are particularly used for WOFF2 fonts
34 on webpages.
35 </para>
36
37 &lfs120_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&brotli-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&brotli-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &brotli-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &brotli-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &brotli-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &brotli-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Brotli Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required">
77 <xref linkend="cmake"/>
78 </para>
79
80 </sect2>
81
82 <sect2 role="installation">
83 <title>Installation of Brotli</title>
84
85 <para>
86 Install <application>brotli</application> by running the following
87 commands:
88 </para>
89
90<screen><userinput>mkdir build &amp;&amp;
91cd build &amp;&amp;
92
93cmake -DCMAKE_INSTALL_PREFIX=/usr \
94 -DCMAKE_BUILD_TYPE=Release \
95 .. &amp;&amp;
96make</userinput></screen>
97
98 <para>
99 To test the results, issue: <command>make test</command>.
100 </para>
101
102<!-- These are broken
103 <para>
104 The python tests are missing most of the necessary testdata files and
105 therefore 240 of 311 tests fail.
106 If you nevertheless wish to test the bindings, go back to the top-level directory and
107 issue: <command>python3 setup.py test</command>.
108 </para>
109-->
110 <para>
111 Now, as the <systemitem class="username">root</systemitem> user:
112 </para>
113
114<screen role="root"><userinput>make install</userinput></screen>
115
116 <para>
117 If desired, build the <application>Python3</application>
118 bindings:
119 </para>
120
121<screen><userinput>cd .. &amp;&amp;
122&build-wheel-cmd; $PWD</userinput></screen>
123
124 <para>
125 Install the <application>Python3</application>
126 bindings as the &root; user:
127 </para>
128
129<screen role="root"><userinput>&install-wheel; Brotli</userinput></screen>
130
131 </sect2>
132
133 <sect2 role="content">
134 <title>Contents</title>
135
136 <segmentedlist>
137 <segtitle>Installed Programs</segtitle>
138 <segtitle>Installed Libraries</segtitle>
139 <segtitle>Installed Directories</segtitle>
140
141 <seglistitem>
142 <seg>
143 brotli
144 </seg>
145 <seg>
146 libbrotlicommon.so,
147 libbrotlidec.so, and
148 libbrotlienc.so
149 </seg>
150 <seg>
151 /usr/include/brotli and
152 /usr/lib/python&python3-majorver;/site-packages/Brotli-&brotli-version;.dist-info
153 (if you built and installed the Python3 bindings)
154 </seg>
155 </seglistitem>
156 </segmentedlist>
157
158 <variablelist>
159 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
160 <?dbfo list-presentation="list"?>
161 <?dbhtml list-presentation="table"?>
162
163 <varlistentry id="brotli-prog">
164 <term><command>brotli</command></term>
165 <listitem>
166 <para>
167 can compress or decompress files, or test the integrity of
168 compressed files
169 </para>
170 <indexterm zone="brotli brotli-prog">
171 <primary sortas="b-brotli">brotli</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="libbrotlicommon">
177 <term><filename class="libraryfile">libbrotlicommon{-static.a,.so}</filename></term>
178 <listitem>
179 <para>
180 is the Brotli common dictionary library
181 </para>
182 <indexterm zone="brotli libbrotlicommon">
183 <primary sortas="c-libbrotlicommon">libbrotlicommon{,-static.a,.so}</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="libbrotlidec">
189 <term><filename class="libraryfile">libbrotlidec{-static.a,.so}</filename></term>
190 <listitem>
191 <para>
192 is the Brotli decoder library
193 </para>
194 <indexterm zone="brotli libbrotlidec">
195 <primary sortas="c-libbrotlidec">libbrotlidec{,-static.a,.so}</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="libbrotlienc">
201 <term><filename class="libraryfile">libbrotlienc{-static.a,.so}</filename></term>
202 <listitem>
203 <para>
204 is the Brotli common encoder library
205 </para>
206 <indexterm zone="brotli libbrotlienc">
207 <primary sortas="c-libbrotlienc">libbrotlienc{,-static.a,.so}</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211 </variablelist>
212
213 </sect2>
214
215</sect1>
Note: See TracBrowser for help on using the repository browser.