Fixed package dependencies.

- Requires perl(HTML::Entities).
 - Remove perl-Socket6 dependency, not directly used in Pandroa FMS.
   (It's required by and installed as dependency of perl-IO-Socket-INET6 )
 - Requires perl(Sys::Syslog) instead of using 'weak dependency' of perl-Sys-Syslog.
 - Replace all perl package dependencies by perl(Foo::Bar) style.
   (for more rhel compliant manner)

  Tested on: 6.0, 7.2
This commit is contained in:
KIKUCHI Koichiro 2016-02-26 23:26:08 +09:00
parent fcb98912d8
commit 1a084c1b38
1 changed files with 9 additions and 10 deletions

View File

@ -18,17 +18,19 @@ Packager: Sancho Lerena <slerena@artica.es>
Prefix: %{_datadir} Prefix: %{_datadir}
BuildRoot: %{_tmppath}/%{name}-buildroot BuildRoot: %{_tmppath}/%{name}-buildroot
BuildArchitectures: noarch BuildArchitectures: noarch
Prereq: /sbin/chkconfig, /sbin/service
AutoReq: 0 AutoReq: 0
Provides: %{name}-%{version} Provides: %{name}-%{version}
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires(post,preun): /sbin/chkconfig /sbin/service
Requires: coreutils Requires: coreutils
Requires: perl-DBI perl-DBD-mysql perl-libwww-perl Requires: perl(DBI) perl(DBD::mysql)
Requires: perl-XML-Simple perl-XML-Twig net-snmp-utils Requires: perl(HTTP::Request::Common) perl(LWP::Simple) perl(LWP::UserAgent)
Requires: perl-NetAddr-IP net-snmp net-tools Requires: perl(XML::Simple) perl(XML::Twig) net-snmp-utils
Requires: perl-IO-Socket-INET6 perl-Socket6 perl-Net-Telnet Requires: perl(NetAddr::IP) net-snmp net-tools
Requires: nmap wmic sudo perl-JSON Requires: perl(IO::Socket::INET6) perl(Net::Telnet)
Requires: perl-Time-HiRes perl-Encode-Locale Requires: nmap wmic sudo perl(JSON)
Requires: perl(Time::HiRes) perl(Encode::Locale)
Requires: perl perl(Sys::Syslog) perl(HTML::Entities)
%description %description
Pandora FMS is a monitoring system for big IT environments. It uses remote tests, or local agents to grab information. Pandora supports all standard OS (Linux, AIX, HP-UX, Solaris and Windows XP,2000/2003), and support multiple setups in HA enviroments. Pandora FMS is a monitoring system for big IT environments. It uses remote tests, or local agents to grab information. Pandora supports all standard OS (Linux, AIX, HP-UX, Solaris and Windows XP,2000/2003), and support multiple setups in HA enviroments.
@ -131,9 +133,6 @@ fi
echo "Don't forget to start Tentacle Server daemon if you want to receive" echo "Don't forget to start Tentacle Server daemon if you want to receive"
echo "data using tentacle" echo "data using tentacle"
echo " "
echo "You may need to install manually some additional required dependencies:"
echo "perl-Sys-Syslog"
%preun %preun