Skip to content

Commit

Permalink
Merge pull request #25235 from lsm5/main-build-origin
Browse files Browse the repository at this point in the history
[skip-ci] RPM: set BUILD_ORIGIN
  • Loading branch information
openshift-merge-bot[bot] authored Feb 10, 2025
2 parents a475083 + 3c3baef commit 8bb1768
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rpm/podman.spec
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
# podman-machine subpackage will be present only on these architectures
%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
%if %{defined copr_build}
Epoch: 102
Expand Down Expand Up @@ -234,6 +240,7 @@ export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
export GOPROXY=direct

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._etcDir=%{_sysconfdir} \
-X %{ld_project}/pkg/systemd/quadlet._binDir=%{_bindir}"
Expand Down

0 comments on commit 8bb1768

Please sign in to comment.