Adjusted requirements for commons

refs https://github.com/Icinga/icinga2/issues/5442
This commit is contained in:
Dirk Goetz 2017-07-31 16:52:10 +02:00
parent b9a47223e1
commit a7fdcaaa72
1 changed files with 9 additions and 4 deletions

View File

@ -150,11 +150,16 @@ Provides binaries for Icinga 2 Core.
%package common
Summary: Common Icinga 2 configuration
Group: Applications/System
%{?amzn:Requires(pre): shadow-utils}
%{?fedora:Requires(pre): shadow-utils}
%{?rhel:Requires(pre): shadow-utils}
%{?suse_version:Requires(pre): pwdutils}
%if (0%{?amzn} || 0%{?fedora} || 0%{?rhel})
Requires(pre): shadow-utils
Requires(post): shadow-utils
%endif
%if "%{_vendor}" == "suse"
Requires(pre): shadow
Requires(post): shadow
# Coreutils is added because of autoyast problems reported
Requires(pre): coreutils
Requires(post): coreutils
Recommends: logrotate
%endif