exclude shorewall subpackage on epel9 (rhbz#2217649)

The shorewall package is not present in epel9.
i9ce
Todd Zullinger 2 years ago
parent aeb9ac0019
commit 808902b9a9

@ -1,6 +1,12 @@
%if 0%{?rhel} >= 9
%bcond_with shorewall
%else
%bcond_without shorewall
%endif
Name: fail2ban Name: fail2ban
Version: 1.0.2 Version: 1.0.2
Release: 6%{?dist} Release: 7%{?dist}
Summary: Daemon to ban hosts that cause multiple authentication errors Summary: Daemon to ban hosts that cause multiple authentication errors
License: GPLv2+ License: GPLv2+
@ -120,7 +126,9 @@ Requires: %{name}-hostsdeny = %{version}-%{release}
Requires: %{name}-mail = %{version}-%{release} Requires: %{name}-mail = %{version}-%{release}
Requires: %{name}-sendmail = %{version}-%{release} Requires: %{name}-sendmail = %{version}-%{release}
Requires: %{name}-server = %{version}-%{release} Requires: %{name}-server = %{version}-%{release}
%if %{with shorewall}
Requires: %{name}-shorewall = %{version}-%{release} Requires: %{name}-shorewall = %{version}-%{release}
%endif
# Currently this breaks jails that don't log to the journal # Currently this breaks jails that don't log to the journal
#Requires: %{name}-systemd = %{version}-%{release} #Requires: %{name}-systemd = %{version}-%{release}
Requires: perl-interpreter Requires: perl-interpreter
@ -186,6 +194,7 @@ This package installs Fail2Ban's sendmail actions. This is the default
mail actions for Fail2Ban. mail actions for Fail2Ban.
%if %{with shorewall}
%package shorewall %package shorewall
Summary: Shorewall support for Fail2Ban Summary: Shorewall support for Fail2Ban
Requires: %{name}-server = %{version}-%{release} Requires: %{name}-server = %{version}-%{release}
@ -204,6 +213,7 @@ Conflicts: %{name}-shorewall
%description shorewall-lite %description shorewall-lite
This package enables support for manipulating shorewall rules. This package enables support for manipulating shorewall rules.
%endif
%package systemd %package systemd
@ -411,17 +421,22 @@ fi
%files sendmail %files sendmail
%config(noreplace) %{_sysconfdir}/fail2ban/action.d/sendmail-*.conf %config(noreplace) %{_sysconfdir}/fail2ban/action.d/sendmail-*.conf
%if %{with shorewall}
%files shorewall %files shorewall
%config(noreplace) %{_sysconfdir}/fail2ban/action.d/shorewall.conf %config(noreplace) %{_sysconfdir}/fail2ban/action.d/shorewall.conf
%files shorewall-lite %files shorewall-lite
%config(noreplace) %{_sysconfdir}/fail2ban/action.d/shorewall.conf %config(noreplace) %{_sysconfdir}/fail2ban/action.d/shorewall.conf
%endif
%files systemd %files systemd
%config(noreplace) %{_sysconfdir}/fail2ban/jail.d/00-systemd.conf %config(noreplace) %{_sysconfdir}/fail2ban/jail.d/00-systemd.conf
%changelog %changelog
* Mon Jun 26 2023 Todd Zullinger <tmz@pobox.com> - 1.0.2-7
- exclude shorewall subpackage on epel9 (rhbz#2217649)
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.0.2-6 * Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.0.2-6
- Rebuilt for Python 3.12 - Rebuilt for Python 3.12

Loading…
Cancel
Save