commit 9510998a6b61fa8dcd9214836333dc61b781cb7e
Author: Jose Pedro Oliveira <jpo(a)di.uminho.pt>
Date: Sun Oct 31 20:33:07 2010 +0000
* nagios-plugins-check-updates-1.4.7-1 import
.gitignore | 1 +
nagios-plugins-check-updates.spec | 66 +++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..91da565 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/check_updates-1.4.7.tar.gz
diff --git a/nagios-plugins-check-updates.spec b/nagios-plugins-check-updates.spec
new file mode 100644
index 0000000..64b34ec
--- /dev/null
+++ b/nagios-plugins-check-updates.spec
@@ -0,0 +1,66 @@
+%define plugin check_updates
+%define nagiospluginsdir %{_libdir}/nagios/plugins
+
+# No binaries in this package
+%define debug_package %{nil}
+
+Name: nagios-plugins-check-updates
+Version: 1.4.7
+Release: 1%{?dist}
+Summary: A Nagios plugin to check if Red Hat or Fedora system is up-to-date
+
+Group: Applications/System
+License: GPLv3+
+URL:
https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_updates
+Source:
https://trac.id.ethz.ch/projects/nagios_plugins/downloads/check_updates-%...
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: perl(ExtUtils::MakeMaker)
+
+Requires: nagios-plugins
+# Yum security plugin RPM:
+# Fedora : yum-plugin-security (also provides yum-security)
+# Red Hat Enterprise : yum-security
+Requires: yum-security
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n %{plugin}-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor \
+ INSTALLSCRIPT=%{nagiospluginsdir} \
+ INSTALLVENDORSCRIPT=%{nagiospluginsdir}
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -type f -name "*.pod" -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} %{buildroot}/*
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS Changes NEWS README TODO COPYING COPYRIGHT
+%{nagiospluginsdir}/*
+%{_mandir}/man1/*.1*
+
+
+%changelog
+* Thu Feb 18 2010 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.4.7-1
+- Update to 1.4.7.
+
+* Thu Dec 10 2009 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.4.6-1
+- First build for Fedora and EPEL.
+
+# vim:set ai ts=4 sw=4 sts=4 et:
diff --git a/sources b/sources
index e69de29..af55bab 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ccac4abb00050f13ae56eac8e71a3a3c check_updates-1.4.7.tar.gz