From f39b7a67a091ac59f8f82ac21dee24cb1923e9b33f3868859b7dd5e1d69a4291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 11:23:49 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main brotli revision 2380cad80efba89743c5c23b365d950c --- .gitattributes | 23 ++++++ baselibs.conf | 8 ++ brotli.changes | 207 +++++++++++++++++++++++++++++++++++++++++++++++++ brotli.spec | 146 ++++++++++++++++++++++++++++++++++ v1.1.0.tar.gz | 3 + 5 files changed, 387 insertions(+) create mode 100644 .gitattributes create mode 100644 baselibs.conf create mode 100644 brotli.changes create mode 100644 brotli.spec create mode 100644 v1.1.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..88b8b40 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,8 @@ +libbrotlicommon1 +libbrotlidec1 +libbrotlienc1 +libbrotli-devel + requires "libbrotlicommon1- = " + requires "libbrotlidec1- = " + requires "libbrotlienc1- = " + diff --git a/brotli.changes b/brotli.changes new file mode 100644 index 0000000..0831e8e --- /dev/null +++ b/brotli.changes @@ -0,0 +1,207 @@ +------------------------------------------------------------------- +Tue Oct 17 10:43:01 UTC 2023 - Dirk Müller + +- build with optflags again + +------------------------------------------------------------------- +Thu Aug 31 09:53:27 UTC 2023 - Jan Engelhardt + +- Update to release 1.1 + * CLI: added a --dictionary option +- Reomve 0001-Revert-Add-runtime-linker-path-to-pkg-config-files-7.patch + +------------------------------------------------------------------- +Wed Mar 8 12:09:38 UTC 2023 - Martin Pluskal + +- Build AVX2 enabled hwcaps library for x86_64-v3 + +------------------------------------------------------------------- +Sat Feb 25 10:48:18 UTC 2023 - Marcus Meissner + +- add 32bit devel package for Wine development. + +------------------------------------------------------------------- +Tue Sep 1 13:56:47 UTC 2020 - Jan Engelhardt + +- Add 0001-Revert-Add-runtime-linker-path-to-pkg-config-files-7.patch + +------------------------------------------------------------------- +Thu Aug 27 14:32:26 UTC 2020 - Jan Engelhardt + +- Update to 1.0.9 + * Fix integer overflow when input chunk is longer than + 2GiB [boo#1175825] + * `brotli -v` now reports raw / compressed size + * decoder: minor speed / memory usage improvements + * encoder: fix rare access to uninitialized data in ring-buffer +- Drop brotli_Ensure-decompression-consumes-all-input.patch, + brotli_Verbose-CLI+Shared-Brotli.patch (merged) + +------------------------------------------------------------------- +Wed Aug 12 14:52:42 UTC 2020 - andy great + +- Fix W: shared-lib-calls-exit /usr/lib64/libbrotlienc.so.1.0.7 + exit@GLIBC_2.2.5. + +------------------------------------------------------------------- +Tue Nov 19 23:15:31 UTC 2019 - Simon Lees + +- %make_jobs is deprecated and replaced by %cmake_build + +------------------------------------------------------------------- +Sun Jan 13 11:24:26 UTC 2019 - bjorn.lie@gmail.com + +- Add brotli_Verbose-CLI+Shared-Brotli.patch: Verbose CLI + start + pulling "Shared-Brotli". + * verbose CLI output; fix gh#google/brotlie#666. + * pull `SHIFT` transforms; currently this is semantically dead + code; later it will be used by "Shared-Brotli". +- Add brotli_Ensure-decompression-consumes-all-input.patch: Ensure + decompression consumes all input. If not, it's a corrupt stream. +- Tweak spec slightly. + +------------------------------------------------------------------- +Fri Dec 14 11:01:35 UTC 2018 - Jan Engelhardt + +- Avoid bashisms, install manpages without +x bit, get rid of + wrap descriptions, feed through cleaner. + +------------------------------------------------------------------- +Fri Dec 14 10:06:08 UTC 2018 - astieger@suse.com + +- brotli 1.0.7: + * faster decoding on ARM + * improved precision of window size calculation in CLI +- includes changes from 1.0.6: + * fix unaligned 64-bit accesses on AArch32 + * add ASAN/MSAN unaligned read specializations + * fix JDK 8<->9 incompatibility + +------------------------------------------------------------------- +Wed Jul 25 13:14:15 UTC 2018 - bjorn.lie@gmail.com + +- Add baselibs.conf, build 32bit library support. + +------------------------------------------------------------------- +Tue Jul 24 07:55:04 UTC 2018 - mpluskal@suse.com + +- Use cmake macros for building and tests + +------------------------------------------------------------------- +Thu Jun 28 11:04:51 UTC 2018 - mpluskal@suse.com + +- Update to version 1.0.5: + * improve q=1 compression on small files + * inverse Bazel workspace tree + * add rolling-composite-hasher for large-window mode + * add tools to download and transform static dictionary data +- Changes for version 1.0.4: + * fix unaligned access for aarch64-cross-armhf build + * fix aarch64 target detection + * allow CLI to compress with enabled "large window" feature + * add NPOSTFIX / NDIRECT encoder parameters + * automatic NDIRECT/NPOSTFIX tuning (better compression) + * fix "memory leak" in python tests + * fix bug in durchschlag + * fix source file lists (add params.h) + * fix Bazel/MSVC compilator options + * fix "fall though" warnings + +------------------------------------------------------------------- +Wed May 2 04:58:52 UTC 2018 - bjorn.lie@gmail.com + +- Add missing libbrotlicommon%%{sover} and libbrotlidec%%{sover} + Requires to devel subpackage. + +------------------------------------------------------------------- +Mon Mar 5 19:29:33 UTC 2018 - jengelh@inai.de + +- Update to new upstream release 1.0.3 + * New "Large Window Brotli" feature + * New dictionary generator + +------------------------------------------------------------------- +Wed Jan 3 20:25:21 UTC 2018 - jengelh@inai.de + +- Merge devel subpackages as libbrotli-devel + +------------------------------------------------------------------- +Sat Dec 30 00:16:35 UTC 2017 - jengelh@inai.de + +- Avoid shipping duplicate files. + Avoid shipping README.md, this just contains the description - + and build instructions. +- Drop duplicate Requires on -devel. + +------------------------------------------------------------------- +Wed Dec 20 15:59:17 UTC 2017 - pgajdos@suse.com + +- build for SLE_12 and SLE_12_SP1 + +------------------------------------------------------------------- +Thu Nov 30 13:23:39 UTC 2017 - buschmann23@opensuse.org + +- update to Brotli 1.0.2 + + Major chnages + * added Autotools build files + * switched shared library version to libtool scheme + + Minor changes + * BrotliDictionary members are not const now + * ZopfliNode distance could be up to 128MiB + * fixed API documentation typos + * total_out is always set by decoder + * fixed BROTLI_ENSURE_CAPACITY macro; no-op in preprocessed output + + Other changes + * fixed scripts for oss-fuzz, test them with Travis + * made Bazel JNI tests less messy + * fixed linter warnings in JS decoder + * fixed permissions of various files + * added Bazel build to Appveyor matrix + * added Sieve dictionary generator + +------------------------------------------------------------------- +Tue Oct 24 08:24:51 UTC 2017 - buschmann23@opensuse.org + +- update to Brotli 1.0.1 + + updated README.md + + fixed parallel exeuction of CMake "compatibility" tests +- update to Brotli 1.0.0 + + new CLI; bro -> brotli; + man page + + remove "custom dictionary" support + + add ability to side-load brotli RFC dictionary + + add decoder API to avoid ringbuffer reallocation + + PY streaming decompression support + + PY wrapper accepts memview +- spec file changes + + improve descriptions + + add man pages + +------------------------------------------------------------------- +Wed Sep 20 12:11:42 UTC 2017 - buschmann23@opensuse.org + +- spec file changes + + improve package description + +------------------------------------------------------------------- +Fri Jun 23 19:03:24 UTC 2017 - buschmann23@opensuse.org + +- update to Brotli 0.6.0 + + better compression on 1MiB+ files + + update "common" API to make dictionary fetching more flexible + + fix decoder bug #502 + + faster compression on mid-low quality levels + + fix encoder q10-11 slowdown after long copy #468 + + introduce Brotli*TakeOutput API +- now build shared libraries and development files in the following + new packages: + + libbrotlicommon0_6_0 + + libbrotlicommon-devel + + libbrotlidec0_6_0 + + libbrotlidec-devel + + libbrotlienc0_6_0 + + libbrtolienc-devel + +------------------------------------------------------------------- +Fri Mar 24 16:10:30 UTC 2017 - buschmann23@opensuse.org + +- initial package diff --git a/brotli.spec b/brotli.spec new file mode 100644 index 0000000..e060c35 --- /dev/null +++ b/brotli.spec @@ -0,0 +1,146 @@ +# +# spec file for package brotli +# +# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2017 Buschmann +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define sover 1 +Name: brotli +Version: 1.1.0 +Release: 0 +Summary: Lossless Compression Algorithm +License: MIT +Group: Productivity/Archiving/Compression +URL: https://github.com/google/brotli +Source: https://github.com/google/brotli/archive/v%version.tar.gz +Source99: baselibs.conf +BuildRequires: cmake >= 2.8.6 +BuildRequires: gcc-c++ +BuildRequires: gzip +BuildRequires: pkg-config +%{?suse_build_hwcaps_libs} + +%description +This package contains the brotli command line utility to compress and +decompress data with the brotli compression algorithm. + +Brotli is a generic-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, with a +compression ratio comparable to the best currently available +general-purpose compression methods. It is similar in speed with +deflate but offers more dense compression. + +The specification of the Brotli Compressed Data Format is defined in +RFC 7932. + +%package -n libbrotlicommon%sover +Summary: Common Library for Brotli Compression +Group: System/Libraries + +%description -n libbrotlicommon%sover +Common library for the Brotli general purpose lossless data +compression algorithm. + +%package -n libbrotlidec%sover +Summary: Library for Brotli Decompression +Group: System/Libraries + +%description -n libbrotlidec%sover +Decompression library for the Brotli general purpose lossless data +compression algorithm. + +The specification of the Brotli Compressed Data Format is defined in +RFC 7932. + +%package -n libbrotlienc%sover +Summary: Library for Brotli Compression +Group: System/Libraries + +%description -n libbrotlienc%sover +Compression library for the Brotli general purpose lossless data +compression algorithm. + +The specification of the Brotli Compressed Data Format is defined in +RFC 7932. + +%package -n libbrotli-devel +Summary: Development and Header Files for Brotli Compression +Group: Development/Libraries/C and C++ +Requires: libbrotlicommon%sover = %version-%release +Requires: libbrotlidec%sover = %version-%release +Requires: libbrotlienc%sover = %version-%release +Provides: libbrotlicommon-devel = %version-%release +Provides: libbrotlidec-devel = %version-%release +Provides: libbrotlienc-devel = %version-%release +Obsoletes: libbrotlicommon-devel < %version-%release +Obsoletes: libbrotlidec-devel < %version-%release +Obsoletes: libbrotlienc-devel < %version-%release + +%description -n libbrotli-devel +Development and headers files for (de)compressing data using the +Brotli general purpose lossless compression algorithm. + +The specification of the Brotli Compressed Data Format is defined in +RFC 7932. + +%prep +%autosetup -p1 + +%build +export CFLAGS="%{optflags} -DBROTLI_ENCODER_CLEANUP_ON_OOM" +%cmake +%cmake_build + +%install +%cmake_install +mkdir -p "%buildroot/%_mandir/man1" "%buildroot/%_mandir/man3" +install -pm0644 docs/*.1 "%buildroot/%_mandir/man1/" +install -pm0644 docs/*.3 "%buildroot/%_mandir/man3/" + +%check +%ctest + +%post -n libbrotlicommon%sover -p /sbin/ldconfig +%postun -n libbrotlicommon%sover -p /sbin/ldconfig +%post -n libbrotlidec%sover -p /sbin/ldconfig +%postun -n libbrotlidec%sover -p /sbin/ldconfig +%post -n libbrotlienc%sover -p /sbin/ldconfig +%postun -n libbrotlienc%sover -p /sbin/ldconfig + +%files +%license LICENSE +%_bindir/brotli +%_mandir/man1/brotli.1* + +%files -n libbrotlicommon%sover +%_libdir/libbrotlicommon.so.* + +%files -n libbrotlidec%sover +%_libdir/libbrotlidec.so.* + +%files -n libbrotlienc%sover +%_libdir/libbrotlienc.so.* + +%files -n libbrotli-devel +%_includedir/brotli/ +%_libdir/libbrotlicommon.so +%_libdir/libbrotlidec.so +%_libdir/libbrotlienc.so +%_libdir/pkgconfig/*.pc +%_mandir/man3/*.3* + +%changelog diff --git a/v1.1.0.tar.gz b/v1.1.0.tar.gz new file mode 100644 index 0000000..3f13aeb --- /dev/null +++ b/v1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e720a6ca29428b803f4ad165371771f5398faba397edf6778837a18599ea13ff +size 511969