mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
spec: fix vpath build on RHEL 7
Macro _vpath_builddir is not defined so we have to define it ourselves. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
f4eb27a9b4
commit
0c59ca9eae
@ -36,6 +36,11 @@
|
|||||||
%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} <= 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…
x
Reference in New Issue
Block a user