From a4bc0669abe3ff78dd3f11dc3aca9a21767fcd7c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 27 Oct 2023 14:02:52 +0200 Subject: [PATCH] Update to version 0.8.6; Fixes RHBZ#2245597 --- .gitignore | 2 ++ README.md | 3 --- ahash-fix-metadata.diff | 49 +++++++++-------------------------------- rust-ahash.spec | 7 +++--- sources | 2 +- 5 files changed, 16 insertions(+), 47 deletions(-) delete mode 100644 README.md diff --git a/.gitignore b/.gitignore index 2e6343b..ce63adf 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ /ahash-0.7.6.crate /ahash-0.8.2.crate /ahash-0.8.3.crate +/ahash-0.8.5.crate +/ahash-0.8.6.crate diff --git a/README.md b/README.md deleted file mode 100644 index 05debf2..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-ahash - -The rust-ahash package \ No newline at end of file diff --git a/ahash-fix-metadata.diff b/ahash-fix-metadata.diff index bb59a7c..3122d4a 100644 --- a/ahash-fix-metadata.diff +++ b/ahash-fix-metadata.diff @@ -1,50 +1,21 @@ ---- ahash-0.8.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ ahash-0.8.3/Cargo.toml 2023-02-21T12:39:50.969193+00:00 -@@ -48,22 +48,10 @@ - ] - features = ["std"] +--- ahash-0.8.6/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ahash-0.8.6/Cargo.toml 2023-10-27T12:03:48.887092+00:00 +@@ -79,11 +79,6 @@ + path = "tests/bench.rs" + harness = false --[profile.bench] --opt-level = 3 -+[profile.release] - lto = "fat" --codegen-units = 1 --debug = false --debug-assertions = false -- --[profile.release] --opt-level = 3 --lto = "fat" --codegen-units = 1 --debug = false --debug-assertions = false - - [profile.test] --opt-level = 2 - lto = "fat" - - [lib] -@@ -73,16 +61,6 @@ - doctest = true - bench = true - doc = true -- --[[bench]] --name = "ahash" --path = "tests/bench.rs" --harness = false -- -[[bench]] -name = "map" -path = "tests/map_tests.rs" -harness = false - +- [dependencies.atomic-polyfill] version = "1.0.1" -@@ -102,10 +80,6 @@ - [dependencies.serde] - version = "1.0.117" optional = true +@@ -107,10 +102,6 @@ + version = "0.7.14" + features = ["simd"] + default-features = false - -[dev-dependencies.criterion] -version = "0.3.2" diff --git a/rust-ahash.spec b/rust-ahash.spec index ff7eef7..643cb8b 100644 --- a/rust-ahash.spec +++ b/rust-ahash.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate ahash Name: rust-ahash -Version: 0.8.3 +Version: 0.8.6 Release: %autorelease Summary: Non-cryptographic hash function using AES-NI for high performance @@ -14,7 +14,6 @@ URL: https://crates.io/crates/ahash Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused benchmarks and benchmark-only criterion dev-dependency -# * drop profiles which set incompatible compiler flags Patch: ahash-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 @@ -149,7 +148,7 @@ use the "std" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep # remove benchmark sources from non-standard path in tests/ rm tests/{bench.rs,map_tests.rs} diff --git a/sources b/sources index a5fc751..45275b3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ahash-0.8.3.crate) = cf2d2f1201ac0969cf4e2a0c47090bee971b2287ac44b5e091c90a9eced03cf6ff56d7900cc0f529d4acedc30bd400261c15e50efabdd1731f79951b449af53e +SHA512 (ahash-0.8.6.crate) = 46428b27e96be1f30058b9383a94988beeb5064dfb4df04d6959b451d0c77ef69fc51f07fdf9511ab9728295eb6beee7783c31a2297f9e473fc537883e722b73