I'm trying to create an RPM (redhat) package to install nagios on a redhat system. Everything goes well but when I try to install the package I get
Failed dependencies:
perl (Net::SNMP) is needed by nagios-1-1.x86_64
I don't even know why it requires this, it doesn't look to be a necessary package to me. Anyone who had this problem before?
Here is the .spec
%define debug_package %{nil}
%define _prefix /usr/local/nagios
Summary: Nagios blabla
Name: nagios
Version: 1
Release: 1
License: PROPRIETARY
Group: Applications/Accessories
Source: nagios-1.tar.gz
Packager: Nicholas Lievens <lievens.nicholas@gmail.com>
Requires: gcc gcc-c++ glibc glibc-common glibc-devel gd gd-devel php53 php53-cli php53-mysql php53-gd php53-pdo graphviz httpd libdbi-dbd-mysql libdbi-devel mysql mysql-server mysql-devel git
%description
Nagios!
%prep
%setup
%build
make all
%install
make install
make install-init
make install-config
make install-commandmode
make install-webconf
make install-devel
htpasswd -b -c /usr/local/nagios/etc/htpasswd.user nagiosadmin nagiosadmin
%files
%{_prefix}/var
%{_prefix}/var/spool/checkresults
%{_prefix}/etc
%{_prefix}/bin
%{_prefix}/sbin
%{_prefix}/libexec
%{_prefix}/lib
%{_prefix}/include/nagios
%{_prefix}/share