File nagios-plugins-glexec.spec of Package nagios-plugins-glexec
Summary: Nagios plugin for gLExec worker node
Name: nagios-plugins-glexec
Version: 0.3.2
Release: 1%{?dist}
License: Apache-2.0
Group: System/Monitoring
URL: http://wiki.nikhef.nl/grid/Site_Access_Control
Source0: http://software.nikhef.nl/security/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
Requires: glexec
# Next package owns the nagios plugins directory
BuildRequires: nagios-plugins-common
%if 0%{?suse_version} < 1500
%define nagios_libdir %{_prefix}/lib/nagios
%define nagios_plugindir %{_prefix}/lib/nagios/plugins
%else
BuildRequires: nagios-rpm-macros
%endif
%define debug_package %{nil}
%description
This package provides a plugin for Nagios to check the proper working of gLExec.
It is designed to run on the same machine where gLExec is installed.
%prep
%setup -q
%build
%configure --libexecdir=%{nagios_plugindir}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE
%dir %{nagios_libdir}
%{nagios_plugindir}/check_glexec
%{_datadir}/man/man8/check_glexec.8*
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Jan 15 2013 Mischa Salle <msalle@nikhef.nl> 0.3.2-1
- Update version.
* Sun Oct 28 2012 Mischa Salle <msalle@nikhef.nl> 0.3.1-1
- Remove Vendor tag.
- Install AUTHORS and LICENSE as documentation.
- Update description.
- Add requirement on nagios-plugins.
- Add manpage.
- Update URL.
- Update version.
* Tue Mar 27 2012 Mischa Salle <msalle@nikhef.nl> 0.3.0-2
- Make source into URL
* Fri Mar 23 2012 Mischa Salle <msalle@nikhef.nl> 0.3.0-1
- Initial RPM version.