From 64da4ec0c45faae83058e6b64f1e7382d5a6bd18 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 2 Dec 2024 18:26:01 +0100 Subject: [PATCH] Update to version 2.0.1; Fixes RHBZ#2319778 --- README.md | 3 -- rust-twox-hash.spec | 76 +++++++++++++++++++++---------------- rust2rpm.conf | 4 -- sources | 2 +- twox-hash-fix-metadata.diff | 10 ----- 5 files changed, 44 insertions(+), 51 deletions(-) delete mode 100644 README.md delete mode 100644 rust2rpm.conf delete mode 100644 twox-hash-fix-metadata.diff diff --git a/README.md b/README.md deleted file mode 100644 index 6a07c16..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-twox-hash - -The rust-twox-hash package diff --git a/rust-twox-hash.spec b/rust-twox-hash.spec index d69e831..ce9f218 100644 --- a/rust-twox-hash.spec +++ b/rust-twox-hash.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 23 -%bcond_without check +# Generated by rust2rpm 27 +%bcond check 1 %global debug_package %{nil} %global crate twox-hash Name: rust-twox-hash -Version: 1.6.3 +Version: 2.0.1 Release: %autorelease Summary: Rust implementation of the XXHash and XXH3 algorithms License: MIT URL: https://crates.io/crates/twox-hash Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * prevent useless example binary from being installed -Patch: twox-hash-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Rust implementation of the XXHash and XXH3 algorithms.} +A Rust implementation of the XXHash and XXH3 algorithms.} %description %{_description} @@ -34,6 +31,7 @@ use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE.txt +%doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ @@ -49,80 +47,92 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+digest_0_10-devel +%package -n %{name}+alloc-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+digest_0_10-devel %{_description} +%description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which -use the "digest_0_10" feature of the "%{crate}" crate. +use the "alloc" feature of the "%{crate}" crate. -%files -n %{name}+digest_0_10-devel +%files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+digest_0_9-devel +%package -n %{name}+random-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+digest_0_9-devel %{_description} +%description -n %{name}+random-devel %{_description} This package contains library source intended for building other packages which -use the "digest_0_9" feature of the "%{crate}" crate. +use the "random" feature of the "%{crate}" crate. -%files -n %{name}+digest_0_9-devel +%files -n %{name}+random-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+rand-devel +%package -n %{name}+serialize-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+rand-devel %{_description} +%description -n %{name}+serialize-devel %{_description} This package contains library source intended for building other packages which -use the "rand" feature of the "%{crate}" crate. +use the "serialize" feature of the "%{crate}" crate. -%files -n %{name}+rand-devel +%files -n %{name}+serialize-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+serde-devel +%package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+serde-devel %{_description} +%description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which -use the "serde" feature of the "%{crate}" crate. +use the "std" feature of the "%{crate}" crate. -%files -n %{name}+serde-devel +%files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+serialize-devel +%package -n %{name}+xxhash32-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+serialize-devel %{_description} +%description -n %{name}+xxhash32-devel %{_description} This package contains library source intended for building other packages which -use the "serialize" feature of the "%{crate}" crate. +use the "xxhash32" feature of the "%{crate}" crate. -%files -n %{name}+serialize-devel +%files -n %{name}+xxhash32-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+std-devel +%package -n %{name}+xxhash3_64-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+std-devel %{_description} +%description -n %{name}+xxhash3_64-devel %{_description} This package contains library source intended for building other packages which -use the "std" feature of the "%{crate}" crate. +use the "xxhash3_64" feature of the "%{crate}" crate. -%files -n %{name}+std-devel +%files -n %{name}+xxhash3_64-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+xxhash64-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+xxhash64-devel %{_description} + +This package contains library source intended for building other packages which +use the "xxhash64" feature of the "%{crate}" crate. + +%files -n %{name}+xxhash64-devel %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/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index 63f94c6..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,4 +0,0 @@ -[fedora] -# The compat package for `digest` = 0.8 is not available in Fedora -unwanted-features = - digest diff --git a/sources b/sources index cf234ef..79ef07b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (twox-hash-1.6.3.crate) = f7ce63e6e5ca79ce9330caf40b32578a5d2088c5d8ed371604268760d6e212d447d9e3a95378378a283024155bccdaea47597902c488a94c5d5f79770baec8fc +SHA512 (twox-hash-2.0.1.crate) = 0e2574219e394e2d4edeee9c6bf619365514adce48e7fee993dc943be8e4f3aba494f36bb769318fbc0a4cf4893298b3e5e16d788ab0ac1d609a9df48d08cfea diff --git a/twox-hash-fix-metadata.diff b/twox-hash-fix-metadata.diff deleted file mode 100644 index e9a9917..0000000 --- a/twox-hash-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- twox-hash-1.6.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ twox-hash-1.6.3/Cargo.toml 2023-02-05T14:34:44.019474+00:00 -@@ -26,6 +26,7 @@ - categories = ["algorithms"] - license = "MIT" - repository = "https://github.com/shepmaster/twox-hash" -+autobins = false - - [dependencies.cfg-if] - version = ">= 0.1, < 2"