From bcf9b42b15d2b285ec2665c27495357903314acc Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 22 May 2023 23:46:08 +0200 Subject: [PATCH] Update to version 1.4.0; Fixes RHBZ#2170489 --- .gitignore | 1 + README.md | 3 --- libflate-fix-metadata.diff | 27 +++++++++++++++++++++++++++ rust-libflate.spec | 15 ++++++++------- sources | 2 +- 5 files changed, 37 insertions(+), 11 deletions(-) delete mode 100644 README.md create mode 100644 libflate-fix-metadata.diff diff --git a/.gitignore b/.gitignore index bd648b2..c23257c 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /libflate-1.1.1.crate /libflate-1.1.2.crate /libflate-1.2.0.crate +/libflate-1.4.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index c716d4b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-libflate - -The rust-libflate package \ No newline at end of file diff --git a/libflate-fix-metadata.diff b/libflate-fix-metadata.diff new file mode 100644 index 0000000..a30111b --- /dev/null +++ b/libflate-fix-metadata.diff @@ -0,0 +1,27 @@ +--- libflate-1.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libflate-1.4.0/Cargo.toml 2023-05-22T21:42:54.038100+00:00 +@@ -29,12 +29,6 @@ + [dependencies.adler32] + version = "1" + +-[dependencies.core2] +-version = "0.4" +-features = ["alloc"] +-optional = true +-default_features = false +- + [dependencies.crc32fast] + version = "1.1.1" + +@@ -45,11 +39,5 @@ + [dev-dependencies.clap] + version = "2" + +-[features] +-no_std = [ +- "libflate_lz77/no_std", +- "core2", +-] +- + [badges.coveralls] + repository = "sile/libflate" diff --git a/rust-libflate.spec b/rust-libflate.spec index 1740ec1..da9dc9e 100644 --- a/rust-libflate.spec +++ b/rust-libflate.spec @@ -1,25 +1,26 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate libflate -Name: rust-%{crate} -Version: 1.2.0 +Name: rust-libflate +Version: 1.4.0 Release: %autorelease Summary: Rust implementation of DEFLATE algorithm and related formats (ZLIB, GZIP) -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/libflate Source: %{crates_source} - -ExclusiveArch: %{rust_arches} +# Manually created patch for downstream crate metadata changes +# * drop unused no_std feature with missing dependencies +Patch: libflate-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: -Rust implementation of DEFLATE algorithm and related formats (ZLIB, GZIP).} +A Rust implementation of DEFLATE algorithm and related formats (ZLIB, +GZIP).} %description %{_description} diff --git a/sources b/sources index 39a390f..e76f1bf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libflate-1.2.0.crate) = a5e0448e56ab5a219952a4b4efc3407c8419d8d9a255670f42b8f1bca7f7fe5774c2711025b18285c4f1310d26d0347ab2090b0f734bae43b569a0879f67d1f2 +SHA512 (libflate-1.4.0.crate) = ebdfdad0b67e835218a269a2b00389b86afbb95cb4bdf9accd4ea3c866917dbdd756a91c38ca34695ebbb80b02055eac738fa4144f86a61116cf477af52e3838