Update to nbdkit 1.2.4.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 18 Jun 2018 19:09:39 +0000 (20:09 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 18 Jun 2018 19:19:35 +0000 (20:19 +0100)
This is the latest in upstream stable branch.

This also fixes the path to the tarball for the new directory
structure added when we split nbdkit into stable and unstable
branches.

Makefile
nbdkit-plugin-vddk.spec

index c38dcb1..0463087 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,8 @@
 
 PWD := $(shell pwd)
 VERSION := $(shell grep ^Version: nbdkit-plugin-vddk.spec | awk '{print $$2}')
+BRANCH_VERSION := $(shell echo $(VERSION) | grep -Eo '^[1-9][0-9]*\.[0-9]+')
+BRANCH_TYPE := $(shell echo $(BRANCH_VERSION) | grep -sq '^.*\.[0-9]*[02468]$$' && echo stable || echo development)
 VDDK_DIR := $(shell grep '^%global vddkdir' nbdkit-plugin-vddk.spec | awk '{print $$3}')
 
 include Makefile.tools
@@ -75,7 +77,7 @@ check-source: nbdkit-$(VERSION).tar.gz
 
 nbdkit-$(VERSION).tar.gz:
        rm -rf $@ $@-t
-       $(DOWNLOAD) http://libguestfs.org/download/nbdkit/$@ > $@-t
+       $(DOWNLOAD) http://download.libguestfs.org/nbdkit/$(BRANCH_VERSION)-$(BRANCH_TYPE)/$@ > $@-t
        mv $@-t $@
 
 clean:
index a1e17d9..e5271cf 100644 (file)
@@ -11,7 +11,7 @@ Name:           nbdkit-plugin-vddk
 # NB: The Version field is parsed out of this file by Makefile, so it
 # can only be a simple number.  Also it must correspond to an nbdkit
 # released version (ideally the latest version).
-Version:        1.1.25
+Version:        1.2.4
 Release:        1%{?dist}
 
 Summary:        VDDK plugin for nbdkit