redhat: don't Requires initscript on systemd based distros

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
This commit is contained in:
Ruben Kerkhof 2018-06-20 15:27:10 +02:00
parent 772d418a8b
commit ec59a1559c

View File

@ -155,7 +155,6 @@ BuildRequires: python27-devel python27-sphinx
%else
BuildRequires: python-devel >= 2.7 python-sphinx
%endif
Requires: initscripts
%if %{with_pam}
BuildRequires: pam-devel
%endif
@ -172,6 +171,7 @@ Requires(post): chkconfig
Requires(preun): chkconfig
# Initscripts > 5.60 is required for IPv6 support
Requires(pre): initscripts >= 5.60
Requires: initscripts
%endif
Provides: routingdaemon = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root