%general-entities; ]> brotli-&brotli-version; Brotli Introduction to Brotli Brotli provides a general-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling. Its libraries are particularly used for WOFF2 fonts on webpages. &lfs120_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &brotli-md5sum; Download size: &brotli-size; Estimated disk space required: &brotli-buildsize; Estimated build time: &brotli-time; Brotli Dependencies Required Optional (for testing Python3 bindings) Installation of Brotli Install brotli by running the following commands: mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ .. && make To test the results, issue: make test. Now, as the root user: make install If desired, build the Python3 bindings: cd .. && sed "/c\/.*\.[ch]'/d;\ /include_dirs=\[/\ i libraries=['brotlicommon','brotlidec','brotlienc']," \ -i setup.py && &build-wheel-cmd; $PWD Install the Python3 bindings as the &root; user: &install-wheel; Brotli To test the Python3 binding, issue: pytest. Command Explanations sed ... -i setup.py: Stop setup.py from rebuilding the entire package all over again, use the already installed libraries for the Python3 binding instead. Contents Installed Programs Installed Libraries Installed Directories brotli libbrotlicommon.so, libbrotlidec.so, and libbrotlienc.so /usr/include/brotli and /usr/lib/python&python3-majorver;/site-packages/Brotli-&brotli-version;.dist-info (if you built and installed the Python3 bindings) Short Descriptions brotli can compress or decompress files, or test the integrity of compressed files brotli libbrotlicommon{-static.a,.so} is the Brotli common dictionary library libbrotlicommon{,-static.a,.so} libbrotlidec{-static.a,.so} is the Brotli decoder library libbrotlidec{,-static.a,.so} libbrotlienc{-static.a,.so} is the Brotli common encoder library libbrotlienc{,-static.a,.so}