From 015e21ce9888b6fa43ed1fbd5156af58b4735689 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Apr 06 2016 08:46:46 +0000 Subject: Define %gobuild macro if not defined --- diff --git a/etcd.spec b/etcd.spec index c6349c1..f253309 100644 --- a/etcd.spec +++ b/etcd.spec @@ -20,6 +20,10 @@ %global debug_package %{nil} %endif +%if ! 0%{?gobuild:1} +%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**}; +%endif + %global provider github %global provider_tld com %global project coreos