|
|
@ -1,30 +1,27 @@
|
|
|
|
# Generated by rust2rpm 23
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
# * 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-ahash0.7
|
|
|
|
Name: rust-ahash0.7
|
|
|
|
Version: 0.7.6
|
|
|
|
Version: 0.7.7
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
URL: https://crates.io/crates/ahash
|
|
|
|
URL: https://crates.io/crates/ahash
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Automatically generated patch to strip foreign dependencies
|
|
|
|
# Automatically generated patch to strip dependencies and normalize metadata
|
|
|
|
Patch: ahash-fix-metadata-auto.diff
|
|
|
|
Patch: ahash-fix-metadata-auto.diff
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * 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
|
|
|
|
|
|
|
|
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 +53,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
|
|
|
@ -105,11 +114,10 @@ use the "std" feature of the "%{crate}" crate.
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
# remove benchmark tests
|
|
|
|
|
|
|
|
rm tests/bench.rs
|
|
|
|
|
|
|
|
rm tests/map_tests.rs
|
|
|
|
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
# remove benchmark sources from non-standard path in tests/
|
|
|
|
|
|
|
|
rm tests/{bench.rs,map_tests.rs}
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|