From 699cb7a702d149d165458e2189a523824c9d9acf Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mar 30 2023 20:40:40 +0000 Subject: Update to version 1.0.25; Fixes RHBZ#2148188 --- diff --git a/.gitignore b/.gitignore index ea34a92..70740ff 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /flate2-1.0.21.crate /flate2-1.0.22.crate /flate2-1.0.24.crate +/flate2-1.0.25.crate diff --git a/README.md b/README.md deleted file mode 100644 index be76bf8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-flate2 - -The rust-flate2 package \ No newline at end of file diff --git a/flate2-fix-metadata-auto.diff b/flate2-fix-metadata-auto.diff new file mode 100644 index 0000000..21d1718 --- /dev/null +++ b/flate2-fix-metadata-auto.diff @@ -0,0 +1,10 @@ +--- flate2-1.0.25/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ flate2-1.0.25/Cargo.toml 2023-03-30T20:36:23.247717+00:00 +@@ -90,7 +90,3 @@ + "libz-sys/zlib-ng", + ] + +-[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"emscripten\")))".dependencies.miniz_oxide] +-version = "0.6.0" +-features = ["with-alloc"] +-default-features = false diff --git a/flate2-fix-metadata.diff b/flate2-fix-metadata.diff deleted file mode 100644 index e5ad324..0000000 --- a/flate2-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- flate2-1.0.24/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ flate2-1.0.24/Cargo.toml 2022-08-09T08:55:49.802987+00:00 -@@ -88,7 +88,3 @@ - "zlib", - "libz-sys/zlib-ng", - ] -- --[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"emscripten\")))".dependencies.miniz_oxide] --version = "0.5.0" --default-features = false diff --git a/rust-flate2.spec b/rust-flate2.spec index df0a081..500d944 100644 --- a/rust-flate2.spec +++ b/rust-flate2.spec @@ -1,29 +1,26 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate flate2 Name: rust-flate2 -Version: 1.0.24 +Version: 1.0.25 Release: %autorelease Summary: DEFLATE compression and decompression exposed as Read/BufRead/Write streams License: MIT OR Apache-2.0 URL: https://crates.io/crates/flate2 Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * remove WASM-specific dependencies -Patch: flate2-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +# Automatically generated patch to strip foreign dependencies +Patch: flate2-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: -DEFLATE compression and decompression exposed as Read/BufRead/Write streams. -Supports miniz_oxide and multiple zlib implementations. Supports zlib, gzip, -and raw deflate streams.} +DEFLATE compression and decompression exposed as Read/BufRead/Write +streams. Supports miniz_oxide and multiple zlib implementations. +Supports zlib, gzip, and raw deflate streams.} %description %{_description} diff --git a/sources b/sources index fe7fbcc..d39483c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (flate2-1.0.24.crate) = 8faf97c28dcc4553f4880295677b1269b4acbc6518d006913d32d7e319990c6631e10f1baf7199b96e03f6de95b9e2de04502522bb1eb45bc301a0fbb0bfc0c5 +SHA512 (flate2-1.0.25.crate) = d81a463360ee2778f609ff297e04548120d1fda1f9e020fb2f429ea51189b8fe6cae57252fcd924d71fb65ad0f93ff7cdc7235913f8b78fa82925939cf884af7