mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-06 09:55:46 +00:00
spec: Move _vpath_builddir definition
It belongs before package-specific feature flags are defined. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
0fef1fed0b
commit
8ee421dd09
@ -12,6 +12,11 @@
|
|||||||
%define supported_platform 0
|
%define supported_platform 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# On RHEL 7 and older macro _vpath_builddir is not defined.
|
||||||
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
|
%define _vpath_builddir %{_target_platform}
|
||||||
|
%endif
|
||||||
|
|
||||||
# The hypervisor drivers that run in libvirtd
|
# The hypervisor drivers that run in libvirtd
|
||||||
%define with_qemu 0%{!?_without_qemu:1}
|
%define with_qemu 0%{!?_without_qemu:1}
|
||||||
%define with_lxc 0%{!?_without_lxc:1}
|
%define with_lxc 0%{!?_without_lxc:1}
|
||||||
@ -31,11 +36,6 @@
|
|||||||
%define qemu_kvm_arches x86_64 %{power64} aarch64 s390x
|
%define qemu_kvm_arches x86_64 %{power64} aarch64 s390x
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# On RHEL 7 and older macro _vpath_builddir is not defined.
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
||||||
%define _vpath_builddir %{_target_platform}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifarch %{qemu_kvm_arches}
|
%ifarch %{qemu_kvm_arches}
|
||||||
%define with_qemu_kvm %{with_qemu}
|
%define with_qemu_kvm %{with_qemu}
|
||||||
%else
|
%else
|
||||||
|
Loading…
Reference in New Issue
Block a user