From ceef4fd06369fbbd50ad0c2f37ef86e9030aec93 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Tue, 7 May 2024 13:07:02 -0400 Subject: [PATCH] [skip-ci] RPM: bats requirement only on Fedora The bats package is not available on RHEL. It's in Fedora and EPEL. Having bats as a requirement for the `skopeo-tests` subpackage will cause installibility test failures for RHEL 10 / C10S gating tests. This commit makes `bats` a requirement only on Fedora. RHEL and CentOS Stream gating will need to fetch bats through separately enabling EPEL or other means. Podman PR with similar change: https://github.com/containers/podman/pull/22632 Signed-off-by: Lokesh Mandvekar --- rpm/skopeo.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpm/skopeo.spec b/rpm/skopeo.spec index f363f9ec3e..e7a5f4b02a 100644 --- a/rpm/skopeo.spec +++ b/rpm/skopeo.spec @@ -81,7 +81,9 @@ registries without the need to pull them Summary: Tests for %{name} Requires: %{name} = %{epoch}:%{version}-%{release} +%if %{defined fedora} Requires: bats +%endif Requires: gnupg Requires: jq Requires: golang