Fixed package dependencies.

- add missing dependencies and remove unnecessay one.
 - split coreutils into fileutils and textutils to support RHEL 2.x.
 - requires perl(Sys::Syslog) instead of using 'weak dependency' of perl-Sys-Syslog.
   perl(Foo::Bar) style should be used for perl module's dependency. see
   https://fedoraproject.org/wiki/Packaging:Perl?rd=Packaging/Perl#Perl_Requires_and_Provides

Tested on: centos 2.1, 3.1, 4.0, 5.0, 6.0, 7.2 for installation,
           centos 4.0 for package creation.
This commit is contained in:
KIKUCHI Koichiro 2016-02-05 23:22:27 +09:00
parent 257b6c4f2d
commit 03df2f8303
1 changed files with 9 additions and 4 deletions

View File

@ -18,8 +18,15 @@ Packager: Sancho Lerena <slerena@artica.es>
Prefix: /usr/share
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildArch: noarch
PreReq: /bin/sed /bin/grep /usr/sbin/useradd
Requires: coreutils unzip perl
Requires(pre): shadow-utils
Requires(post): chkconfig /bin/ln
Requires(preun): chkconfig /bin/rm /usr/sbin/userdel
Requires: fileutils textutils unzip
Requires: util-linux procps grep
Requires: /sbin/ip /bin/awk
Requires: perl perl(Sys::Syslog)
# Required by plugins
#Requires: sh-utils sed passwd net-tools rpm
AutoReq: 0
Provides: %{name}-%{version}
@ -98,8 +105,6 @@ if [ ! -d /var/log/pandora ]; then
fi
/sbin/chkconfig --add pandora_agent_daemon
/sbin/chkconfig pandora_agent_daemon on
echo "You may need to install manually some additional required dependencies:"
echo "perl-Sys-Syslog"
%preun