]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: Update version check for maint Source URL
authorCole Robinson <crobinso@redhat.com>
Fri, 5 May 2017 00:08:55 +0000 (20:08 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 9 May 2017 16:09:34 +0000 (12:09 -0400)
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 <crobinso@redhat.com>
Acked-by: Andrea Bolognani <abologna@redhat.com>
libvirt.spec.in

index 4c7b658a50860b89be846ec9416c1b5fe85e8386..f06979184d4f3e713281f162f559df1b33c400ac 100644 (file)
@@ -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