RPM: Limit Epoch 102 to podman-next copr

Users of WSL images currently get podman from the copr rpm on the
release PR with Epoch: 102. This is a problem if the user is looking to
update the image with packages from official Fedora repos.

This commit limits Epoch: 102 to only the podman rpms on
rhcontainerbot/podman-next copr. All other rpms, including other copr
rpms, will use the default Epoch.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar
2025-06-06 08:25:32 -04:00
parent 746cbf12c9
commit 793242da8d

View File

@ -19,6 +19,9 @@
%if %{defined copr_username}
%define copr_build 1
%if "%{copr_username}" == "rhcontainerbot" && "%{copr_projectname}" == "podman-next"
%define next_build 1
%endif
%endif
# Only RHEL and CentOS Stream rpms are built with fips-enabled go compiler
@ -46,7 +49,7 @@
%endif
Name: podman
%if %{defined copr_build}
%if %{defined next_build}
Epoch: 102
%else
Epoch: 5