From 52f44dc37e968c72760563f81610ff52ac872838 Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki Date: Mon, 6 May 2024 11:53:16 +0200 Subject: [PATCH] rpm: fix COPR RPMs build for centos-stream-10 Signed-off-by: Anderson Toshiyuki Sasaki --- rpm/centos/keylime-agent-rust.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpm/centos/keylime-agent-rust.spec b/rpm/centos/keylime-agent-rust.spec index 86906c18..c6e56b0d 100644 --- a/rpm/centos/keylime-agent-rust.spec +++ b/rpm/centos/keylime-agent-rust.spec @@ -53,7 +53,7 @@ Requires: util-linux-core # The keylime-base package provides the keylime user creation. It is available # from Fedora 36 -%if 0%{?fedora} >= 36 +%if 0%{?fedora} >= 36 || 0%{?rhel} >= 9 Requires: keylime-base %endif @@ -77,7 +77,11 @@ Rust agent for Keylime %cargo_prep -V 1 %build +%if 0%{?rhel} >= 10 +%cargo_build -ftesting +%else %cargo_build --features=testing +%endif %install