View File kubernetes-keepalived-vip.spec of Package kubernetes-keepalived (Project home:barclaac:hackweek)
# spec file for package kubernetes-keepalived
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Summary: Keepalived adapter for Kubernetes
BuildRequires: go >= 1.8.3
BuildRequires: golang(API) = 1.8
%setup -q -n keepalived-vip
%define _default_patch_fuzz 5
GOBIN=$PWD/bin CGO_ENABLED=0 GOOS=linux go build -o keepalived-vip github.com/kubernetes/contrib/keepalived-vip/.
install -m755 $RPM_BUILD_DIR/keepalived-vip/keepalived-vip $RPM_BUILD_ROOT/keepalived-vip
install -m644 $RPM_BUILD_DIR/keepalived-vip/keepalived.tmpl $RPM_BUILD_ROOT/keepalived.tmpl
install -m644 $RPM_BUILD_DIR/keepalived-vip/keepalived.conf $RPM_BUILD_ROOT/keepalived.conf