Accepting request 680452 from devel:kubic

OBS-URL: https://build.opensuse.org/request/show/680452
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/buildah?expand=0&rev=14
This commit is contained in:
2019-03-01 15:49:50 +00:00
committed by Git OBS Bridge
parent 59e9efc7b1
commit 7c5ec8cdfc
5 changed files with 15 additions and 8 deletions

View File

@@ -16,14 +16,13 @@
#
%define commit 87239ae7046ea3a25f644cd0789b3d6678dc144d
%define project github.com/containers/buildah
# Build with libostree-devel in Tumbleweed, Leap 15 and SLES 15
%if 0%{?suse_version} >= 1500
%define with_libostree 1
%endif
Name: buildah
Version: 1.7
Version: 1.7.1
Release: 0
Summary: Tool for building OCI containers
License: Apache-2.0
@@ -92,7 +91,7 @@ export CNIVersion=`sed -e '\,github.com/containernetworking/cni, !d' -e 's,.* ,,
# Build buildah
go build -tags "$BUILDTAGS" \
-buildmode=pie \
-ldflags '-s -w -X main.gitCommit=%{commit} -X main.buildInfo='$SOURCE_DATE_EPOCH' -X main.cniVersion='$CNIVersion'' \
-ldflags '-s -w -X main.buildInfo='$SOURCE_DATE_EPOCH' -X main.cniVersion='$CNIVersion'' \
-o bin/buildah \
%{project}/cmd/buildah