From nobody Mon Feb 9 13:58:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1620746524; cv=none; d=zohomail.com; s=zohoarc; b=epHS1sqJiIy6IQgyA2PN0IUNmW8cfxpoHpsH2xmbT3pffwR7yJCRrufg5b5Ijkeud+EOHPQ0/yaH3k2/LDXXkMQl5RQ+P0tDxvgSgZlsZ6rIsm2s0YHmJxMiSKOVQ2tDccuVUJfu99Ridrc+ByIHujw3dxQDrcxENz/FlHBggp8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620746524; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ZmK5RItp3fYbLVlINSTd1YKGFo7m3weB6N/LbcjWcBA=; b=kW22qufEHR3IhQy5DS7XagqX27W0EcBAK994DoN5unDLCozxiZFXrhDPhDqQqikYJ1ojSYo/l7EKHiUY+nEh24454hH0IwUAtHPt8T9kq4RSohgcUIW6l64lg26oaMjfe0fxn7JMRJLMOWoMrGvnP3DHJ91VTGfe9QKjUhr2sIw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1620746524763675.3645853415769; Tue, 11 May 2021 08:22:04 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-124-PiPGF_vzOKmceCnoU3iupA-1; Tue, 11 May 2021 11:21:59 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E3189818401; Tue, 11 May 2021 15:21:54 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B86FD19C44; Tue, 11 May 2021 15:21:54 +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 715731806D0E; Tue, 11 May 2021 15:21:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 14BFLg3j007680 for ; Tue, 11 May 2021 11:21:42 -0400 Received: by smtp.corp.redhat.com (Postfix) id E236E5D762; Tue, 11 May 2021 15:21:42 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.40.194.213]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0BB195D6A8 for ; Tue, 11 May 2021 15:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620746522; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ZmK5RItp3fYbLVlINSTd1YKGFo7m3weB6N/LbcjWcBA=; b=A+dfFm+sfczgeE2atamXoFT/zxgK4CDjX65bUFwm2D0Ljh1WlalOIQSbwdrIb+HBrPKAMz hQMlvtE30VvOIogOQXaFgICf5tswvxTRFoX8CQcBrHlW84D8HP5ZOZmhy3zwPNmVQzMWnC 0zE7yzhBHW6l4NTp5PKmj3pGR9NVQS4= X-MC-Unique: PiPGF_vzOKmceCnoU3iupA-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 1/3] spec: Reintroduce supported_platform variable Date: Tue, 11 May 2021 17:21:29 +0200 Message-Id: <20210511152131.48111-2-abologna@redhat.com> In-Reply-To: <20210511152131.48111-1-abologna@redhat.com> References: <20210511152131.48111-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" The rewritten checks, which made it possible to drop the variable, are in fact not equivalent to the original ones, and rewriting them once again so that they are would make them unwieldy. Let's go back to how things were. Reverts: 69c8d5954ec4c5be22c2ebe313dbdc6c3f98c7b5 Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 12 +++++++++--- mingw-libvirt.spec.in | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 9dea6c6787..013c7742a2 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -6,6 +6,12 @@ %define min_rhel 8 %define min_fedora 33 =20 +%if 0%{?fedora} >=3D %{min_fedora} || 0%{?rhel} >=3D %{min_rhel} + %define supported_platform 1 +%else + %define supported_platform 0 +%endif + %define arches_qemu_kvm %{ix86} x86_64 %{power64} %{arm} aarch64 s= 390x %if 0%{?rhel} %define arches_qemu_kvm x86_64 aarch64 s390x @@ -923,9 +929,9 @@ Libvirt plugin for NSS for translating domain names int= o IP addresses. %autosetup -S git_am =20 %build -%if (0%{?fedora} && 0%{?fedora} < %{min_fedora}) || (0%{?rhel} && 0%{?rhel= } < %{min_rhel}) - echo "This RPM requires either Fedora >=3D %{min_fedora} or RHEL >=3D = %{min_rhel}" - exit 1 +%if ! %{supported_platform} +echo "This RPM requires either Fedora >=3D %{min_fedora} or RHEL >=3D %{mi= n_rhel}" +exit 1 %endif =20 %if %{with_qemu} diff --git a/mingw-libvirt.spec.in b/mingw-libvirt.spec.in index 61a4843fb3..84b8998f74 100644 --- a/mingw-libvirt.spec.in +++ b/mingw-libvirt.spec.in @@ -5,6 +5,12 @@ # or versions, but no effort will be made to ensure that going forward. %define min_fedora 33 =20 +%if 0%{?fedora} && 0%{?fedora} >=3D %{min_fedora} + %define supported_platform 1 +%else + %define supported_platform 0 +%endif + Name: mingw-libvirt Version: @VERSION@ Release: 1%{?dist} @@ -89,9 +95,9 @@ MinGW Windows libvirt virtualization library. %setup -q -n libvirt-%{version} =20 %build -%if 0%{?fedora} < %{min_fedora} - echo "This RPM requires Fedora >=3D %{min_fedora}" - exit 1 +%if ! %{supported_platform} +echo "This RPM requires Fedora >=3D %{min_fedora}" +exit 1 %endif =20 %mingw_meson \ --=20 2.26.3