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