From 654c3fcc9ca7a5a81f7981d8a5bafbc2b83a57c1 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Thu, 12 Jun 2025 15:49:49 -0400 Subject: [PATCH] RPM: make bats a weak dep bats isn't present on RHEL, CentOS Stream and ELN. Ref: https://github.com/containers/skopeo/commit/f88186e688aad62de716ad0f70d00bf9b440d29d#r159874060 Signed-off-by: Lokesh Mandvekar --- rpm/skopeo.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpm/skopeo.spec b/rpm/skopeo.spec index 4c2347f2..9cb94dfb 100644 --- a/rpm/skopeo.spec +++ b/rpm/skopeo.spec @@ -79,7 +79,6 @@ registries without the need to pull them Summary: Tests for %{name} Requires: %{name} = %{epoch}:%{version}-%{release} -Requires: bats %if %{defined fakeroot} Requires: fakeroot %endif @@ -91,6 +90,8 @@ Requires: crun Requires: httpd-tools Requires: openssl Requires: squashfs-tools +# bats is not present on RHEL and ELN so it shouldn't be a strong dep +Recommends: bats %description tests %{summary}