From d4297e61fa09555231397a79f81e625b35b91a53 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 26 May 2020 11:02:24 -0400 Subject: [PATCH] Sync upstream spec --- rpm-ostree.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rpm-ostree.spec b/rpm-ostree.spec index 613f75d..e44b7cb 100644 --- a/rpm-ostree.spec +++ b/rpm-ostree.spec @@ -16,18 +16,17 @@ Patch0: 0001-upgrader-Reset-ref-before-fetching-commit-by-overrid.patch ExclusiveArch: %{rust_arches} -%if 0%{?fedora} +%if 0%{?rhel} && !0%{?eln} +BuildRequires: rust-toolset +%else BuildRequires: cargo BuildRequires: rust -%else -# assume el8 -BuildRequires: rust-toolset %endif # RHEL8 doesn't ship zchunk today. See also the comments # in configure.ac around this as libdnf/librepo need to be in # sync, and today we bundle libdnf but not librepo. -%if 0%{?rhel} +%if 0%{?rhel} && 0%{?rhel} <= 8 %bcond_with zchunk %else %bcond_without zchunk