spec: Fix up conditionals for ELN
The `rust-toolset` package does not exist in Fedora, so we cannot use it for BuildRequires. Change the conditional to exclude ELN from the %rhel conditional. Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
f8667c65f7
commit
541b43beaa
@ -14,18 +14,17 @@ URL: https://github.com/projectatomic/rpm-ostree
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user