From 1fd3f500b987c138350c9ab876197592b86514dd Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 15 Jan 2024 15:54:16 +0100 Subject: [PATCH] Update to version 7.0.0; Fixes RHBZ#2243314 --- .gitignore | 1 + rust-zstd-safe.spec | 11 ++++------- sources | 2 +- zstd-safe-fix-metadata.diff | 10 ---------- 4 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 zstd-safe-fix-metadata.diff diff --git a/.gitignore b/.gitignore index e543935..14a690e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /zstd-safe-5.0.2+zstd.1.5.2.crate /zstd-safe-6.0.4+zstd.1.5.4.crate /zstd-safe-6.0.6.crate +/zstd-safe-7.0.0.crate diff --git a/rust-zstd-safe.spec b/rust-zstd-safe.spec index eaa24ae..e6a53db 100644 --- a/rust-zstd-safe.spec +++ b/rust-zstd-safe.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate zstd-safe Name: rust-zstd-safe -Version: 6.0.6 +Version: 7.0.0 Release: %autorelease Summary: Safe low-level bindings for the zstd compression library @@ -13,11 +13,8 @@ Summary: Safe low-level bindings for the zstd compression library License: MIT OR Apache-2.0 URL: https://crates.io/crates/zstd-safe Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * exclude files that are only useful for upstream development -Patch: zstd-safe-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Safe low-level bindings for the zstd compression library.} @@ -221,7 +218,7 @@ use the "zstdmt" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index f3d2efc..6375f92 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zstd-safe-6.0.6.crate) = 33f8aee9c584a2abdd3d965fa9ff15fad310fc3f9d73e04d5a3a871c3b7e96b7a833cf563ef81656c9226ec793f42bb9c08b1c5cc53c9ead3e29802d8fcfbc6a +SHA512 (zstd-safe-7.0.0.crate) = 2f0d66c874f7880d05fce39f4bdec5e217e8e18b44bfe97b4ea33c7d5c8719c5bd9615f7274f0b19734a465eb2477993fb8ae8d60abc7da36eac361e8fc4a437 diff --git a/zstd-safe-fix-metadata.diff b/zstd-safe-fix-metadata.diff deleted file mode 100644 index 17bf7a1..0000000 --- a/zstd-safe-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- zstd-safe-6.0.6/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ zstd-safe-6.0.6/Cargo.toml 2023-08-01T13:07:09.173716+00:00 -@@ -29,6 +29,7 @@ - ] - license = "MIT/Apache-2.0" - repository = "https://github.com/gyscos/zstd-rs" -+exclude = ["/update_consts.sh"] - - [package.metadata.docs.rs] - features = [