Fix python2 requires for EPEL 7.

This commit is contained in:
Richard Shaw 2020-07-27 20:43:58 -05:00
commit 02a32ff76b

View file

@ -36,7 +36,7 @@ Patch8: https://github.com/fail2ban/fail2ban/commit/309c8dddd7adc2de140ed5a72088
BuildArch: noarch
%if 0%{?rhel} && 0%{?rhel} < 8
BuildRequires: python2-devel
BuildRequires: python-devel
# For testcases
BuildRequires: python-inotify
%else
@ -86,7 +86,7 @@ SELinux policies for Fail2Ban.
%package server
Summary: Core server component for Fail2Ban
%if 0%{?rhel} && 0%{?rhel} < 8
Requires: python2-systemd
Requires: python-systemd
%else
Requires: python3-systemd
%endif