diff --git a/.gitignore b/.gitignore index 6f6abc8..6ea378a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /xxhash-c-sys-0.8.3.crate /LICENSE +/xxhash-c-sys-0.8.4.crate diff --git a/rust-xxhash-c-sys.spec b/rust-xxhash-c-sys.spec index 2bbd2ea..41ca4b0 100644 --- a/rust-xxhash-c-sys.spec +++ b/rust-xxhash-c-sys.spec @@ -1,26 +1,21 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate xxhash-c-sys -Name: rust-%{crate} -Version: 0.8.3 +Name: rust-xxhash-c-sys +Version: 0.8.4 Release: %autorelease Summary: Bindings to xxhash -# Upstream license specification: BSL-1.0 -# https://github.com/DoumanAsh/xxhash-c-sys/pull/3 -License: Boost +License: BSL-1.0 URL: https://crates.io/crates/xxhash-c-sys -Source0: %{crates_source} -Source1: https://github.com/DoumanAsh/xxhash-c-sys/raw/d241dc8/LICENSE -# Initial patched metadata +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes # * build and link against shared xxhash library -Patch0: xxhash-c-sys-fix-metadata.diff -Patch1: 0001-build-and-link-against-shared-xxhash-library.patch - -ExclusiveArch: %{rust_arches} +Patch: xxhash-c-sys-fix-metadata.diff +Patch: 0001-build-and-link-against-shared-xxhash-library.patch BuildRequires: rust-packaging >= 21 @@ -61,7 +56,6 @@ use the "default" feature of the "%{crate}" crate. # remove bundled copy of xxhash rm -r src/c %cargo_prep -cp %{SOURCE1} . %generate_buildrequires %cargo_generate_buildrequires diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf diff --git a/sources b/sources index 6262c76..efe23ae 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -SHA512 (xxhash-c-sys-0.8.3.crate) = a7daed0bcd2bbdff65ce5e0842e38e1811a4e5e1dd42d279c76ebaf837d5d036ce533a4dd43a05388434564ed767b98cd8a085f39151194abad117c5648b3a0e -SHA512 (LICENSE) = d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8 +SHA512 (xxhash-c-sys-0.8.4.crate) = 6235858d9e1f72be3db9ed1c7469f64728739cdf5c1572145f7d7dbba7b067c122d471a74f5fa29bbe3bef77a55f44dd225fb01987c9ab0e727b67885ae61483 diff --git a/xxhash-c-sys-fix-metadata.diff b/xxhash-c-sys-fix-metadata.diff index ae8e618..8a4e025 100644 --- a/xxhash-c-sys-fix-metadata.diff +++ b/xxhash-c-sys-fix-metadata.diff @@ -1,6 +1,6 @@ ---- xxhash-c-sys-0.8.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ xxhash-c-sys-0.8.3/Cargo.toml 2022-04-29T10:20:53.096396+00:00 -@@ -16,10 +16,9 @@ +--- xxhash-c-sys-0.8.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ xxhash-c-sys-0.8.4/Cargo.toml 2023-08-07T22:17:30.216566+00:00 +@@ -16,8 +16,6 @@ authors = ["Douman "] include = [ "**/*.rs", @@ -8,11 +8,8 @@ - "**/*.h", "Cargo.toml", "README.md", -+ "LICENSE", - ] - description = "Bindings to xxhash" - readme = "README.md" -@@ -36,5 +35,5 @@ + "LICENSE", +@@ -37,5 +35,5 @@ version = "0.2" default-features = false