rpm: Fix shadow-utils requirement on SUSE

This commit is contained in:
Eric Lippmann 2015-01-30 13:18:29 +01:00
parent e8619686ae
commit 9dd179d8f3
1 changed files with 16 additions and 12 deletions

View File

@ -29,7 +29,6 @@ Packager: Icinga Team <info@icinga.org>
%endif %endif
%endif %endif
%if 0%{?suse_version} %if 0%{?suse_version}
%define wwwconfigdir %{_sysconfdir}/apache2/conf.d %define wwwconfigdir %{_sysconfdir}/apache2/conf.d
%define wwwuser wwwrun %define wwwuser wwwrun
@ -43,15 +42,17 @@ Requires: apache2-mod_php5
%endif %endif
%endif %endif
Requires(pre): shadow-utils %{?fedora:Requires(pre): shadow-utils}
Requires: %{name}-common = %{version}-%{release} %{?rhel:Requires(pre): shadow-utils}
Requires: php-Icinga = %{version}-%{release} %{?suse_version:Requires(pre): pwdutils}
Requires: %{name}-vendor-dompdf Requires: %{name}-common = %{version}-%{release}
Requires: %{name}-vendor-HTMLPurifier Requires: php-Icinga = %{version}-%{release}
Requires: %{name}-vendor-JShrink Requires: %{name}-vendor-dompdf
Requires: %{name}-vendor-lessphp Requires: %{name}-vendor-HTMLPurifier
Requires: %{name}-vendor-Parsedown Requires: %{name}-vendor-JShrink
Requires: %{zend} Requires: %{name}-vendor-lessphp
Requires: %{name}-vendor-Parsedown
Requires: %{zend}
%description %description
@ -68,8 +69,11 @@ Icinga Web 2
%package common %package common
Summary: Common files for Icinga Web 2 and the Icinga CLI Summary: Common files for Icinga Web 2 and the Icinga CLI
Group: Applications/System Group: Applications/System
%{?fedora:Requires(pre): shadow-utils}
%{?rhel:Requires(pre): shadow-utils}
%{?suse_version:Requires(pre): pwdutils}
%description common %description common
Common files for Icinga Web 2 and the Icinga CLI Common files for Icinga Web 2 and the Icinga CLI