From 1a900d47ef9d05d11aa282310ffc49f87a70a6dd Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Sun, 8 Jun 2025 14:08:41 -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-80817 Signed-off-by: Lokesh Mandvekar --- podman.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/podman.spec b/podman.spec index 78f7b32..6341a15 100644 --- a/podman.spec +++ b/podman.spec @@ -80,11 +80,14 @@ Source0: https://%{import_path}/archive/%{commit0}/%{name}-%{version}-%{shortcom # TODO: remove these after https://github.com/containers/podman/pull/26183 # is merged +# Not needed on upstream PR copr builds +%if !%{defined copr_build} Source1: 220-healthcheck.bats Source2: 252-quadlet.bats Source3: 255-auto-update.bats Source4: 520-checkpoint.bats Source5: helpers.bash +%endif Provides: %{name}-manpages = %{epoch}:%{version}-%{release} BuildRequires: %{_bindir}/envsubst @@ -237,11 +240,13 @@ sed -i 's;@@PODMAN@@\;$(BINDIR);@@PODMAN@@\;%{_bindir};' Makefile sed -i '/DELETE ON RHEL9/,/DELETE ON RHEL9/d' libpod/runtime.go %endif +%if !%{defined copr_build} cp %{SOURCE1} test/system/. cp %{SOURCE2} test/system/. cp %{SOURCE3} test/system/. cp %{SOURCE4} test/system/. cp %{SOURCE5} test/system/. +%endif # These changes are only meant for copr builds %if %{defined copr_build}