Code

pst3.c must not use nagiosplug/gnulib includes
[nagiosplug.git] / nagios-plugins.spec.in
1 Name: nagios-plugins
2 Version: %%{VERSION}
3 Release: %%{RELEASE}
4 Summary: Host/service/network monitoring program plugins for Nagios
6 Group: Applications/System
7 License: GPL
8 URL: http://nagiosplug.sourceforge.net/
9 Source0: http://dl.sf.net/sourceforge/nagiosplug/%{name}-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12 Prefix: %{_prefix}/lib/nagios/plugins
13 Packager: Karl DeBisschop <kdebisschop@users.sourceforge.net>
14 Vendor: Nagios Plugin Development Group
15 Provides: nagios-plugins
17 %{!?custom:%global custom 0}
18 Obsoletes: nagios-plugins-custom nagios-plugins-extras
21 # Requires
24 %description
26 Nagios is a program that will monitor hosts and services on your
27 network, and to email or page you when a problem arises or is
28 resolved. Nagios runs on a unix server as a background or daemon
29 process, intermittently running checks on various services that you
30 specify. The actual service checks are performed by separate "plugin"
31 programs which return the status of the checks to Nagios. This package
32 contains those plugins.
35 %prep
36 %setup -q
39 %build
40 ./configure \
41 --prefix=%{_prefix} \
42 --exec-prefix=%{_exec_prefix} \
43 --libexecdir=%{_exec_prefix}/lib/nagios/plugins \
44 --sysconfdir=%{_sysconfdir}/nagios \
45 --datadir=%{_datadir} \
46 --with-cgiurl=/nagios/cgi-bin
47 make %{?_smp_mflags}
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 make AM_INSTALL_PROGRAM_FLAGS="" DESTDIR=${RPM_BUILD_ROOT} install
53 install -d ${RPM_BUILD_ROOT}/etc/nagios
54 install -m 664 command.cfg ${RPM_BUILD_ROOT}/etc/nagios
55 %find_lang %{name}
58 %clean
59 rm -rf $RPM_BUILD_ROOT
62 %files -f %{name}.lang
63 %defattr(-,root,root)
64 %config(missingok,noreplace) /etc/nagios/command.cfg
65 %doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT THANKS
66 %doc ChangeLog command.cfg
67 %defattr(775,root,root)
68 %dir %{_exec_prefix}/lib/nagios/plugins
69 %{_datadir}/locale/de/LC_MESSAGES/nagios-plugins.mo
70 %{_datadir}/locale/fr/LC_MESSAGES/nagios-plugins.mo
71 %{_exec_prefix}/lib/nagios/plugins
73 %changelog
74 * Mon May 23 2005 Sean Finney <seanius@seanius.net> - cvs head
75 - just include the nagios plugins directory, which will automatically include
76   all generated plugins (which keeps the build from failing on systems that
77   don't have all build-dependencies for every plugin)
78 * Tue Mar 04 2004 Karl DeBisschop <karl[AT]debisschop.net> - 1.4.0alpha1
79 - extensive rewrite to facilitate processing into various distro-compatible specs
80 * Tue Mar 04 2004 Karl DeBisschop <karl[AT]debisschop.net> - 1.4.0alpha1
81 - extensive rewrite to facilitate processing into various distro-compatible specs