From: Pavel Hrdina Date: Mon, 11 Nov 2019 14:22:45 +0000 (+0100) Subject: spec: fix vpath build on RHEL 7 X-Git-Tag: v5.10.0-rc1~327 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c59ca9eaee9e65f94d03faba62fe5b18a80443f;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Daniel P. Berrangé --- 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