From 7b70ec7e71861b23231a42e2e89bd74dac57ddf9 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 23 Feb 2023 19:13:11 +0100 Subject: [PATCH] Update to version 6.0.4+zstd.1.5.4; Fixes RHBZ#2145249 --- .gitignore | 1 + README.md | 3 --- rust-zstd-safe.spec | 32 +++++++++++++++++++++++++++----- sources | 2 +- zstd-safe-fix-metadata.diff | 14 +++++++------- 5 files changed, 36 insertions(+), 16 deletions(-) delete mode 100644 README.md diff --git a/.gitignore b/.gitignore index 9d1451f..a3452a9 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /zstd-safe-4.1.3+zstd.1.5.1.crate /zstd-safe-4.1.4+zstd.1.5.2.crate /zstd-safe-5.0.2+zstd.1.5.2.crate +/zstd-safe-6.0.4+zstd.1.5.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index 5442213..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-zstd-safe - -The rust-zstd-safe package \ No newline at end of file diff --git a/rust-zstd-safe.spec b/rust-zstd-safe.spec index fc94ba1..7de8c21 100644 --- a/rust-zstd-safe.spec +++ b/rust-zstd-safe.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate zstd-safe -%global upstream_version 5.0.2+zstd.1.5.2 +%global upstream_version 6.0.4+zstd.1.5.4 Name: rust-zstd-safe -Version: 5.0.2 +Version: 6.0.4 Release: %autorelease Summary: Safe low-level bindings for the zstd compression library @@ -19,8 +19,6 @@ Source: %{crates_source %{crate} %{upstream_version}} # * exclude a development-only shell script Patch: zstd-safe-fix-metadata.diff -ExclusiveArch: %{rust_arches} - BuildRequires: rust-packaging >= 21 %global _description %{expand: @@ -116,6 +114,18 @@ use the "experimental" feature of the "%{crate}" crate. %files -n %{name}+experimental-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+fat-lto-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fat-lto-devel %{_description} + +This package contains library source intended for building other packages which +use the "fat-lto" feature of the "%{crate}" crate. + +%files -n %{name}+fat-lto-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+legacy-devel Summary: %{summary} BuildArch: noarch @@ -176,6 +186,18 @@ use the "thin" feature of the "%{crate}" crate. %files -n %{name}+thin-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+thin-lto-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+thin-lto-devel %{_description} + +This package contains library source intended for building other packages which +use the "thin-lto" feature of the "%{crate}" crate. + +%files -n %{name}+thin-lto-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+zdict_builder-devel Summary: %{summary} BuildArch: noarch diff --git a/sources b/sources index b74636d..f87e737 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zstd-safe-5.0.2+zstd.1.5.2.crate) = 03a6f07ada211fd6c364f03d06acff705fa5b08129aa09c29ad310f05b233553f8ea697e504470d4c104bd947f5d4102328c4df0df5e1da6d8e537f51451a014 +SHA512 (zstd-safe-6.0.4+zstd.1.5.4.crate) = db03385ae800053ddb1bb6a2089712f284c21e43a99deeed6367ca8dabbb3f96b12066dfb57f484172a386fc9576c28e38d1a7bbf838debc05877bc68cd5c9cf diff --git a/zstd-safe-fix-metadata.diff b/zstd-safe-fix-metadata.diff index a8c2326..7480121 100644 --- a/zstd-safe-fix-metadata.diff +++ b/zstd-safe-fix-metadata.diff @@ -1,15 +1,15 @@ ---- zstd-safe-5.0.2+zstd.1.5.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ zstd-safe-5.0.2+zstd.1.5.2/Cargo.toml 2022-08-06T16:38:17.903057+00:00 -@@ -12,7 +12,7 @@ - [package] +--- zstd-safe-6.0.4+zstd.1.5.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ zstd-safe-6.0.4+zstd.1.5.4/Cargo.toml 2023-02-23T18:00:32.379206+00:00 +@@ -13,7 +13,7 @@ edition = "2018" + rust-version = "1.43" name = "zstd-safe" --version = "5.0.2+zstd.1.5.2" -+version = "5.0.2" +-version = "6.0.4+zstd.1.5.4" ++version = "6.0.4" authors = ["Alexandre Bury "] build = "build.rs" description = "Safe low-level bindings for the zstd compression library." -@@ -28,6 +28,7 @@ +@@ -29,6 +29,7 @@ ] license = "MIT/Apache-2.0" repository = "https://github.com/gyscos/zstd-rs"