Notification time stamped 2023-03-31 22:34:04 UTC
From d94388bb16212d9063fdb4fcfc0ec3e05cfd8f6b Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion(a)nwra.com>
Date: Mar 30 2023 00:17:35 +0000
Subject: Fix selinux requires for EPEL7/8
---
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
https://src.fedoraproject.org/rpms/fail2ban/c/d94388bb16212d9063fdb4fcfc0...