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 <lsm5@fedoraproject.org>
This commit is contained in:
parent
e21af3f8a8
commit
1a900d47ef
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user