source: general/genlib/brotli.xml@ e556b03

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 e556b03 was 921174d5, checked in by Douglas R. Reno <renodr@…>, 7 months ago

Minor text tweaks/typo fixes

For libmpeg2, add a space into the FTP entity so that it gets ignored

  • Property mode set to 100644
File size: 7.3 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 <bridgehead renderas="sect4">Optional</bridgehead>
81 <para role="optional">
82 <!--<xref linkend="pluggy"/> and-->
83 <!-- Pluggy is a required dependency of pytest -->
84 <xref linkend="pytest"/> (for testing Python3 bindings)
85 </para>
86
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Brotli</title>
91
92 <para>
93 Install <application>brotli</application> by running the following
94 commands:
95 </para>
96
97<screen><userinput>mkdir build &amp;&amp;
98cd build &amp;&amp;
99
100cmake -DCMAKE_INSTALL_PREFIX=/usr \
101 -DCMAKE_BUILD_TYPE=Release \
102 .. &amp;&amp;
103make</userinput></screen>
104
105 <para>
106 To test the results, issue: <command>make test</command>.
107 </para>
108
109<!-- These are broken
110 <para>
111 The python tests are missing most of the necessary testdata files and
112 therefore 240 of 311 tests fail.
113 If you nevertheless wish to test the bindings, go back to the top-level directory and
114 issue: <command>python3 setup.py test</command>.
115 </para>
116-->
117 <para>
118 Now, as the <systemitem class="username">root</systemitem> user:
119 </para>
120
121<screen role="root"><userinput>make install</userinput></screen>
122
123 <para>
124 If desired, build the <application>Python3</application>
125 bindings:
126 </para>
127
128<screen><userinput>cd .. &amp;&amp;
129sed "/c\/.*\.[ch]'/d;\
130 /include_dirs=\[/\
131 i libraries=['brotlicommon','brotlidec','brotlienc']," \
132 -i setup.py &amp;&amp;
133&build-wheel-cmd; $PWD</userinput></screen>
134
135 <para>
136 Install the <application>Python3</application>
137 bindings as the &root; user:
138 </para>
139
140<screen role="root"><userinput>&install-wheel; Brotli</userinput></screen>
141
142 <!-- "131 passed in 2.76s" for me with 1.1.0 -->
143 <para>
144 To test the <application>Python3</application> binding, issue:
145 <command>pytest</command>.
146 </para>
147 </sect2>
148
149 <sect2 role="commands">
150 <title>Command Explanations</title>
151
152 <!-- https://github.com/google/brotli/issues/933 -->
153 <para>
154 <command>sed ... -i setup.py</command>: Stop
155 <filename>setup.py</filename> from rebuilding the entire package all
156 over again, use the already installed libraries for the
157 <application>Python3</application> binding instead.
158 </para>
159
160 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
161 href="../../xincludes/static-libraries.xml"/>
162
163 </sect2>
164
165 <sect2 role="content">
166 <title>Contents</title>
167
168 <segmentedlist>
169 <segtitle>Installed Programs</segtitle>
170 <segtitle>Installed Libraries</segtitle>
171 <segtitle>Installed Directories</segtitle>
172
173 <seglistitem>
174 <seg>
175 brotli
176 </seg>
177 <seg>
178 libbrotlicommon.so,
179 libbrotlidec.so, and
180 libbrotlienc.so
181 </seg>
182 <seg>
183 /usr/include/brotli and
184 /usr/lib/python&python3-majorver;/site-packages/Brotli-&brotli-version;.dist-info
185 (if you built and installed the Python3 bindings)
186 </seg>
187 </seglistitem>
188 </segmentedlist>
189
190 <variablelist>
191 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
192 <?dbfo list-presentation="list"?>
193 <?dbhtml list-presentation="table"?>
194
195 <varlistentry id="brotli-prog">
196 <term><command>brotli</command></term>
197 <listitem>
198 <para>
199 can compress or decompress files, or test the integrity of
200 compressed files
201 </para>
202 <indexterm zone="brotli brotli-prog">
203 <primary sortas="b-brotli">brotli</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="libbrotlicommon">
209 <term><filename class="libraryfile">libbrotlicommon{-static.a,.so}</filename></term>
210 <listitem>
211 <para>
212 is the Brotli common dictionary library
213 </para>
214 <indexterm zone="brotli libbrotlicommon">
215 <primary sortas="c-libbrotlicommon">libbrotlicommon{,-static.a,.so}</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="libbrotlidec">
221 <term><filename class="libraryfile">libbrotlidec{-static.a,.so}</filename></term>
222 <listitem>
223 <para>
224 is the Brotli decoder library
225 </para>
226 <indexterm zone="brotli libbrotlidec">
227 <primary sortas="c-libbrotlidec">libbrotlidec{,-static.a,.so}</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="libbrotlienc">
233 <term><filename class="libraryfile">libbrotlienc{-static.a,.so}</filename></term>
234 <listitem>
235 <para>
236 is the Brotli common encoder library
237 </para>
238 <indexterm zone="brotli libbrotlienc">
239 <primary sortas="c-libbrotlienc">libbrotlienc{,-static.a,.so}</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243 </variablelist>
244
245 </sect2>
246
247</sect1>
Note: See TracBrowser for help on using the repository browser.