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