From a98dedf1b4b129fd0549bc3de808f80fa9927304 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Sun, 8 Jun 2025 14:05:08 -0400 Subject: [PATCH] Do not use certain source files for upstream copr builds Additional source files are added in dist-git for gating tests, these re not needed in copr builds on upstream RHEL branch PRs. So, this commit conditionalizes them accordingly. Related: RHEL-80816 Signed-off-by: Lokesh Mandvekar --- podman.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/podman.spec b/podman.spec index dab5a08..88a4760 100644 --- a/podman.spec +++ b/podman.spec @@ -29,11 +29,14 @@ Source2: https://github.com/containers/dnsname/archive/%{commit_dnsname}/dnsname # https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures # NOTE: Delete these sources after # https://github.com/containers/podman/pull/26183 merges +# Not needed for copr builds on upstream PRs +%if !%{defined copr_username} Source3: 220-healthcheck.bats Source4: 252-quadlet.bats Source5: 255-auto-update.bats Source6: 520-checkpoint.bats Source7: helpers.bash +%endif ExclusiveArch: %{go_arches} Provides: %{name}-manpages = %{epoch}:%{version}-%{release} Obsoletes: %{name}-manpages < %{epoch}:%{version}-%{release} @@ -167,11 +170,13 @@ sed -i '$d' configure.ac popd tar fx %{SOURCE2} +%if !%{defined copr_username} cp %{SOURCE3} test/system/. cp %{SOURCE4} test/system/. cp %{SOURCE5} test/system/. cp %{SOURCE6} test/system/. cp %{SOURCE7} test/system/. +%endif # cgroups-v1 is supported on rhel9 %if 0%{?rhel} == 9