|
|
|
@ -1,24 +1,22 @@
|
|
|
|
|
# Generated by rust2rpm 21
|
|
|
|
|
# * Some tests don't work with optimized builds
|
|
|
|
|
# https://github.com/rayon-rs/rayon/issues/585
|
|
|
|
|
%bcond_with check
|
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate rayon-core
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 1.9.3
|
|
|
|
|
Name: rust-rayon-core
|
|
|
|
|
Version: 1.12.1
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Core APIs for Rayon
|
|
|
|
|
|
|
|
|
|
# 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-core
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * remove WASM-specific features and dependencies
|
|
|
|
|
Patch: rayon-core-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Core APIs for Rayon.}
|
|
|
|
@ -53,7 +51,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
|
|
|
|
|