|
|
|
@ -4,10 +4,10 @@
|
|
|
|
|
|
|
|
|
|
%global crate resctl-demo
|
|
|
|
|
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# disabling this as it chokes on the vendored dependencies
|
|
|
|
|
%undefine __brp_mangle_shebangs
|
|
|
|
|
# el8 doesn't have these macros
|
|
|
|
|
# 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}
|
|
|
|
@ -27,7 +27,7 @@ Source1: %{crate}-%{version}-vendor.tar.gz
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
@ -55,7 +55,7 @@ Requires: gnuplot
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%cargo_prep -V 1
|
|
|
|
|
%else
|
|
|
|
|
%cargo_prep
|
|
|
|
|