diff options
-rw-r--r-- | nagios-plugins.spec.in | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/nagios-plugins.spec.in b/nagios-plugins.spec.in index 2431f35..0fafb00 100644 --- a/nagios-plugins.spec.in +++ b/nagios-plugins.spec.in | |||
@@ -21,6 +21,7 @@ BuildRoot: %{_tmppath}/%{name}-buildroot | |||
21 | Prefix: %{_prefix}/lib/nagios/plugins | 21 | Prefix: %{_prefix}/lib/nagios/plugins |
22 | Packager: Karl DeBisschop <kdebisschop@users.sourceforge.net> | 22 | Packager: Karl DeBisschop <kdebisschop@users.sourceforge.net> |
23 | Vendor: Nagios Plugin Development Group | 23 | Vendor: Nagios Plugin Development Group |
24 | Provides: nagios-plugins | ||
24 | %if %custom | 25 | %if %custom |
25 | Obsoletes: nagios-plugins nagios-plugins-extras | 26 | Obsoletes: nagios-plugins nagios-plugins-extras |
26 | %else | 27 | %else |
@@ -30,6 +31,13 @@ AutoReqProv: no | |||
30 | Summary: Host/service/network monitoring program plugins for Nagios | 31 | Summary: Host/service/network monitoring program plugins for Nagios |
31 | Group: Applications/System | 32 | Group: Applications/System |
32 | 33 | ||
34 | #BuildRequires: nagios-devel | ||
35 | #BuildRequires: postgresql-devel, openssl-devel, bind-devel, openldap-devel, mysql-devel | ||
36 | #BuildRequires: perl(Net::SNMP), %{?rh73:, ucd-snmp-devel} %{?rh80:, net-snmp-devel} %{?rh90:, net-snmp-devel} | ||
37 | #BuildRequires: fping, bind-utils, ntp, samba-client, openssh-clients, radiusclient-devel | ||
38 | #BuildRequires: qstat | ||
39 | |||
40 | #Requires: perl, perl(Net::SNMP), openssl | ||
33 | 41 | ||
34 | %description | 42 | %description |
35 | 43 | ||
@@ -62,6 +70,8 @@ This package contains plugins which use additional libraries or system | |||
62 | calls that are not installed on all systems. As a result, most users | 70 | calls that are not installed on all systems. As a result, most users |
63 | will need to install the '--nodeps' option when invoking `rpm` | 71 | will need to install the '--nodeps' option when invoking `rpm` |
64 | 72 | ||
73 | #Requires: fping, openldap, mysql, postgresql-libs | ||
74 | |||
65 | 75 | ||
66 | %prep | 76 | %prep |
67 | %setup -q -n %{source} | 77 | %setup -q -n %{source} |
@@ -75,7 +85,7 @@ CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ | |||
75 | --sysconfdir=%{_sysconfdir}/nagios \ | 85 | --sysconfdir=%{_sysconfdir}/nagios \ |
76 | --datadir=%{_datadir} \ | 86 | --datadir=%{_datadir} \ |
77 | --with-cgiurl=/nagios/cgi-bin | 87 | --with-cgiurl=/nagios/cgi-bin |
78 | make | 88 | make |
79 | 89 | ||
80 | 90 | ||
81 | %install | 91 | %install |
@@ -90,7 +100,7 @@ rm -rf $RPM_BUILD_ROOT | |||
90 | %files | 100 | %files |
91 | %defattr(-,root,root) | 101 | %defattr(-,root,root) |
92 | %config(missingok,noreplace) /etc/nagios/command.cfg | 102 | %config(missingok,noreplace) /etc/nagios/command.cfg |
93 | %doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT | 103 | %doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT THANKS |
94 | %doc ChangeLog command.cfg | 104 | %doc ChangeLog command.cfg |
95 | %defattr(775,root,root) | 105 | %defattr(775,root,root) |
96 | %dir %{_exec_prefix}/lib/nagios/plugins | 106 | %dir %{_exec_prefix}/lib/nagios/plugins |