]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: Delay supported_platform check
authorJiri Denemark <jdenemar@redhat.com>
Tue, 3 Oct 2017 11:41:05 +0000 (13:41 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 3 Oct 2017 11:45:57 +0000 (13:45 +0200)
Building RPM should only be allowed on a supported platform, but
unpacking the source and applying all patches can be done anywhere.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
libvirt.spec.in

index a3bd77f8a4ef74f6bf7b3092f27ddaab0d114734..48f193f0c495ea17e140c275439d4da81d80e63d 100644 (file)
@@ -1091,10 +1091,6 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
 
 
 %prep
-%if ! %{supported_platform}
-echo "This RPM requires either Fedora >= 20 or RHEL >= 6"
-exit 1
-%endif
 
 %setup -q
 
@@ -1135,6 +1131,11 @@ rm -f $PATCHLIST
 rm -rf .git
 
 %build
+%if ! %{supported_platform}
+echo "This RPM requires either Fedora >= 20 or RHEL >= 6"
+exit 1
+%endif
+
 %if %{with_xen}
     %define arg_xen --with-xen
 %else