]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: fix vpath build on RHEL 7
authorPavel Hrdina <phrdina@redhat.com>
Mon, 11 Nov 2019 14:22:45 +0000 (15:22 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 12 Nov 2019 14:21:56 +0000 (15:21 +0100)
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>
libvirt.spec.in

index eb8b2df055750a3d874bad60a1242549bcc664a7..2374668722a67e3219b433946b77957e3752847b 100644 (file)
     %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