Update to version 2.0.1; Fixes RHBZ#2319778

epel10
Fabio Valentini 3 months ago
parent b321d001c4
commit 64da4ec0c4
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,3 +0,0 @@
# rust-twox-hash
The rust-twox-hash package

@ -1,25 +1,22 @@
# Generated by rust2rpm 23 # Generated by rust2rpm 27
%bcond_without check %bcond check 1
%global debug_package %{nil} %global debug_package %{nil}
%global crate twox-hash %global crate twox-hash
Name: rust-twox-hash Name: rust-twox-hash
Version: 1.6.3 Version: 2.0.1
Release: %autorelease Release: %autorelease
Summary: Rust implementation of the XXHash and XXH3 algorithms Summary: Rust implementation of the XXHash and XXH3 algorithms
License: MIT License: MIT
URL: https://crates.io/crates/twox-hash URL: https://crates.io/crates/twox-hash
Source: %{crates_source} 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: %global _description %{expand:
Rust implementation of the XXHash and XXH3 algorithms.} A Rust implementation of the XXHash and XXH3 algorithms.}
%description %{_description} %description %{_description}
@ -34,6 +31,7 @@ use the "%{crate}" crate.
%files devel %files devel
%license %{crate_instdir}/LICENSE.txt %license %{crate_instdir}/LICENSE.txt
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md %doc %{crate_instdir}/README.md
%{crate_instdir}/ %{crate_instdir}/
@ -49,80 +47,92 @@ use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel %files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+digest_0_10-devel %package -n %{name}+alloc-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch 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 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 %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+digest_0_9-devel %package -n %{name}+random-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch 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 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 %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rand-devel %package -n %{name}+serialize-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch 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 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 %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serde-devel %package -n %{name}+std-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch 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 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 %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serialize-devel %package -n %{name}+xxhash32-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch 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 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 %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+std-devel %package -n %{name}+xxhash3_64-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch 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 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 %ghost %{crate_instdir}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version} -p1
%cargo_prep %cargo_prep
%generate_buildrequires %generate_buildrequires

@ -1,4 +0,0 @@
[fedora]
# The compat package for `digest` = 0.8 is not available in Fedora
unwanted-features =
digest

@ -1 +1 @@
SHA512 (twox-hash-1.6.3.crate) = f7ce63e6e5ca79ce9330caf40b32578a5d2088c5d8ed371604268760d6e212d447d9e3a95378378a283024155bccdaea47597902c488a94c5d5f79770baec8fc SHA512 (twox-hash-2.0.1.crate) = 0e2574219e394e2d4edeee9c6bf619365514adce48e7fee993dc943be8e4f3aba494f36bb769318fbc0a4cf4893298b3e5e16d788ab0ac1d609a9df48d08cfea

@ -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"
Loading…
Cancel
Save