From 9d678629949e71e8db5ca152c10618afb339a75a Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Wed, 19 Aug 2020 06:44:16 -0600 Subject: [PATCH] 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 --- podman.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/podman.spec b/podman.spec index 28bd347..814c4f1 100644 --- a/podman.spec +++ b/podman.spec @@ -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