From 793242da8dfc0010c4f2b6db451f1cc307a19fa0 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Fri, 6 Jun 2025 08:25:32 -0400 Subject: [PATCH] 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 --- rpm/podman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpm/podman.spec b/rpm/podman.spec index 1f9d821158..a717907c21 100644 --- a/rpm/podman.spec +++ b/rpm/podman.spec @@ -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