Use %{systemd_requires} macro

This commit is contained in:
Carl George 2018-07-08 19:02:33 -05:00
parent a85dc12a36
commit 74ad15ed91

View File

@ -229,9 +229,7 @@ Obsoletes: uwsgi-plugin-admin <= 2.0.6
Requires(pre): shadow-utils
%if %{with systemd}
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%{?systemd_requires}
%else
Requires(post): chkconfig
Requires(preun): chkconfig