From 822bc3cbd3b12cc3a0230dd1c354fa04d7ab039f Mon Sep 17 00:00:00 2001 From: Jan Kolarik Date: Fri, 14 Feb 2025 08:42:02 +0000 Subject: [PATCH] expired-pgp-keys: Recommend the plugin only if gpg is already installed Since the gnupg2 package is a large binary (around 10MB), it would be preferable to install the plugin only on systems where gpg command is already present. --- dnf5.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnf5.spec b/dnf5.spec index c1f7b19cd..9cd8ebee5 100644 --- a/dnf5.spec +++ b/dnf5.spec @@ -22,7 +22,7 @@ Recommends: (dnf5-plugins if dnf-plugins-core) Recommends: bash-completion Requires: coreutils %if 0%{?fedora} > 41 -Recommends: libdnf5-plugin-expired-pgp-keys +Recommends: (libdnf5-plugin-expired-pgp-keys if gnupg2) %endif %if 0%{?fedora} || 0%{?rhel} > 10