From 1544fc69df5f2440b0ed68d2ccf26b7b288e6947 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 14 Apr 2022 21:59:55 +0200 Subject: [PATCH] Update to version 0.3.12; Fixes RHBZ#2045587 --- .gitignore | 1 + async-compression-fix-metadata.diff | 10 ++--- rust-async-compression.spec | 59 +++++++++++++++-------------- sources | 2 +- 4 files changed, 37 insertions(+), 35 deletions(-) diff --git a/.gitignore b/.gitignore index 8db7bab..720d92b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /async-compression-0.3.7.crate /async-compression-0.3.8.crate /async-compression-0.3.10.crate +/async-compression-0.3.12.crate diff --git a/async-compression-fix-metadata.diff b/async-compression-fix-metadata.diff index 62437e5..82105b9 100644 --- a/async-compression-fix-metadata.diff +++ b/async-compression-fix-metadata.diff @@ -1,6 +1,6 @@ ---- async-compression-0.3.10/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ async-compression-0.3.10/Cargo.toml 2022-01-26T15:24:13.085999+00:00 -@@ -112,12 +112,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 @@ default-features = false package = "tokio" @@ -13,7 +13,7 @@ [dependencies.xz2] version = "0.1.6" optional = true -@@ -170,12 +164,6 @@ +@@ -172,12 +166,6 @@ default-features = false package = "tokio" @@ -26,7 +26,7 @@ [dev-dependencies.tokio-util-03] version = "0.3.0" features = ["codec"] -@@ -203,7 +191,7 @@ +@@ -205,7 +193,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 ff27724..661de0a 100644 --- a/rust-async-compression.spec +++ b/rust-async-compression.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 # * ntest crates are not packaged yet %bcond_with check %global debug_package %{nil} @@ -6,7 +6,7 @@ %global crate async-compression Name: rust-%{crate} -Version: 0.3.10 +Version: 0.3.12 Release: %autorelease Summary: Adaptors between compression crates and Rust's modern asynchronous IO types @@ -20,7 +20,7 @@ Patch0: async-compression-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Adaptors between compression crates and Rust's modern asynchronous IO types.} @@ -37,9 +37,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,7 +52,7 @@ This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+all-devel Summary: %{summary} @@ -63,7 +64,7 @@ This package contains library source intended for building other packages which use the "all" feature of the "%{crate}" crate. %files -n %{name}+all-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+all-algorithms-devel Summary: %{summary} @@ -75,7 +76,7 @@ This package contains library source intended for building other packages which use the "all-algorithms" feature of the "%{crate}" crate. %files -n %{name}+all-algorithms-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+all-implementations-devel Summary: %{summary} @@ -87,7 +88,7 @@ This package contains library source intended for building other packages which use the "all-implementations" feature of the "%{crate}" crate. %files -n %{name}+all-implementations-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+brotli-devel Summary: %{summary} @@ -99,7 +100,7 @@ This package contains library source intended for building other packages which use the "brotli" feature of the "%{crate}" crate. %files -n %{name}+brotli-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bytes-05-devel Summary: %{summary} @@ -111,7 +112,7 @@ This package contains library source intended for building other packages which use the "bytes-05" feature of the "%{crate}" crate. %files -n %{name}+bytes-05-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bzip2-devel Summary: %{summary} @@ -123,7 +124,7 @@ This package contains library source intended for building other packages which use the "bzip2" feature of the "%{crate}" crate. %files -n %{name}+bzip2-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+deflate-devel Summary: %{summary} @@ -135,7 +136,7 @@ This package contains library source intended for building other packages which use the "deflate" feature of the "%{crate}" crate. %files -n %{name}+deflate-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+flate2-devel Summary: %{summary} @@ -147,7 +148,7 @@ This package contains library source intended for building other packages which use the "flate2" feature of the "%{crate}" crate. %files -n %{name}+flate2-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-bufread-devel Summary: %{summary} @@ -159,7 +160,7 @@ This package contains library source intended for building other packages which use the "futures-bufread" feature of the "%{crate}" crate. %files -n %{name}+futures-bufread-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-io-devel Summary: %{summary} @@ -171,7 +172,7 @@ This package contains library source intended for building other packages which use the "futures-io" feature of the "%{crate}" crate. %files -n %{name}+futures-io-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-write-devel Summary: %{summary} @@ -183,7 +184,7 @@ This package contains library source intended for building other packages which use the "futures-write" feature of the "%{crate}" crate. %files -n %{name}+futures-write-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gzip-devel Summary: %{summary} @@ -195,7 +196,7 @@ This package contains library source intended for building other packages which use the "gzip" feature of the "%{crate}" crate. %files -n %{name}+gzip-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libzstd-devel Summary: %{summary} @@ -207,7 +208,7 @@ This package contains library source intended for building other packages which use the "libzstd" feature of the "%{crate}" crate. %files -n %{name}+libzstd-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+lzma-devel Summary: %{summary} @@ -219,7 +220,7 @@ This package contains library source intended for building other packages which use the "lzma" feature of the "%{crate}" crate. %files -n %{name}+lzma-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+stream-devel Summary: %{summary} @@ -231,7 +232,7 @@ This package contains library source intended for building other packages which use the "stream" feature of the "%{crate}" crate. %files -n %{name}+stream-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} @@ -243,7 +244,7 @@ This package contains library source intended for building other packages which use the "tokio" feature of the "%{crate}" crate. %files -n %{name}+tokio-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-02-devel Summary: %{summary} @@ -255,7 +256,7 @@ This package contains library source intended for building other packages which use the "tokio-02" feature of the "%{crate}" crate. %files -n %{name}+tokio-02-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+xz-devel Summary: %{summary} @@ -267,7 +268,7 @@ This package contains library source intended for building other packages which use the "xz" feature of the "%{crate}" crate. %files -n %{name}+xz-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+xz2-devel Summary: %{summary} @@ -279,7 +280,7 @@ This package contains library source intended for building other packages which use the "xz2" feature of the "%{crate}" crate. %files -n %{name}+xz2-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zlib-devel Summary: %{summary} @@ -291,7 +292,7 @@ This package contains library source intended for building other packages which use the "zlib" feature of the "%{crate}" crate. %files -n %{name}+zlib-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zstd-devel Summary: %{summary} @@ -303,7 +304,7 @@ This package contains library source intended for building other packages which use the "zstd" feature of the "%{crate}" crate. %files -n %{name}+zstd-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zstd-safe-devel Summary: %{summary} @@ -315,7 +316,7 @@ This package contains library source intended for building other packages which use the "zstd-safe" feature of the "%{crate}" crate. %files -n %{name}+zstd-safe-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index d7884e3..32bae50 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-compression-0.3.10.crate) = b51a36bac92055cf7c817c1b8d615d92c2e7b72b0f2c89b3d7ab94f895cc2e12979248b8b7c9a3e83b3a1bfe7ac8a97f1d7dd590cea4d5757024f065de1a3214 +SHA512 (async-compression-0.3.12.crate) = 03e47d9c9df03e4db1faba4abbddec0cbeaf1273a970cac7d8b58ee8965a5ead8500c5031b6c3f7a32f03abd2191d17609aa2af9deae35fcc4882bd19aa115d1