]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
rpm: Fix conditional for defining %_vpath_builddir for RHEL <= 7
authorNeal Gompa <ngompa13@gmail.com>
Sun, 30 Aug 2020 00:09:18 +0000 (20:09 -0400)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 1 Sep 2020 07:39:27 +0000 (09:39 +0200)
The conditional was incorrectly overriding %_vpath_builddir when
%rhel is not defined, which led to surprising behavior when the
global %_vpath_builddir path is set on Fedora already.

Signed-off-by: Neal Gompa <ngompa13@gmail.com>
Message-Id: <20200830000918.11431-1-ngompa13@gmail.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
libvirt.spec.in

index bb74443484ec56ddd976f374f576e463de9e1521..4b9e04ae61d9fa168a7e2b1307561979f3f5cfb7 100644 (file)
@@ -32,7 +32,7 @@
 %endif
 
 # On RHEL 7 and older macro _vpath_builddir is not defined.
-%if 0%{?rhel} <= 7
+%if 0%{?rhel} && 0%{?rhel} <= 7
     %define _vpath_builddir %{_target_platform}
 %endif