From 562a0f6f0068388550b27274f8ceea3cfd6dd677 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 8 Mar 2024 13:55:07 +0100 Subject: [PATCH] Update to version 2.4.0; Fixes RHBZ#2265959 --- .gitignore | 1 + half-fix-metadata-auto.diff | 6 +++--- half-fix-metadata.diff | 6 +++--- rust-half.spec | 22 +++++++++++++++------- rust2rpm.toml | 10 ---------- sources | 2 +- 6 files changed, 23 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index a1aeb3f..ffaffad 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /half-1.7.1.crate /half-1.8.2.crate /half-2.3.1.crate +/half-2.4.0.crate diff --git a/half-fix-metadata-auto.diff b/half-fix-metadata-auto.diff index 94af787..d4fffe8 100644 --- a/half-fix-metadata-auto.diff +++ b/half-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- half-2.3.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ half-2.3.1/Cargo.toml 2023-10-14T20:41:06.915241+00:00 -@@ -107,5 +107,3 @@ +--- half-2.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ half-2.4.0/Cargo.toml 2024-03-08T12:52:50.931270+00:00 +@@ -111,5 +111,3 @@ std = ["alloc"] use-intrinsics = [] diff --git a/half-fix-metadata.diff b/half-fix-metadata.diff index 0aa8c90..48295ad 100644 --- a/half-fix-metadata.diff +++ b/half-fix-metadata.diff @@ -1,6 +1,6 @@ ---- half-2.3.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ half-2.3.1/Cargo.toml 2023-10-14T20:41:18.538289+00:00 -@@ -77,14 +77,6 @@ +--- half-2.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ half-2.4.0/Cargo.toml 2024-03-08T12:53:03.710329+00:00 +@@ -81,14 +81,6 @@ optional = true default-features = false diff --git a/rust-half.spec b/rust-half.spec index 4c1622c..7cc1fe1 100644 --- a/rust-half.spec +++ b/rust-half.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate half Name: rust-half -Version: 2.3.1 +Version: 2.4.0 Release: %autorelease Summary: Half-precision floating point f16 and bf16 types for Rust @@ -15,8 +15,6 @@ Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: half-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes -# * drop unused zerocopy feature (missing dependencies) -# * drop unused benchmark-only criterion dependency Patch: half-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 @@ -102,6 +100,18 @@ use the "rand_distr" feature of the "%{crate}" crate. %files -n %{name}+rand_distr-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+rkyv-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rkyv-devel %{_description} + +This package contains library source intended for building other packages which +use the "rkyv" feature of the "%{crate}" crate. + +%files -n %{name}+rkyv-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch @@ -153,9 +163,7 @@ use the "use-intrinsics" feature of the "%{crate}" crate. %if %{with check} %check -# * skip tests that fail with Rust 1.75+ when built in release mode: -# https://github.com/starkat99/half-rs/issues/103 -%cargo_test -- -- --exact --skip bfloat::test::test_nan_conversion_to_larger --skip bfloat::test::test_nan_conversion_to_smaller --skip binary16::test::test_nan_conversion_to_larger --skip binary16::test::test_nan_conversion_to_smaller +%cargo_test %endif %changelog diff --git a/rust2rpm.toml b/rust2rpm.toml index 51f165b..ba29a5a 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,13 +1,3 @@ [package] summary = "Half-precision floating point f16 and bf16 types for Rust" -[tests] -skip = [ - "bfloat::test::test_nan_conversion_to_larger", - "bfloat::test::test_nan_conversion_to_smaller", - "binary16::test::test_nan_conversion_to_larger", - "binary16::test::test_nan_conversion_to_smaller", -] -skip-exact = true -comments = ["skip tests that fail with Rust 1.75+ when built in release mode: https://github.com/starkat99/half-rs/issues/103"] - diff --git a/sources b/sources index 373dc39..d76325f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (half-2.3.1.crate) = b29acbca7b8f8fed6392346d03c710dad0f51cb2e358e7ea74a3aad4e10ffd22edb4154a56f877adc375da831a7597b51f7049335c0781a1b1110103e5eafc35 +SHA512 (half-2.4.0.crate) = 7357a0f84dc6ae394efdd464f5a6da2bafa48bf8d794b2c34d1507d4d66af31ece8a012b58e6f76eacea2c249488a12c20f8c7e516ddd42a70633c9dbaa13bf5