Dominique Leuenberger 2018-11-13 16:03:17 +00:00 committed by Git OBS Bridge
commit a778a942e8
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Nov 13 07:50:12 UTC 2018 - Valentin Rothberg <vrothberg@suse.com>
- crictl/critest: compile version
- Require golang >= 1.10.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 2 07:30:42 UTC 2018 - Valentin Rothberg <vrothberg@suse.com> Tue Oct 2 07:30:42 UTC 2018 - Valentin Rothberg <vrothberg@suse.com>

View File

@ -28,7 +28,7 @@ Source0: %{name}-%{version}.tar.xz
Source1: crictl.yaml Source1: crictl.yaml
BuildRequires: go-go-md2man BuildRequires: go-go-md2man
BuildRequires: golang-packaging BuildRequires: golang-packaging
BuildRequires: golang(API) >= 1.9 BuildRequires: golang(API) >= 1.10
# disable stripping of binaries # disable stripping of binaries
%{go_nostrip} %{go_nostrip}
@ -50,10 +50,12 @@ cd $HOME/go/src/%{project}
go build -buildmode=pie \ go build -buildmode=pie \
-o bin/crictl \ -o bin/crictl \
-ldflags '-X %{project}/pkg/version.Version=%{version}' \
%{project}/cmd/crictl %{project}/cmd/crictl
go test -buildmode=pie \ go test -buildmode=pie \
-o bin/critest \ -o bin/critest \
-ldflags '-X %{project}/pkg/version.Version=%{version}' \
-c %{project}/cmd/critest -c %{project}/cmd/critest
# compile the manpages # compile the manpages