From 5141c2be98ae9dc723315f7c36ca90e06a594819 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 4 May 2017 20:08:55 -0400 Subject: [PATCH] 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 (cherry picked from commit 1d07a5bf3c03309642068d20698a1f55739dafa2) --- libvirt.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index a389e88c57..0ece3c85d5 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -226,7 +226,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 -- GitLab