Use rust-toolset in RHEL builds

RHEL provides a minimal set of macros compared to Fedora.
This commit is contained in:
Yaakov Selkowitz 2023-05-30 15:51:30 -04:00
parent 7cd1dead01
commit 40294de062

View File

@ -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