mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
spec: Drop supported_platform variable
It's only used in one place, and it's nicer to keep the error message close to the check that causes it to be emitted. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
0f601d2f86
commit
69c8d5954e
@ -6,12 +6,6 @@
|
|||||||
%define min_rhel 8
|
%define min_rhel 8
|
||||||
%define min_fedora 33
|
%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
|
%define arches_qemu_kvm %{ix86} x86_64 %{power64} %{arm} aarch64 s390x
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
%define arches_qemu_kvm x86_64 aarch64 s390x
|
%define arches_qemu_kvm x86_64 aarch64 s390x
|
||||||
@ -929,9 +923,9 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
|
|||||||
%autosetup -S git_am
|
%autosetup -S git_am
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if ! %{supported_platform}
|
%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}"
|
echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}"
|
||||||
exit 1
|
exit 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with_qemu}
|
%if %{with_qemu}
|
||||||
|
@ -5,12 +5,6 @@
|
|||||||
# or versions, but no effort will be made to ensure that going forward.
|
# or versions, but no effort will be made to ensure that going forward.
|
||||||
%define min_fedora 33
|
%define min_fedora 33
|
||||||
|
|
||||||
%if 0%{?fedora} && 0%{?fedora} >= %{min_fedora}
|
|
||||||
%define supported_platform 1
|
|
||||||
%else
|
|
||||||
%define supported_platform 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: mingw-libvirt
|
Name: mingw-libvirt
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@ -95,9 +89,9 @@ MinGW Windows libvirt virtualization library.
|
|||||||
%setup -q -n libvirt-%{version}
|
%setup -q -n libvirt-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if ! %{supported_platform}
|
%if 0%{?fedora} < %{min_fedora}
|
||||||
echo "This RPM requires Fedora >= %{min_fedora}"
|
echo "This RPM requires Fedora >= %{min_fedora}"
|
||||||
exit 1
|
exit 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%mingw_meson \
|
%mingw_meson \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user