|
|
|
@ -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
|
|
|
|
|