From d94388bb16212d9063fdb4fcfc0ec3e05cfd8f6b Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 29 Mar 2023 18:17:35 -0600 Subject: [PATCH] Fix selinux requires for EPEL7/8 --- fail2ban.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fail2ban.spec b/fail2ban.spec index 108f1c9..4814fb2 100644 --- a/fail2ban.spec +++ b/fail2ban.spec @@ -89,9 +89,10 @@ Requires: nftables Requires(post): systemd Requires(preun): systemd Requires(postun): systemd - -%if 0%{?fedora} || 0%{?rhel} >= 9 +%if 0%{?fedora} || 0%{?rhel} >= 8 Requires: (%{name}-selinux if selinux-policy-%{selinuxtype}) +%else +Requires: %{name}-selinux %endif %description server