|
|
@ -1,13 +1,11 @@
|
|
|
|
# Generated by rust2rpm 23
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
# * no_panic tests require LTO to work correctly, but LTO causes LLVM crashes:
|
|
|
|
%bcond_without check
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2142648
|
|
|
|
|
|
|
|
%bcond_with check
|
|
|
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate ahash
|
|
|
|
%global crate ahash
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-ahash
|
|
|
|
Name: rust-ahash
|
|
|
|
Version: 0.8.2
|
|
|
|
Version: 0.8.3
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Non-cryptographic hash function using AES-NI for high performance
|
|
|
|
Summary: Non-cryptographic hash function using AES-NI for high performance
|
|
|
|
|
|
|
|
|
|
|
@ -15,16 +13,14 @@ License: MIT OR Apache-2.0
|
|
|
|
URL: https://crates.io/crates/ahash
|
|
|
|
URL: https://crates.io/crates/ahash
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * disable atomic-polyfill support to work around rust-packaging limitations:
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2152697
|
|
|
|
|
|
|
|
# * drop unused benchmarks and benchmark-only criterion dev-dependency
|
|
|
|
# * drop unused benchmarks and benchmark-only criterion dev-dependency
|
|
|
|
# * drop profiles which set incompatible compiler flags
|
|
|
|
# * drop profiles which set incompatible compiler flags
|
|
|
|
Patch: ahash-fix-metadata.diff
|
|
|
|
Patch: ahash-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Non-cryptographic hash function using AES-NI for high performance.}
|
|
|
|
A non-cryptographic hash function using AES-NI for high performance.}
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
@ -56,6 +52,18 @@ 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}+atomic-polyfill-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+atomic-polyfill-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
|
|
|
use the "atomic-polyfill" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+atomic-polyfill-devel
|
|
|
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+compile-time-rng-devel
|
|
|
|
%package -n %{name}+compile-time-rng-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@ -157,8 +165,14 @@ rm tests/{bench.rs,map_tests.rs}
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
|
|
|
|
%ifarch s390x
|
|
|
|
|
|
|
|
# * one test fails only on s390x:
|
|
|
|
|
|
|
|
# https://github.com/tkaitchuck/aHash/issues/152
|
|
|
|
|
|
|
|
%cargo_test -- -- --skip operations::test::test_add_length
|
|
|
|
|
|
|
|
%else
|
|
|
|
%cargo_test
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
%autochangelog
|
|
|
|
%autochangelog
|
|
|
|