[47d5a9e5] | 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 |
|
---|
[95bf71b] | 7 | <!ENTITY brotli-download-http "https://github.com/google/brotli/archive/v&brotli-version;/brotli-&brotli-version;.tar.gz">
|
---|
[47d5a9e5] | 8 | <!ENTITY brotli-download-ftp " ">
|
---|
[748752de] | 9 | <!ENTITY brotli-md5sum "3a6a3dba82a3604792d3cb0bd41bca60">
|
---|
| 10 | <!ENTITY brotli-size "500 KB">
|
---|
| 11 | <!ENTITY brotli-buildsize "33 MB (with python3 bindings)">
|
---|
[8965351] | 12 | <!-- The python tests for this package are broken. The tarball is missing a lot of test files -->
|
---|
[748752de] | 13 | <!ENTITY brotli-time "0.3 SBU (with python3 bindings; parallelism=4)">
|
---|
[47d5a9e5] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="brotli" xreflabel="Brotli-&brotli-version;">
|
---|
| 17 | <?dbhtml filename="brotli.html"?>
|
---|
| 18 |
|
---|
| 19 |
|
---|
[d7189a1c] | 20 | <title>brotli-&brotli-version;</title>
|
---|
[47d5a9e5] | 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 |
|
---|
[479979e] | 37 | &lfs120_checked;
|
---|
[47d5a9e5] | 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>
|
---|
[2e18e741] | 72 |
|
---|
[47d5a9e5] | 73 | <bridgehead renderas="sect3">Brotli Dependencies</bridgehead>
|
---|
| 74 |
|
---|
[748752de] | 75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 76 | <para role="required">
|
---|
[47d5a9e5] | 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 |
|
---|
[748752de] | 90 | <screen><userinput>mkdir build &&
|
---|
| 91 | cd build &&
|
---|
[47d5a9e5] | 92 |
|
---|
| 93 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 94 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 95 | .. &&
|
---|
| 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
| 98 | <para>
|
---|
[2754eaf] | 99 | To test the results, issue: <command>make test</command>.
|
---|
[47d5a9e5] | 100 | </para>
|
---|
| 101 |
|
---|
[1fe05eb] | 102 | <!-- These are broken
|
---|
[47d5a9e5] | 103 | <para>
|
---|
[8965351] | 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
|
---|
[822c1eb5] | 107 | issue: <command>python3 setup.py test</command>.
|
---|
[47d5a9e5] | 108 | </para>
|
---|
[caee73e9] | 109 | -->
|
---|
[47d5a9e5] | 110 | <para>
|
---|
| 111 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
[748752de] | 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 .. &&
|
---|
| 122 | pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
|
---|
[47d5a9e5] | 123 |
|
---|
[caee73e9] | 124 | <para>
|
---|
[748752de] | 125 | Install the <application>Python3</application>
|
---|
[caee73e9] | 126 | bindings as the &root; user:
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
[748752de] | 129 | <screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user Brotli</userinput></screen>
|
---|
[47d5a9e5] | 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>
|
---|
[cb40a58] | 139 | <segtitle>Installed Directories</segtitle>
|
---|
[47d5a9e5] | 140 |
|
---|
| 141 | <seglistitem>
|
---|
| 142 | <seg>
|
---|
[822c1eb5] | 143 | brotli
|
---|
[47d5a9e5] | 144 | </seg>
|
---|
| 145 | <seg>
|
---|
[748752de] | 146 | libbrotlicommon.so,
|
---|
| 147 | libbrotlidec.so, and
|
---|
| 148 | libbrotlienc.so
|
---|
[47d5a9e5] | 149 | </seg>
|
---|
| 150 | <seg>
|
---|
[cb40a58] | 151 | /usr/include/brotli and
|
---|
[ec288f7] | 152 | /usr/lib/python&python3-majorver;/site-packages/Brotli-&brotli-version;.dist-info
|
---|
[cb40a58] | 153 | (if you built and installed the Python3 bindings)
|
---|
[47d5a9e5] | 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
|
---|
[4c24eb0a] | 168 | compressed files
|
---|
[47d5a9e5] | 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>
|
---|
[4c24eb0a] | 180 | is the Brotli common dictionary library
|
---|
[47d5a9e5] | 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>
|
---|
[4c24eb0a] | 192 | is the Brotli decoder library
|
---|
[47d5a9e5] | 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>
|
---|
[4c24eb0a] | 204 | is the Brotli common encoder library
|
---|
[47d5a9e5] | 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>
|
---|
[4c24eb0a] | 214 |
|
---|
[47d5a9e5] | 215 | </sect1>
|
---|