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 8833a6
Version:       1.6.18
Jose Pedro Oliveira 2bbdca
Release:       2%{?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 00ddf5
URL:           https://github.com/matteocorti/check_updates
Jose Pedro Oliveira 00ddf5
Source:        https://github.com/matteocorti/check_updates/releases/download/v%{version}/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
7c1a22
BuildRequires: perl-generators
Jose Pedro Oliveira 951099
BuildRequires: perl(ExtUtils::MakeMaker)
Jose Pedro Oliveira 382aba
BuildRequires: perl(Test::More)
Jose Pedro Oliveira ec0eb4
BuildRequires: perl(Monitoring::Plugin)
Jose Pedro Oliveira 382aba
BuildRequires: perl(Readonly)
Jose Pedro Oliveira 951099
Jose Pedro Oliveira 951099
Requires:      nagios-plugins
Jose Pedro Oliveira 195751
Requires:      which
Jose Pedro Oliveira 62dc06
# Yum security plugin:
Jose Pedro Oliveira 62dc06
#   Fedora >= 19         : yum-plugin-security (is now provided by the yum package)
Jose Pedro Oliveira 62dc06
#   Fedora <= 18         : yum-plugin-security (yum-utils subpackage; also provides yum-security)
Jose Pedro Oliveira 62dc06
#   Red Hat Enterprise 6 : yum-plugin-security (yum-utils subpackage; also provides yum-security)
Jose Pedro Oliveira 62dc06
#   Red Hat Enterprise 5 : yum-security (yum-utils subpackage)
Jose Pedro Oliveira 62dc06
Requires:      yum-plugin-security
Jose Pedro Oliveira 2bbdca
Requires:      perl(Monitoring::Plugin)
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 2bbdca
* Sat Sep  3 2016 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.6.18-2
Jose Pedro Oliveira 2bbdca
- Add missing requirement: perl(Monitoring::Plugin)
Jose Pedro Oliveira 2bbdca
Jose Pedro Oliveira 8833a6
* Wed Jun  1 2016 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.6.18-1
Jose Pedro Oliveira 8833a6
- Update to 1.6.18.
Jose Pedro Oliveira 8833a6
Jose Pedro Oliveira 83f769
* Sun May 29 2016 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.6.17-1
Jose Pedro Oliveira 83f769
- Update to 1.6.17.
Jose Pedro Oliveira 83f769
Jose Pedro Oliveira 333c47
* Mon Apr 18 2016 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.6.16-1
Jose Pedro Oliveira 333c47
- Update to 1.6.16.
Jose Pedro Oliveira 333c47
Jose Pedro Oliveira 18a5eb
* Sun Feb 07 2016 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.6.15-1
Jose Pedro Oliveira 18a5eb
- Update to 1.6.15.
Jose Pedro Oliveira 18a5eb
8416a1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.12-3
8416a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8416a1
Jose Pedro Oliveira 00ddf5
* Mon Dec 28 2015 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.6.12-2
Jose Pedro Oliveira 00ddf5
- Upstream project moved to github
Jose Pedro Oliveira 00ddf5
- Upstream is now using git instead of subversion
Jose Pedro Oliveira 00ddf5
- Version 1.6.12 tarball in github has slightly different content
Jose Pedro Oliveira 00ddf5
Jose Pedro Oliveira 195751
* Sat Sep 19 2015 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.6.12-1
Jose Pedro Oliveira 195751
- Update to 1.6.12.
Jose Pedro Oliveira 195751
- Initial support for DNF.
Jose Pedro Oliveira 195751
2751c3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.10-2
2751c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2751c3
Jose Pedro Oliveira ec0eb4
* Mon Feb 16 2015 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.6.10-1
Jose Pedro Oliveira ec0eb4
- Update to 1.6.10.
Jose Pedro Oliveira ec0eb4
- It now requires perl(Monitoring::Plugin).
Jose Pedro Oliveira ec0eb4
Jose Pedro Oliveira 3f6e93
* Tue Feb 10 2015 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.6.9-1
Jose Pedro Oliveira 3f6e93
- Update to 1.6.9.
Jose Pedro Oliveira 3f6e93
- No longer requires perl(Sort::Versions).
Jose Pedro Oliveira 3f6e93
- Ship the version.pm file from check-updates 1.6.7 (temporary).
Jose Pedro Oliveira 3f6e93
907cbc
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.7-2
907cbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
907cbc
Jose Pedro Oliveira 2edb4d
* Mon Jun 23 2014 Jose Pedro Oliveira <jose.p.oliveira.oss at gmail.com> - 1.6.7-1
Jose Pedro Oliveira 2edb4d
- Update to 1.6.7.
Jose Pedro Oliveira 2edb4d
c58ec6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-2
c58ec6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c58ec6
Jose Pedro Oliveira d9bddd
* Fri Oct 11 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.6-1
Jose Pedro Oliveira d9bddd
- Update to 1.6.6.
Jose Pedro Oliveira d9bddd
259026
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5-2
259026
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
259026
Jose Pedro Oliveira 2f93ca
* Thu Jul 18 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.5-1
Jose Pedro Oliveira 2f93ca
- Update to 1.6.5.
Jose Pedro Oliveira 2f93ca
Jose Pedro Oliveira bf3028
* Wed Jun 19 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.4-1
Jose Pedro Oliveira bf3028
- Update to 1.6.4.
Jose Pedro Oliveira bf3028
Jose Pedro Oliveira 62dc06
* Sat May 25 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.3-2
Jose Pedro Oliveira 62dc06
- Fedora 19: yum-plugin-security is now provided by the yum package
Jose Pedro Oliveira 62dc06
  (and the yum-security virtual provide was dropped) (#967225).
Jose Pedro Oliveira 62dc06
Jose Pedro Oliveira b05227
* Wed May 15 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.3-1
Jose Pedro Oliveira b05227
- Update to 1.6.3.
Jose Pedro Oliveira b05227
Jose Pedro Oliveira f20ae0
* Sat Mar 30 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.2-1
Jose Pedro Oliveira f20ae0
- Update to 1.6.2.
Jose Pedro Oliveira f20ae0
c383bf
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
c383bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c383bf
Jose Pedro Oliveira b6db0b
* Mon Dec 10 2012 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.1-1
Jose Pedro Oliveira b6db0b
- Update to 1.6.1.
Jose Pedro Oliveira b6db0b
e38150
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-2
e38150
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e38150
Jose Pedro Oliveira 24f605
* Mon Apr 16 2012 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.0-1
Jose Pedro Oliveira 24f605
- Update to 1.6.0.
Jose Pedro Oliveira 24f605
ce6c11
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-2
ce6c11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ce6c11
Jose Pedro Oliveira b63f9d
* Mon Dec  5 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.5.2-1
Jose Pedro Oliveira b63f9d
- Update to 1.5.2.
Jose Pedro Oliveira b63f9d
Jose Pedro Oliveira 3af17a
* Sat Dec  3 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.5.1-1
Jose Pedro Oliveira 3af17a
- Update to 1.5.1.
Jose Pedro Oliveira 3af17a
Jose Pedro Oliveira 2a72dc
* Tue Oct  4 2011 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.5.0-1
Jose Pedro Oliveira 2a72dc
- Update to 1.5.0.
Jose Pedro Oliveira 2a72dc
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: