]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Support maintenance releases on mingw
authorAndrea Bolognani <abologna@redhat.com>
Thu, 11 May 2017 16:28:00 +0000 (18:28 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 11 May 2017 16:35:26 +0000 (18:35 +0200)
The regular spec file contains code to deal with the fact
that maintenance releases are uploaded to their own
directory: copy it over to the mingw spec file so that it's
possible to build maintenance releases there as well.

This also switches the source URL from FTP to HTTP for
consistency with the main spec file.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
mingw-libvirt.spec.in

index 302f66396e53f5fc7729b3d849d6681771fc270b..d313d523ff15d0a4ee3b52ee340b745838b5ced2 100644 (file)
@@ -30,7 +30,11 @@ Summary:        MinGW Windows libvirt virtualization library
 License:        LGPLv2+
 Group:          Development/Libraries
 URL:            http://libvirt.org/
-Source0:        ftp://libvirt.org/libvirt/libvirt-%{version}.tar.xz
+
+%if %(echo %{version} | grep -q "\.0$"; echo $?) == 1
+    %define mainturl stable_updates/
+%endif
+Source: http://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.xz
 
 BuildRequires:  mingw32-filesystem >= 95
 BuildRequires:  mingw64-filesystem >= 95