diff --git a/.gitignore b/.gitignore index 6b2496f..fe593fd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /async-compression-0.3.5.crate /async-compression-0.3.6.crate /async-compression-0.3.7.crate +/async-compression-0.3.8.crate diff --git a/async-compression-fix-metadata.diff b/async-compression-fix-metadata.diff index 05627ce..a21f496 100644 --- a/async-compression-fix-metadata.diff +++ b/async-compression-fix-metadata.diff @@ -1,6 +1,15 @@ ---- async-compression-0.3.7/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ async-compression-0.3.7/Cargo.toml 2021-03-06T23:26:52.503834+00:00 -@@ -113,12 +113,6 @@ +--- async-compression-0.3.8/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ async-compression-0.3.8/Cargo.toml 2021-05-10T14:44:08.742346+00:00 +@@ -91,7 +91,7 @@ + default-features = false + + [dependencies.libzstd] +-version = "0.7.0" ++version = "0.8.0" + optional = true + default-features = false + package = "zstd" +@@ -113,18 +113,12 @@ default-features = false package = "tokio" @@ -13,7 +22,14 @@ [dependencies.xz2] version = "0.1.6" optional = true -@@ -166,12 +160,6 @@ + + [dependencies.zstd-safe] +-version = "3.0.0" ++version = "4.0.0" + optional = true + default-features = false + [dev-dependencies.bytes] +@@ -171,12 +165,6 @@ default-features = false package = "tokio" @@ -23,10 +39,10 @@ -default-features = false -package = "tokio" - - [dev-dependencies.tokio-util-04] - version = "0.4.0" - features = ["io"] -@@ -187,7 +175,7 @@ + [dev-dependencies.tokio-util-03] + version = "0.3.0" + features = ["codec"] +@@ -204,7 +192,7 @@ [features] all = ["all-implementations", "all-algorithms"] all-algorithms = ["brotli", "bzip2", "deflate", "gzip", "lzma", "xz", "zlib", "zstd"] diff --git a/rust-async-compression.spec b/rust-async-compression.spec index 029dc38..d4f6a19 100644 --- a/rust-async-compression.spec +++ b/rust-async-compression.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 17 # * futures-test, ntest are not packaged %bcond_with check %global debug_package %{nil} @@ -6,7 +6,7 @@ %global crate async-compression Name: rust-%{crate} -Version: 0.3.7 +Version: 0.3.8 Release: 1%{?dist} Summary: Adaptors between compression crates and Rust's modern asynchronous IO types @@ -15,7 +15,10 @@ License: MIT or ASL 2.0 URL: https://crates.io/crates/async-compression Source: %{crates_source} # Initial patched metadata -# * drop tokio 0.3 support (we skipped 0.3 and went from 0.2 to 1.0 directly) +# * drop tokio 0.3 support (Fedora only ships tokio 0.1, 0.2, and 1.0) +# * bump zstd from 0.7 to 0.8 +# * bump zstd-safe from 3.0.1 to 4.0.0 +# https://github.com/Nemo157/async-compression/pull/120 Patch0: async-compression-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -325,20 +328,24 @@ which use "zstd-safe" feature of "%{crate}" crate. %cargo_prep %generate_buildrequires -%cargo_generate_buildrequires +%cargo_generate_buildrequires -a %build -%cargo_build +%cargo_build -a %install -%cargo_install +%cargo_install -a %if %{with check} %check -%cargo_test +%cargo_test -a %endif %changelog +* Mon May 10 2021 Fabio Valentini - 0.3.8-1 +- Update to version 0.3.8. +- Bump zstd to 0.8 and zstd-safe to 4.0.0. + * Sat Mar 06 2021 Fabio Valentini - 0.3.7-1 - Update to version 0.3.7. diff --git a/sources b/sources index 7229f4e..6689817 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-compression-0.3.7.crate) = 234d9769e69be6406eb1d755b5a17d525dacc1e36ead6edb2a92a944c2936c4f0cb38e8219d605b84d933233a2cd2d825955fa87777f56ce537461614e50fa7a +SHA512 (async-compression-0.3.8.crate) = 8ef6c186d3d5131034322540dedce6d8108bf1f00f9e73433772c06a77eb33567124f303a217f77f6daeb697f26fe9d6dd8ed6b9ae1e16ddb6e0f3053ab2bb06