From 0c59ca9eaee9e65f94d03faba62fe5b18a80443f Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Mon, 11 Nov 2019 15:22:45 +0100 Subject: [PATCH] spec: fix vpath build on RHEL 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Macro _vpath_builddir is not defined so we have to define it ourselves. Signed-off-by: Pavel Hrdina Reviewed-by: Daniel P. Berrangé --- libvirt.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index eb8b2df055..2374668722 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -36,6 +36,11 @@ %define qemu_kvm_arches x86_64 %{power64} aarch64 s390x %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} %define with_qemu_kvm %{with_qemu} %else