From patchwork Fri May 5 00:08:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 98589 Delivered-To: patch@linaro.org Received: by 10.140.89.200 with SMTP id v66csp33576qgd; Thu, 4 May 2017 17:09:09 -0700 (PDT) X-Received: by 10.55.67.77 with SMTP id q74mr10887140qka.185.1493942949630; Thu, 04 May 2017 17:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1493942949; cv=none; d=google.com; s=arc-20160816; b=SQUfgKQTsDx2kfCyQD3GEonBEhtbari7jtkwRLQNQlbMzievnCpSuhB5TMAqREoo5g SXnTJfVe3ovhWuXKL8UOFiaX+hsoezycQ5A9yqJGd8g6Cl0zPNRdJabbrlReWFRALUn8 Rjb84vpNTgF1Uq78X1u7RFNr0GGbdMY8pmRIcXo8e35py3l1XVhTbkp9UMMXD6cK3L1c bQWhMMg6m/SauUPir0OAgdbPiKV9XaWo4SBVejnQhoMBRyqLYV8mnohm1E6bM7WUtD43 adS2+s7CqgLqrZ87Tn86D6Suq58nQ3UZ6GxFqGWQQVQxHh2xQo/tE6TEuujg8xt9xXOV 0sHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :dkim-filter:dmarc-filter:arc-authentication-results; bh=d1FLxzEZNlqco2qYJiBaJjSUZanqsmdRO1AqptXK8GQ=; b=ujp5BbwXkQpZEUUL+N45qoDMnvO8cC/JjP6y4hpi7Sq9hR4iPTRngb7McsFlQYUJMX 3LG30xVn2rpJe3XNUIRGPTma7L2Ik5/zthJWxtfdXX6T3hD8LntAVhN2AAnRfFGg8wD4 3U4ebVbkcbwkFRvT3Syd4fj1NEPn5Bj48V+gKNBacl9JZgTI+Kd5f+bO3RPqvi8fJXhL bnnlniDEx0YgTEwmZpapKFafx7p48D+9tPkbTp5FxKK2BgxN3bDgs/UDJlNYQxY5PS8P e9fjDtvQaDTQrm/hRmspuEdDiwDnAAyhnWaMpvuSo2+hcl631k9HwO9jwRAvXOP2cZv7 7l7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id i24si3102224qte.180.2017.05.04.17.09.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 17:09:09 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 941FA448D62; Fri, 5 May 2017 00:09:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 941FA448D62 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 941FA448D62 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 E02D85DD61; Fri, 5 May 2017 00:09:04 +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 5E9AE18523C2; Fri, 5 May 2017 00:09:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v4508xlb009839 for ; Thu, 4 May 2017 20:08:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id B4C9C18791; Fri, 5 May 2017 00:08:59 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from colepc.redhat.com (ovpn-117-47.phx2.redhat.com [10.3.117.47]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5BE5C183EC; Fri, 5 May 2017 00:08:57 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Thu, 4 May 2017 20:08:55 -0400 Message-Id: <233fca397201bc8bf417b8f76cf81a904fb40450.1493942935.git.crobinso@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] spec: Update version check for maint Source URL 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 Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 05 May 2017 00:09:08 +0000 (UTC) New maint release version numbers of just A.B.C format, not the old A.B.C.D format. Adjust the check that dynamically changes the Source URL for maint releases --- libvirt.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list Acked-by: Andrea Bolognani diff --git a/libvirt.spec.in b/libvirt.spec.in index b249224..734b187 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -233,7 +233,7 @@ Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root URL: http://libvirt.org/ -%if %(echo %{version} | grep -o \\. | wc -l) == 3 +%if %(echo %{version} | grep -q "\.0$"; echo $?) == 1 %define mainturl stable_updates/ %endif Source: http://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.xz