Build for epel9

epel9
Davide Cavalca 3 years ago
parent 700c18495a
commit 2e2c95748b

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

Loading…
Cancel
Save