From e2f6065c2a5fbecbfb759749f60f17d5f8a9508d Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Thu, 9 Dec 2021 11:23:40 -0800 Subject: [PATCH] Build for epel9 --- rust-resctl-demo.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust-resctl-demo.spec b/rust-resctl-demo.spec index 49eefc9..d14fbcf 100644 --- a/rust-resctl-demo.spec +++ b/rust-resctl-demo.spec @@ -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