mirror of https://github.com/containers/podman.git
Merge pull request #25235 from lsm5/main-build-origin
[skip-ci] RPM: set BUILD_ORIGIN
This commit is contained in:
commit
8bb1768b72
|
@ -37,6 +37,12 @@
|
||||||
# podman-machine subpackage will be present only on these architectures
|
# podman-machine subpackage will be present only on these architectures
|
||||||
%global machine_arches x86_64 aarch64
|
%global machine_arches x86_64 aarch64
|
||||||
|
|
||||||
|
%if %{defined copr_build}
|
||||||
|
%define build_origin Copr: %{?copr_username}/%{?copr_projectname}
|
||||||
|
%else
|
||||||
|
%define build_origin %{?packager}
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: podman
|
Name: podman
|
||||||
%if %{defined copr_build}
|
%if %{defined copr_build}
|
||||||
Epoch: 102
|
Epoch: 102
|
||||||
|
@ -234,6 +240,7 @@ export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
|
||||||
export GOPROXY=direct
|
export GOPROXY=direct
|
||||||
|
|
||||||
LDFLAGS="-X %{ld_libpod}/define.buildInfo=${SOURCE_DATE_EPOCH:-$(date +%s)} \
|
LDFLAGS="-X %{ld_libpod}/define.buildInfo=${SOURCE_DATE_EPOCH:-$(date +%s)} \
|
||||||
|
-X \"%{ld_libpod}/define.buildOrigin=%{build_origin}\" \
|
||||||
-X %{ld_libpod}/config._installPrefix=%{_prefix} \
|
-X %{ld_libpod}/config._installPrefix=%{_prefix} \
|
||||||
-X %{ld_libpod}/config._etcDir=%{_sysconfdir} \
|
-X %{ld_libpod}/config._etcDir=%{_sysconfdir} \
|
||||||
-X %{ld_project}/pkg/systemd/quadlet._binDir=%{_bindir}"
|
-X %{ld_project}/pkg/systemd/quadlet._binDir=%{_bindir}"
|
||||||
|
|
Loading…
Reference in New Issue