|
|
|
@ -1,24 +1,22 @@
|
|
|
|
|
# Generated by rust2rpm 21
|
|
|
|
|
# * Some tests are broken on non-x86_64
|
|
|
|
|
# https://github.com/rayon-rs/rayon/issues/585
|
|
|
|
|
%bcond_with check
|
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate rayon
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 1.5.3
|
|
|
|
|
Name: rust-rayon
|
|
|
|
|
Version: 1.10.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Simple work-stealing parallelism for Rust
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT OR Apache-2.0
|
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
|
URL: https://crates.io/crates/rayon
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * remove WASM-specific features and dependencies
|
|
|
|
|
Patch: rayon-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Simple work-stealing parallelism for Rust.}
|
|
|
|
@ -55,7 +53,7 @@ use the "default" 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
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
@ -69,7 +67,9 @@ use the "default" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
%cargo_test
|
|
|
|
|
# * skip a test that tends to hang indefinitely:
|
|
|
|
|
# https://github.com/rayon-rs/rayon/issues/1142
|
|
|
|
|
%cargo_test -- -- --exact --skip par_bridge_recursion
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|