From 60a2d016ca818648bacf45f01c4447f0e1a593e6 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 1 Aug 2021 11:47:10 +0200 Subject: [PATCH] Update to version 3.3.2; Fixes RHBZ#1988749 --- .gitignore | 1 + brotli-fix-metadata.diff | 20 +++++++------------- rust-brotli.spec | 18 +++++++++++++++--- sources | 2 +- 4 files changed, 24 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 5437a31..c8092a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /brotli-3.3.0.crate +/brotli-3.3.2.crate diff --git a/brotli-fix-metadata.diff b/brotli-fix-metadata.diff index c21f57c..d6c7227 100644 --- a/brotli-fix-metadata.diff +++ b/brotli-fix-metadata.diff @@ -1,20 +1,14 @@ ---- brotli-3.3.0/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ brotli-3.3.0/Cargo.toml 2020-11-24T14:14:51.446107+00:00 -@@ -22,6 +22,13 @@ +--- brotli-3.3.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ brotli-3.3.2/Cargo.toml 2021-08-01T09:36:59.757364+00:00 +@@ -22,6 +22,7 @@ keywords = ["brotli", "decompression", "lz77", "huffman", "nostd"] license = "BSD-3-Clause/MIT" repository = "https://github.com/dropbox/rust-brotli" -+exclude = [ -+ "/ci/*", -+ "/research/*", -+ "/.travis.yml", -+ "/appveyor.yml", -+ "/uncorrode.py", -+] ++exclude = ["/ci/", "/research/", "/.travis.yml", "/appveyor.yml", "uncorrode.py"] [profile.release] lto = true incremental = false -@@ -44,12 +51,8 @@ +@@ -44,12 +45,8 @@ version = "~2.3" default-features = false @@ -28,8 +22,8 @@ optional = true [features] -@@ -59,7 +62,6 @@ - external-literal-probability = [] +@@ -60,7 +57,6 @@ + ffi-api = [] pass-through-ffi-panics = [] seccomp = ["brotli-decompressor/seccomp"] -simd = ["packed_simd/into_bits"] diff --git a/rust-brotli.spec b/rust-brotli.spec index eb1e4e0..419f929 100644 --- a/rust-brotli.spec +++ b/rust-brotli.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 12 +# Generated by rust2rpm 18 # https://github.com/dropbox/rust-brotli/issues/42 %if 0%{?__isa_bits} == 32 %bcond_with check @@ -13,7 +13,7 @@ %global crate brotli Name: rust-%{crate} -Version: 3.3.0 +Version: 3.3.2 Release: %autorelease Summary: Brotli compressor and decompressor avoiding the rust stdlib @@ -36,7 +36,7 @@ BuildArch: noarch BuildRequires: rust-packaging %global _description %{expand: -Brotli compressor and decompressor that with an interface avoiding the rust +Brotli compressor and decompressor with an interface avoiding the rust stdlib. This makes it suitable for embedded devices and kernels. It is designed with a pluggable allocator so that the standard lib's allocator may be employed. The default build also includes a stdlib allocator and stream @@ -118,6 +118,18 @@ which use "external-literal-probability" feature of "%{crate}" crate. %files -n %{name}+external-literal-probability-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+ffi-api-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ffi-api-devel %{_description} + +This package contains library source intended for building other packages +which use "ffi-api" feature of "%{crate}" crate. + +%files -n %{name}+ffi-api-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+pass-through-ffi-panics-devel Summary: %{summary} BuildArch: noarch diff --git a/sources b/sources index 14ea9db..877b86e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (brotli-3.3.0.crate) = 58da8c12a314ce5687697805065fe83c991b1e4468af16ebe2b8bc6848611b17065210f2da3e9774d40cedbd526b35727bf5876e82367ada07174fe62a00452c +SHA512 (brotli-3.3.2.crate) = 8d577b615bb3a818cc33c738e9dbf1561bc4a8d5bf70ecf03b936ccb6aac3dd317a0efc1200b41ce5f4ec09dfb407e3f6663e73b6fc1752be25dee96507d80a6