From nobody Thu May 2 05:13:08 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1507032495392318.0251196571937; Tue, 3 Oct 2017 05:08:15 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1B4975BECD; Tue, 3 Oct 2017 12:08:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 63B5660BE1; Tue, 3 Oct 2017 12:08:13 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 764213FACE; Tue, 3 Oct 2017 12:08:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v93BmHYZ001862 for ; Tue, 3 Oct 2017 07:48:17 -0400 Received: by smtp.corp.redhat.com (Postfix) id 796DF5D973; Tue, 3 Oct 2017 11:48:17 +0000 (UTC) Received: from mamuti.net (ovpn-204-116.brq.redhat.com [10.40.204.116]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4C7625D727 for ; Tue, 3 Oct 2017 11:48:13 +0000 (UTC) Received: by mamuti.net (Postfix, from userid 500) id 9BA4810174C; Tue, 3 Oct 2017 13:48:12 +0200 (CEST) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1B4975BECD Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Jiri Denemark To: libvir-list@redhat.com Date: Tue, 3 Oct 2017 13:48:04 +0200 Message-Id: <4ddb4bb861e90170e1354195b11337abd009f6a4.1507031284.git.jdenemar@redhat.com> Mail-Followup-To: libvir-list@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] spec: Delay supported_platform check X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 03 Oct 2017 12:08:14 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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 --- libvirt.spec.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index a3bd77f8a4..48f193f0c4 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1091,10 +1091,6 @@ Libvirt plugin for NSS for translating domain names = into IP addresses. =20 =20 %prep -%if ! %{supported_platform} -echo "This RPM requires either Fedora >=3D 20 or RHEL >=3D 6" -exit 1 -%endif =20 %setup -q =20 @@ -1135,6 +1131,11 @@ rm -f $PATCHLIST rm -rf .git =20 %build +%if ! %{supported_platform} +echo "This RPM requires either Fedora >=3D 20 or RHEL >=3D 6" +exit 1 +%endif + %if %{with_xen} %define arg_xen --with-xen %else --=20 2.14.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list