From 2e2c95748b52dd300a19a9f699f6f9d32264369a Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Thu, 9 Dec 2021 11:30:09 -0800 Subject: [PATCH] Build for epel9 --- rust-resctl-bench.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust-resctl-bench.spec b/rust-resctl-bench.spec index 9f7a40a..2eaf9d4 100644 --- a/rust-resctl-bench.spec +++ b/rust-resctl-bench.spec @@ -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