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 <crobinso@redhat.com>
Acked-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit 1d07a5bf3c)
This commit is contained in:
Cole Robinson 2017-05-04 20:08:55 -04:00
parent 9fde9b04f5
commit 8ca627420d

View File

@ -233,7 +233,7 @@ Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://libvirt.org/ URL: http://libvirt.org/
%if %(echo %{version} | grep -o \\. | wc -l) == 3 %if %(echo %{version} | grep -q "\.0$"; echo $?) == 1
%define mainturl stable_updates/ %define mainturl stable_updates/
%endif %endif
Source: http://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.xz Source: http://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.xz