|
|
@ -1,11 +1,12 @@
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
# Generated by rust2rpm 22
|
|
|
|
|
|
|
|
# Circular dep with primal - build without check to bootstrap
|
|
|
|
%bcond_with check
|
|
|
|
%bcond_with check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate primal-check
|
|
|
|
%global crate primal-check
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-primal-check
|
|
|
|
Name: rust-primal-check
|
|
|
|
Version: 0.3.4
|
|
|
|
Version: 0.3.3
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Fast standalone primality testing
|
|
|
|
Summary: Fast standalone primality testing
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +14,9 @@ License: MIT OR Apache-2.0
|
|
|
|
URL: https://crates.io/crates/primal-check
|
|
|
|
URL: https://crates.io/crates/primal-check
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Fast standalone primality testing.}
|
|
|
|
Fast standalone primality testing.}
|
|
|
@ -59,11 +62,8 @@ use the "unstable" feature of the "%{crate}" crate.
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
%if %{without check}
|
|
|
|
|
|
|
|
sed -i -e '/dev-dependencies.primal/{N;d;}' Cargo.toml
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|