|
|
|
@ -4,8 +4,8 @@
|
|
|
|
|
|
|
|
|
|
%global crate resctl-bench
|
|
|
|
|
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
# el8 doesn't have these macros
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# RHEL doesn't have these macros
|
|
|
|
|
%global __crates_url https://crates.io/api/v1/crates/
|
|
|
|
|
%global crates_source %{__crates_url}%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
%global version_no_tilde %{version}
|
|
|
|
@ -25,7 +25,7 @@ Source1: %{crate}-%{version}-vendor.tar.gz
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
@ -65,7 +65,7 @@ Requires: rd-hashd = %{version}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%cargo_prep -V 1
|
|
|
|
|
%else
|
|
|
|
|
%cargo_prep
|
|
|
|
|