source: general/genlib/brotli.xml@ bf565e06

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/xf86-video-removal
Last change on this file since bf565e06 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: 6.8 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 "c2274f0c7af8470ad514637c35bcee7d">
10 <!ENTITY brotli-size "476 KB">
11 <!ENTITY brotli-buildsize "24 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.4 SBU (with python3 bindings)">
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 &lfs112_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<!-- Brotli doesn't have any lua bindings, at least not with 1.0.7.
81 Do not advertise python2 as python3 should be used instead
82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional">
84 <xref linkend="lua"/> (to create Lua bindings) and
85 <xref linkend="python2"/> (to create python2 bindings)
86 </para>
87-->
88 <para condition="html" role="usernotes">
89 User Notes: <ulink url="&blfs-wiki;/brotli"/>
90 </para>
91 </sect2>
92
93
94 <sect2 role="installation">
95 <title>Installation of Brotli</title>
96
97 <para>
98 At first, fix an issue in pkg-config files:
99 </para>
100
101<screen><userinput>sed -i 's@-R..libdir.@@' scripts/*.pc.in</userinput></screen>
102
103 <para>
104 Install <application>brotli</application> by running the following
105 commands:
106 </para>
107
108<screen><userinput>mkdir out &amp;&amp;
109cd out &amp;&amp;
110
111cmake -DCMAKE_INSTALL_PREFIX=/usr \
112 -DCMAKE_BUILD_TYPE=Release \
113 .. &amp;&amp;
114make</userinput></screen>
115
116
117 <para>
118 To test the results, issue: <command>make test</command>.
119 </para>
120
121<!-- These are broken
122 <para>
123 The python tests are missing most of the necessary testdata files and
124 therefore 240 of 311 tests fail.
125 If you nevertheless wish to test the bindings, go back to the top-level directory and
126 issue: <command>python3 setup.py test</command>.
127 </para>
128-->
129 <para>
130 Now, as the <systemitem class="username">root</systemitem> user:
131 </para>
132
133<screen role="root"><userinput>make install &amp;&amp;
134cd ..</userinput></screen>
135
136 <para>
137 If desired, build and install the <application>Python3</application>
138 bindings as the &root; user:
139 </para>
140
141<screen role="root"><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD &amp;&amp;
142pip3 install --no-index --find-links dist --no-cache-dir --no-user Brotli</userinput></screen>
143
144 </sect2>
145
146 <sect2 role="content">
147 <title>Contents</title>
148
149 <segmentedlist>
150 <segtitle>Installed Programs</segtitle>
151 <segtitle>Installed Libraries</segtitle>
152 <segtitle>Installed Directory</segtitle>
153
154 <seglistitem>
155 <seg>
156 brotli
157 </seg>
158 <seg>
159 libbrotlicommon{-static.a,.so},
160 libbrotlidec{,-static.a,.so}, and
161 libbrotlienc{,-static.a,.so}
162 </seg>
163 <seg>
164 /usr/include/brotli
165 /usr/lib/python&python3-majorver;/site-packages/Brotli-&brotli-version;.dist-info
166 </seg>
167 </seglistitem>
168 </segmentedlist>
169
170 <variablelist>
171 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
172 <?dbfo list-presentation="list"?>
173 <?dbhtml list-presentation="table"?>
174
175 <varlistentry id="brotli-prog">
176 <term><command>brotli</command></term>
177 <listitem>
178 <para>
179 can compress or decompress files, or test the integrity of
180 compressed files
181 </para>
182 <indexterm zone="brotli brotli-prog">
183 <primary sortas="b-brotli">brotli</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="libbrotlicommon">
189 <term><filename class="libraryfile">libbrotlicommon{-static.a,.so}</filename></term>
190 <listitem>
191 <para>
192 is the Brotli common dictionary library
193 </para>
194 <indexterm zone="brotli libbrotlicommon">
195 <primary sortas="c-libbrotlicommon">libbrotlicommon{,-static.a,.so}</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="libbrotlidec">
201 <term><filename class="libraryfile">libbrotlidec{-static.a,.so}</filename></term>
202 <listitem>
203 <para>
204 is the Brotli decoder library
205 </para>
206 <indexterm zone="brotli libbrotlidec">
207 <primary sortas="c-libbrotlidec">libbrotlidec{,-static.a,.so}</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="libbrotlienc">
213 <term><filename class="libraryfile">libbrotlienc{-static.a,.so}</filename></term>
214 <listitem>
215 <para>
216 is the Brotli common encoder library
217 </para>
218 <indexterm zone="brotli libbrotlienc">
219 <primary sortas="c-libbrotlienc">libbrotlienc{,-static.a,.so}</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223 </variablelist>
224
225 </sect2>
226
227</sect1>
Note: See TracBrowser for help on using the repository browser.