]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Move _vpath_builddir definition
authorAndrea Bolognani <abologna@redhat.com>
Mon, 5 Oct 2020 16:54:29 +0000 (18:54 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 9 Oct 2020 12:34:24 +0000 (14:34 +0200)
It belongs before package-specific feature flags are defined.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
libvirt.spec.in

index 1fc05054b597b68f59e74d7e8180404d4f144829..540cbaff3c366e1350a4e0a637450001ceb1633b 100644 (file)
     %define supported_platform 0
 %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
 %define with_qemu          0%{!?_without_qemu:1}
 %define with_lxc           0%{!?_without_lxc:1}
     %define qemu_kvm_arches x86_64 %{power64} aarch64 s390x
 %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}
     %define with_qemu_kvm      %{with_qemu}
 %else