From 46a981aaa8181051efbb1538e308a5a8900c474f Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Jan 24 2017 08:54:14 +0000 Subject: Fix flanneld --version - related: #1412005 --- diff --git a/flannel.spec b/flannel.spec index a8f69d9..f5f81b4 100644 --- a/flannel.spec +++ b/flannel.spec @@ -43,7 +43,7 @@ Name: flannel Version: 0.7.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Etcd address management agent for overlay networks License: ASL 2.0 URL: https://%{provider_prefix} @@ -251,6 +251,8 @@ export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath} %define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**}; %endif +export LDFLAGS="-X github.com/coreos/flannel/version.Version=%{version}" + %gobuild -o bin/flanneld %{import_path} %install @@ -348,6 +350,10 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath} %endif %changelog +* Tue Jan 24 2017 Jan Chaloupka - 0.7.0-2 +- Fix flanneld --version + related: #1412005 + * Wed Jan 11 2017 Jan Chaloupka - 0.7.0-1 - Bump to 0.7.0 resolves: #1412005