From 40294de062d4e37f6a6b434d49a6cf7f0ba50747 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 30 May 2023 15:51:30 -0400 Subject: [PATCH] Use rust-toolset in RHEL builds RHEL provides a minimal set of macros compared to Fedora. --- netavark.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netavark.spec b/netavark.spec index 6cb6be8..9491070 100644 --- a/netavark.spec +++ b/netavark.spec @@ -34,8 +34,12 @@ Provides: container-network-stack = 2 BuildRequires: make BuildRequires: protobuf-c BuildRequires: protobuf-compiler +%if %{defined rhel} +BuildRequires: rust-toolset +%else BuildRequires: rust-packaging BuildRequires: rust-srpm-macros +%endif BuildRequires: git-core BuildRequires: systemd BuildRequires: systemd-devel