mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
spec: Reintroduce supported_platform variable
The rewritten checks, which made it possible to drop the variable, are in fact not equivalent to the original ones, and rewriting them once again so that they are would make them unwieldy. Let's go back to how things were. Reverts: 69c8d5954ec4c5be22c2ebe313dbdc6c3f98c7b5 Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
3976dc598a
commit
62e5dc56d9
@ -6,6 +6,12 @@
|
||||
%define min_rhel 8
|
||||
%define min_fedora 33
|
||||
|
||||
%if 0%{?fedora} >= %{min_fedora} || 0%{?rhel} >= %{min_rhel}
|
||||
%define supported_platform 1
|
||||
%else
|
||||
%define supported_platform 0
|
||||
%endif
|
||||
|
||||
%define arches_qemu_kvm %{ix86} x86_64 %{power64} %{arm} aarch64 s390x
|
||||
%if 0%{?rhel}
|
||||
%define arches_qemu_kvm x86_64 aarch64 s390x
|
||||
@ -923,9 +929,9 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
|
||||
%autosetup -S git_am
|
||||
|
||||
%build
|
||||
%if (0%{?fedora} && 0%{?fedora} < %{min_fedora}) || (0%{?rhel} && 0%{?rhel} < %{min_rhel})
|
||||
echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}"
|
||||
exit 1
|
||||
%if ! %{supported_platform}
|
||||
echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}"
|
||||
exit 1
|
||||
%endif
|
||||
|
||||
%if %{with_qemu}
|
||||
|
@ -5,6 +5,12 @@
|
||||
# or versions, but no effort will be made to ensure that going forward.
|
||||
%define min_fedora 33
|
||||
|
||||
%if 0%{?fedora} && 0%{?fedora} >= %{min_fedora}
|
||||
%define supported_platform 1
|
||||
%else
|
||||
%define supported_platform 0
|
||||
%endif
|
||||
|
||||
Name: mingw-libvirt
|
||||
Version: @VERSION@
|
||||
Release: 1%{?dist}
|
||||
@ -89,9 +95,9 @@ MinGW Windows libvirt virtualization library.
|
||||
%setup -q -n libvirt-%{version}
|
||||
|
||||
%build
|
||||
%if 0%{?fedora} < %{min_fedora}
|
||||
echo "This RPM requires Fedora >= %{min_fedora}"
|
||||
exit 1
|
||||
%if ! %{supported_platform}
|
||||
echo "This RPM requires Fedora >= %{min_fedora}"
|
||||
exit 1
|
||||
%endif
|
||||
|
||||
%mingw_meson \
|
||||
|
Loading…
x
Reference in New Issue
Block a user