Define 'buildInfo', to get timestamp in podman version
Weirdness that will probably haunt us one day: in the project source tree Makefile there's a "/v2" that doesn't work when we specify it in the specfile. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
41fafd2588
commit
9d67862994
@ -465,6 +465,10 @@ export BUILDTAGS="seccomp exclude_graphdriver_devicemapper $(hack/btrfs_installe
|
|||||||
%if 0%{?centos}
|
%if 0%{?centos}
|
||||||
export BUILDTAGS+=" containers_image_ostree_stub"
|
export BUILDTAGS+=" containers_image_ostree_stub"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# build date. FIXME: Makefile uses '/v2/libpod', that doesn't work here?
|
||||||
|
LDFLAGS="-X %{import_path}/libpod/define.buildInfo=$(date +%s)"
|
||||||
|
|
||||||
%gobuild -o bin/%{name} %{import_path}/cmd/%{name}
|
%gobuild -o bin/%{name} %{import_path}/cmd/%{name}
|
||||||
|
|
||||||
# build %%{name}-remote
|
# build %%{name}-remote
|
||||||
|
Loading…
Reference in New Issue
Block a user