From 38602d94f3b6911e310022125ac62a3d26c93dd4 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Aug 06 2022 20:10:31 +0000 Subject: Update to version 0.3.14; Fixes RHBZ#2084087 --- diff --git a/.gitignore b/.gitignore index 720d92b..b3a4c58 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /async-compression-0.3.8.crate /async-compression-0.3.10.crate /async-compression-0.3.12.crate +/async-compression-0.3.14.crate diff --git a/async-compression-fix-metadata.diff b/async-compression-fix-metadata.diff index 82105b9..3629673 100644 --- a/async-compression-fix-metadata.diff +++ b/async-compression-fix-metadata.diff @@ -1,6 +1,6 @@ ---- async-compression-0.3.12/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ async-compression-0.3.12/Cargo.toml 2022-04-14T19:56:05.113600+00:00 -@@ -114,12 +114,6 @@ +--- async-compression-0.3.14/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ async-compression-0.3.14/Cargo.toml 2022-08-06T19:26:06.825517+00:00 +@@ -140,12 +140,6 @@ default-features = false package = "tokio" @@ -13,25 +13,27 @@ [dependencies.xz2] version = "0.1.6" optional = true -@@ -172,12 +166,6 @@ - default-features = false - package = "tokio" - --[dev-dependencies.tokio-03] --version = "0.3.0" --features = ["io-util", "stream"] +@@ -196,15 +190,6 @@ + "stream", + "macros", + "io-std", +-] -default-features = false -package = "tokio" - - [dev-dependencies.tokio-util-03] - version = "0.3.0" - features = ["codec"] -@@ -205,7 +193,7 @@ - [features] - all = ["all-implementations", "all-algorithms"] - all-algorithms = ["brotli", "bzip2", "deflate", "gzip", "lzma", "xz", "zlib", "zstd"] --all-implementations = ["futures-io", "stream", "tokio-02", "tokio-03", "tokio"] -+all-implementations = ["futures-io", "stream", "tokio-02", "tokio"] +-[dev-dependencies.tokio-03] +-version = "0.3.0" +-features = [ +- "io-util", +- "stream", + ] + default-features = false + package = "tokio" +@@ -252,7 +237,6 @@ + "futures-io", + "stream", + "tokio-02", +- "tokio-03", + "tokio", + ] default = [] - deflate = ["flate2"] - futures-bufread = ["futures-io"] diff --git a/rust-async-compression.spec b/rust-async-compression.spec index 661de0a..82b40fb 100644 --- a/rust-async-compression.spec +++ b/rust-async-compression.spec @@ -1,22 +1,21 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 22 # * ntest crates are not packaged yet %bcond_with check %global debug_package %{nil} %global crate async-compression -Name: rust-%{crate} -Version: 0.3.12 +Name: rust-async-compression +Version: 0.3.14 Release: %autorelease Summary: Adaptors between compression crates and Rust's modern asynchronous IO types -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/async-compression Source: %{crates_source} -# Initial patched metadata +# Manually created patch for downstream crate metadata changes # * drop tokio 0.3 support (Fedora only ships tokio 0.1, 0.2, and 1.0) -Patch0: async-compression-fix-metadata.diff +Patch: async-compression-fix-metadata.diff ExclusiveArch: %{rust_arches} diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..f626714 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +all-features = true diff --git a/sources b/sources index 32bae50..5e01fe6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-compression-0.3.12.crate) = 03e47d9c9df03e4db1faba4abbddec0cbeaf1273a970cac7d8b58ee8965a5ead8500c5031b6c3f7a32f03abd2191d17609aa2af9deae35fcc4882bd19aa115d1 +SHA512 (async-compression-0.3.14.crate) = 6d604f4937b5c3283dd882a62c2498ba804adb802a2720ffe1c69a8642b55685f0ae2dbc50f58974520167b1b4e43517bc54977299b3bd956d55bab8febc7852