Jose Pedro Oliveira 951099
%define plugin check_updates
Jose Pedro Oliveira 951099
%define nagiospluginsdir %{_libdir}/nagios/plugins
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
# No binaries in this package
Jose Pedro Oliveira 951099
%define debug_package %{nil}
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
Name:          nagios-plugins-check-updates
Jose Pedro Oliveira 72a4f0
Version:       1.6.3
Jose Pedro Oliveira 382aba
Release:       1%{?dist}
Jose Pedro Oliveira 951099
Summary:       A Nagios plugin to check if Red Hat or Fedora system is up-to-date
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
Group:         Applications/System
Jose Pedro Oliveira 951099
License:       GPLv3+
Jose Pedro Oliveira 951099
URL:           https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_updates
Jose Pedro Oliveira 951099
Source:        https://trac.id.ethz.ch/projects/nagios_plugins/downloads/check_updates-%{version}.tar.gz
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
BuildRequires: perl(ExtUtils::MakeMaker)
Jose Pedro Oliveira 382aba
BuildRequires: perl(Test::More)
Jose Pedro Oliveira 382aba
BuildRequires: perl(Nagios::Plugin)
Jose Pedro Oliveira 382aba
BuildRequires: perl(Readonly)
Jose Pedro Oliveira 382aba
BuildRequires: perl(Sort::Versions)
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
Requires:      nagios-plugins
Jose Pedro Oliveira 951099
# Yum security plugin RPM:
Jose Pedro Oliveira 951099
#    Fedora             : yum-plugin-security (also provides yum-security)
Jose Pedro Oliveira 951099
#    Red Hat Enterprise : yum-security
Jose Pedro Oliveira 951099
Requires:      yum-security
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 29524b
Obsoletes:     check_updates
Jose Pedro Oliveira 29524b
Jose Pedro Oliveira 951099
%description
Jose Pedro Oliveira 951099
%{summary}.
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
%prep
Jose Pedro Oliveira 951099
%setup -q -n %{plugin}-%{version}
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
%build
Jose Pedro Oliveira 951099
%{__perl} Makefile.PL INSTALLDIRS=vendor \
Jose Pedro Oliveira 951099
    INSTALLSCRIPT=%{nagiospluginsdir} \
Jose Pedro Oliveira 951099
    INSTALLVENDORSCRIPT=%{nagiospluginsdir}
Jose Pedro Oliveira 951099
make %{?_smp_mflags}
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
%install
Jose Pedro Oliveira 951099
rm -rf %{buildroot}
Jose Pedro Oliveira 951099
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Jose Pedro Oliveira 951099
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
Jose Pedro Oliveira 951099
find %{buildroot} -type f -name "*.pod" -exec rm -f {} \;
Jose Pedro Oliveira 951099
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
Jose Pedro Oliveira 951099
%{_fixperms} %{buildroot}/*
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 382aba
%check
Jose Pedro Oliveira 382aba
make test
Jose Pedro Oliveira 382aba
Jose Pedro Oliveira 951099
%clean
Jose Pedro Oliveira 951099
rm -rf %{buildroot}
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
%files
Jose Pedro Oliveira 951099
%defattr(-,root,root,-)
Jose Pedro Oliveira 951099
%doc AUTHORS Changes NEWS README TODO COPYING COPYRIGHT
Jose Pedro Oliveira 951099
%{nagiospluginsdir}/*
Jose Pedro Oliveira 951099
%{_mandir}/man1/*.1*
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
%changelog
Jose Pedro Oliveira 72a4f0
* Wed May 15 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.3-1
Jose Pedro Oliveira 72a4f0
- Update to 1.6.3.
Jose Pedro Oliveira 72a4f0
Jose Pedro Oliveira 72a4f0
* Sat Mar 30 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.2-1
Jose Pedro Oliveira 72a4f0
- Update to 1.6.2.
Jose Pedro Oliveira 72a4f0
Jose Pedro Oliveira 72a4f0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
Jose Pedro Oliveira 72a4f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Jose Pedro Oliveira 72a4f0
Jose Pedro Oliveira b16c35
* Mon Dec 10 2012 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.1-1
Jose Pedro Oliveira b16c35
- Update to 1.6.1.
Jose Pedro Oliveira b16c35
Jose Pedro Oliveira b16c35
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-2
Jose Pedro Oliveira b16c35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Jose Pedro Oliveira b16c35
Jose Pedro Oliveira b16c35
* Mon Apr 16 2012 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.0-1
Jose Pedro Oliveira b16c35
- Update to 1.6.0.
Jose Pedro Oliveira b16c35
Jose Pedro Oliveira b16c35
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-2
Jose Pedro Oliveira b16c35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Jose Pedro Oliveira b16c35
Jose Pedro Oliveira 64472e
* Mon Dec  5 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.5.2-1
Jose Pedro Oliveira 64472e
- Update to 1.5.2.
Jose Pedro Oliveira 64472e
Jose Pedro Oliveira 64472e
* Sat Dec  3 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.5.1-1
Jose Pedro Oliveira 64472e
- Update to 1.5.1.
Jose Pedro Oliveira 64472e
Jose Pedro Oliveira 0de123
* Tue Oct  4 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.5.0-1
Jose Pedro Oliveira 0de123
- Update to 1.5.0.
Jose Pedro Oliveira 0de123
Jose Pedro Oliveira 5cb323
* Wed May 25 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.4.14-1
Jose Pedro Oliveira 5cb323
- Update to 1.4.14.
Jose Pedro Oliveira 5cb323
Jose Pedro Oliveira 7f42b3
* Tue May 24 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.4.13-1
Jose Pedro Oliveira 7f42b3
- Update to 1.4.13.
Jose Pedro Oliveira 7f42b3
- Fixes a build problem in EPEL5 (test script failure).
Jose Pedro Oliveira 7f42b3
Jose Pedro Oliveira 382aba
* Tue May 24 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.4.12-1
Jose Pedro Oliveira 382aba
- Update to 1.4.12.
Jose Pedro Oliveira 382aba
- Upstream added a test suite.
Jose Pedro Oliveira 382aba
290985
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.11-2
290985
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
290985
Jose Pedro Oliveira 29524b
* Thu Nov 18 2010 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.4.11-1
Jose Pedro Oliveira 29524b
- Update to 1.4.11.
Jose Pedro Oliveira 29524b
Jose Pedro Oliveira 0afd59
* Mon Nov  1 2010 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.4.9-1
Jose Pedro Oliveira 0afd59
- Update to 1.4.9 (solves the EPEL5 build problem).
Jose Pedro Oliveira 0afd59
Jose Pedro Oliveira 4583da
* Sun Oct 31 2010 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.4.8-1
Jose Pedro Oliveira 4583da
- Update to 1.4.8 (license clarification).
Jose Pedro Oliveira 4583da
Jose Pedro Oliveira 951099
* Thu Feb 18 2010 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.4.7-1
Jose Pedro Oliveira 951099
- Update to 1.4.7.
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
* Thu Dec 10 2009 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.4.6-1
Jose Pedro Oliveira 951099
- First build for Fedora and EPEL.
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
# vim:set ai ts=4 sw=4 sts=4 et: