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:
Ed Santiago 2020-08-19 06:44:16 -06:00
parent 41fafd2588
commit 9d67862994

View File

@ -465,6 +465,10 @@ export BUILDTAGS="seccomp exclude_graphdriver_devicemapper $(hack/btrfs_installe
%if 0%{?centos}
export BUILDTAGS+=" containers_image_ostree_stub"
%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}
# build %%{name}-remote