diff --git a/.gitignore b/.gitignore index a3452a9..e543935 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /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 +/zstd-safe-6.0.6.crate diff --git a/rust-zstd-safe.spec b/rust-zstd-safe.spec index 7de8c21..eaa24ae 100644 --- a/rust-zstd-safe.spec +++ b/rust-zstd-safe.spec @@ -3,20 +3,18 @@ %global debug_package %{nil} %global crate zstd-safe -%global upstream_version 6.0.4+zstd.1.5.4 Name: rust-zstd-safe -Version: 6.0.4 +Version: 6.0.6 Release: %autorelease Summary: Safe low-level bindings for the zstd compression library # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/zstd-safe -Source: %{crates_source %{crate} %{upstream_version}} +Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * remove zstd version from version field -# * exclude a development-only shell script +# * exclude files that are only useful for upstream development Patch: zstd-safe-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -223,7 +221,7 @@ use the "zstdmt" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{upstream_version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index f87e737..f3d2efc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zstd-safe-6.0.4+zstd.1.5.4.crate) = db03385ae800053ddb1bb6a2089712f284c21e43a99deeed6367ca8dabbb3f96b12066dfb57f484172a386fc9576c28e38d1a7bbf838debc05877bc68cd5c9cf +SHA512 (zstd-safe-6.0.6.crate) = 33f8aee9c584a2abdd3d965fa9ff15fad310fc3f9d73e04d5a3a871c3b7e96b7a833cf563ef81656c9226ec793f42bb9c08b1c5cc53c9ead3e29802d8fcfbc6a diff --git a/zstd-safe-fix-metadata.diff b/zstd-safe-fix-metadata.diff index 7480121..17bf7a1 100644 --- a/zstd-safe-fix-metadata.diff +++ b/zstd-safe-fix-metadata.diff @@ -1,14 +1,5 @@ ---- 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 = "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." +--- 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"