1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-13 22:13:44 +01:00
nagios-plugins/check_yum/trunk/nagios-okplugin-check_yum.spec

44 lines
1.1 KiB
RPMSpec
Raw Normal View History

2010-09-15 02:43:26 +02:00
%define debug_package %{nil}
Summary: Nagios plugin to test for Yum updates on RedHat/CentOS Linux.
Name: nagios-okplugin-check_yum
2011-11-21 15:34:49 +01:00
Version: 0.7.2
2011-11-21 15:31:53 +01:00
Release: 2%{?dist}
2010-09-15 02:43:26 +02:00
License: GPLv2+
Group: Applications/System
URL: http://opensource.is/trac/wiki/check_yum
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_yum/releases/nagios-okplugin-check_yum-%{version}.tar.gz
Requires: yum-security
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Packager: Pall Sigurdsson <palli@opensource.is>
2012-01-19 00:02:33 +01:00
BuildArch: noarch
2010-09-15 02:43:26 +02:00
%description
Nagios plugin to test for Yum updates on RedHat/CentOS Linux.
%prep
%setup -q
2010-11-26 01:40:08 +01:00
perl -pi -e "s|/usr/lib/|%{_libdir}/|g" nrpe.d/check_yum.cfg
perl -pi -e "s|/usr/lib64/|%{_libdir}/|g" nrpe.d/check_yum.cfg
2010-09-15 02:43:26 +02:00
%build
%install
rm -rf %{buildroot}
install -D -p -m 0755 check_yum %{buildroot}%{_libdir}/nagios/plugins/check_yum
install -D -p -m 0755 nrpe.d/check_yum.cfg %{buildroot}/etc/nrpe.d/check_yum.cfg
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_libdir}/nagios/plugins/*
/etc/nrpe.d/check_yum.cfg
%changelog
* Mon Sep 14 2010 Pall Sigurdsson <palli@opensource.is> 0.1-1
- Initial packaging