From: Cole Robinson Date: Fri, 5 May 2017 00:08:55 +0000 (-0400) Subject: spec: Update version check for maint Source URL X-Git-Tag: v3.4.0-rc1~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d07a5bf3c03309642068d20698a1f55739dafa2;p=thirdparty%2Flibvirt.git spec: Update version check for maint Source URL 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 Signed-off-by: Cole Robinson Acked-by: Andrea Bolognani --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 4c7b658a50..f06979184d 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