eb214e6
# Disable debuginfo since there are no binaries
eb214e6
%global debug_package %{nil}
eb214e6
eb214e6
%global enable_doc 1
eb214e6
eb214e6
%global nagios_bindir %{_libdir}/nagios/plugins
eb214e6
%global arc_spooldir %{_localstatedir}/spool/arc
eb214e6
%global pkg_spooldir %{arc_spooldir}/nagios
eb214e6
%global pkg_sysconfdir %{_sysconfdir}/arc/nagios
eb214e6
eb214e6
Name:		nordugrid-arc-nagios-plugins
127e26c
Version:	1.9.1
24593d7
Release:	5%{?dist}
eb214e6
Summary:	Nagios plugins for ARC
eb214e6
eb214e6
License:	ASL 2.0
eb214e6
URL:		http://www.nordugrid.org
eb214e6
Source0:	http://download.nordugrid.org/packages/%{name}/releases/%{version}/src/%{name}-%{version}.tar.gz
eb214e6
Requires:	nordugrid-arc-client >= 1.0.0
24593d7
Requires:	python2-nordugrid-arc >= 1.0.0
88cef1a
Requires:	python2
88150eb
%if %{?rhel}%{!?rhel:0} == 6
88150eb
Requires:	python-argparse
88150eb
%endif
24593d7
Requires:	python2-ldap
24593d7
Requires:	python2-genshi
24593d7
Requires:	python2-ply
eb214e6
Requires:	nagios-plugins
eb214e6
Requires:	glue-schema >= 2.0.8
eb214e6
BuildRequires:	python2-devel
eb214e6
%if %{enable_doc}
24593d7
BuildRequires:	python2-sphinx
eb214e6
%endif
eb214e6
eb214e6
%description
eb214e6
This package provides the Nagios plugins for testing ARC computing element.
eb214e6
eb214e6
%if %{enable_doc}
eb214e6
%package doc
eb214e6
Summary:	HTML documentation for the ARC Nagios plugins
eb214e6
BuildArch:	noarch
eb214e6
eb214e6
%description doc
eb214e6
HTML documentation for the ARC Nagios plugins.
eb214e6
%endif
eb214e6
eb214e6
%package egi
eb214e6
Summary:	EGI configuration and dependencies for the ARC Nagios plugins
eb214e6
BuildArch:	noarch
eb214e6
Requires:	nordugrid-arc-nagios-plugins = %{version}-%{release}
eb214e6
Requires:	nordugrid-arc-plugins-globus >= 1.0.0
eb214e6
eb214e6
%description egi
eb214e6
EGI configuration and dependencies for the ARC Nagios plugins.
eb214e6
eb214e6
%prep
eb214e6
%setup -q
eb214e6
eb214e6
%build
88cef1a
%py2_build
eb214e6
%if %{enable_doc}
eb214e6
make -C doc html
eb214e6
rm -f doc/_build/html/.buildinfo
eb214e6
%endif
eb214e6
eb214e6
%install
88cef1a
%py2_install
eb214e6
eb214e6
install -m755 -d %{buildroot}%{pkg_spooldir}
eb214e6
eb214e6
%files
eb214e6
%dir %{pkg_sysconfdir}
eb214e6
%dir %{pkg_sysconfdir}/20-dist.d
eb214e6
%config(noreplace) %{pkg_sysconfdir}/20-dist.ini
eb214e6
%config(noreplace) %{pkg_sysconfdir}/20-dist.d/default.jsdl
eb214e6
%{nagios_bindir}/check_arcce_clean
eb214e6
%{nagios_bindir}/check_arcce_monitor
eb214e6
%{nagios_bindir}/check_arcce_submit
eb214e6
%{nagios_bindir}/check_aris
eb214e6
%{nagios_bindir}/check_arcglue2
eb214e6
%{nagios_bindir}/check_egiis
eb214e6
%{nagios_bindir}/check_arcinfosys
eb214e6
%{nagios_bindir}/check_archostcert
eb214e6
%{nagios_bindir}/check_arcservice
eb214e6
%{nagios_bindir}/check_gridstorage
eb214e6
%{python2_sitelib}/arcnagios
eb214e6
%{python2_sitelib}/nordugrid_arc_nagios_plugins-*.egg-info
eb214e6
%dir %{arc_spooldir}
eb214e6
%attr(-,nagios,nagios) %{pkg_spooldir}
88150eb
%license LICENSE NOTICE
eb214e6
%doc AUTHORS README.rst
eb214e6
%doc doc/arcnagios.ini.example
eb214e6
%doc doc/services.cfg.example
eb214e6
eb214e6
%if %{enable_doc}
eb214e6
%files doc
eb214e6
%doc doc/_build/html
88150eb
%license LICENSE NOTICE
eb214e6
%endif
eb214e6
eb214e6
%files egi
eb214e6
%dir %{pkg_sysconfdir}/60-egi.d
eb214e6
%config(noreplace) %{pkg_sysconfdir}/60-egi.ini
eb214e6
%config(noreplace) %{pkg_sysconfdir}/60-egi.d/arcce_igtf.py*
eb214e6
eb214e6
%changelog
24593d7
* Tue Feb 20 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.9.1-5
24593d7
- Update Python 2 dependency declarations to new packaging standards
24593d7
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
24593d7
7acf2db
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-4
7acf2db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7acf2db
5646bf0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-3
5646bf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5646bf0
253cea6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
253cea6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
253cea6
127e26c
* Thu Jul 06 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 1.9.1-1
127e26c
- Updated to release 1.9.1.
127e26c
88150eb
* Wed May 31 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 1.9.0-1
88150eb
- Updated to release 1.9.0.
88150eb
- EPEL 5 End-Of-Life specfile clean-up
88150eb
d53fbb8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-7
d53fbb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d53fbb8
88cef1a
* Mon Nov 21 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.8.4-6
88cef1a
- Remove runtime requirement for python-argparse
88cef1a
c9cc282
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.4-5
c9cc282
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c9cc282
9fe65c9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-4
9fe65c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9fe65c9
eb214e6
* Wed Nov 04 2015 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.4-3
eb214e6
- Make arcce_igtf.py non-executable
eb214e6
eb214e6
* Thu Oct 22 2015 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.4-2
eb214e6
- Specfile clean-up for Fedora review submission
eb214e6
eb214e6
* Fri Sep 11 2015 Petter Urkedal <urkedal@nbi.dk> - 1.8.4-1
eb214e6
- Updated to release 1.8.4.
eb214e6
eb214e6
* Mon Jul 06 2015 Anders Waananen <waananen@nbi.dk> - 1.8.3-2
eb214e6
- Drop doc subpackage for el5 due to missing dependencies
eb214e6
eb214e6
* Thu Jul 02 2015 Petter Urkedal <urkedal@nbi.dk> - 1.8.3-1
eb214e6
- Updated to release 1.8.3.
eb214e6
eb214e6
* Fri Mar 27 2015 Petter Urkedal <urkedal@nbi.dk> - 1.8.2-1
eb214e6
- Updated to release 1.8.2.
eb214e6
eb214e6
* Thu Jan 15 2015 Petter Urkedal <urkedal@nbi.dk> - 1.8.2-0.rc2
eb214e6
- Updated to release candidate 1.8.2rc2.
eb214e6
eb214e6
* Fri Jan 09 2015 Petter Urkedal <urkedal@nbi.dk> - 1.8.2-0.rc1
eb214e6
- Updated to release candidate 1.8.2rc1.
eb214e6
eb214e6
* Fri Aug 15 2014 Anders Waananen <waananen@nbi.dk> - 1.8.1-1
eb214e6
- Updated to release 1.8.1.
eb214e6
eb214e6
* Fri Jun 27 2014 Petter Urkedal <urkedal@nbi.dk> - 1.8.1-0.rc1
eb214e6
- Updated to release candidate 1.8.1rc1.
eb214e6
eb214e6
* Wed Apr 30 2014 Petter Urkedal <urkedal@nbi.dk> - 1.8.0-1
eb214e6
- Updated to release 1.8.0.
eb214e6
eb214e6
* Tue Oct 22 2013 Petter Urkedal <urkedal@nbi.dk> - 1.7.1-1
eb214e6
- Updated to release 1.7.1.
eb214e6
eb214e6
* Fri Aug 16 2013 Petter Urkedal <urkedal@nbi.dk> - 1.7.0-1
eb214e6
- Updated to release 1.7.0.
eb214e6
eb214e6
* Fri Jul 05 2013 Petter Urkedal <urkedal@nbi.dk> - 1.6.1-0.rc1
eb214e6
- Updated to release candidate 1.6.1rc1.
eb214e6
eb214e6
* Fri Apr 19 2013 Petter Urkedal <urkedal@nbi.dk> - 1.6.0-1
eb214e6
- Updated to release 1.6.0.
eb214e6
eb214e6
* Sat Apr 06 2013 Petter Urkedal <urkedal@nbi.dk> - 1.6.0-0.rc1
eb214e6
- Updated to release candidate 1.6.0rc1.
eb214e6
eb214e6
* Mon Feb 18 2013 Petter Urkedal <urkedal@nbi.dk> - 1.5.0-1
eb214e6
- Updated to release 1.5.0.
eb214e6
eb214e6
* Fri Feb 01 2013 Petter Urkedal <urkedal@nbi.dk> - 1.5.0-0.rc3
eb214e6
- Updated to release candidate 1.5.0rc3.
eb214e6
eb214e6
* Mon Jan 28 2013 Petter Urkedal <urkedal@nbi.dk> - 1.5.0-0.rc2
eb214e6
- Updated to release candidate 1.5.0rc2.
eb214e6
eb214e6
* Fri Jan 11 2013 Petter Urkedal <urkedal@nbi.dk> - 1.5.0-0.rc1
eb214e6
- Updated to release candidate 1.5.0rc1.
eb214e6
eb214e6
* Thu Dec 20 2012 Petter Urkedal <urkedal@nbi.dk> - 1.4.0-0.rc4
eb214e6
- Updated to release candidate 1.4.0rc4.
eb214e6
eb214e6
* Tue Nov 27 2012 Petter Urkedal <urkedal@nbi.dk> - 1.4.0-0.rc1
eb214e6
- Updated to release candidate 1.4.0rc1.
eb214e6
eb214e6
* Mon Oct 29 2012 Petter Urkedal <urkedal@nbi.dk> - 1.3.11-1
eb214e6
- Updated to release 1.3.11.
eb214e6
eb214e6
* Wed Sep 26 2012 Petter Urkedal <urkedal@nbi.dk> - 1.3.10-1
eb214e6
- Updated to release 1.3.10.
eb214e6
eb214e6
* Fri Sep 07 2012 Petter Urkedal <urkedal@nbi.dk> - 1.3.9-1
eb214e6
- Updated to release 1.3.9.
eb214e6
eb214e6
* Mon Apr 23 2012 Petter Urkedal <urkedal@nbi.dk> - 1.3.8-1
eb214e6
- Updated to release 1.3.8.
eb214e6
eb214e6
* Tue Apr 03 2012 Petter Urkedal <urkedal@nbi.dk> - 1.3.7-1
eb214e6
- Updated to release 1.3.7.
eb214e6
eb214e6
* Mon Apr 02 2012 Petter Urkedal <urkedal@nbi.dk> - 1.3.6-1
eb214e6
- Updated to release 1.3.6.
eb214e6
eb214e6
* Thu Feb 02 2012 Petter Urkedal <urkedal@nbi.dk> - 1.3.5-1
eb214e6
- Updated to release 1.3.5.
eb214e6
eb214e6
* Thu Feb 02 2012 Petter Urkedal <urkedal@nbi.dk> - 1.3.4-1
eb214e6
- Updated to release 1.3.4.
eb214e6
eb214e6
* Thu Feb 02 2012 Petter Urkedal <urkedal@nbi.dk> - 1.3.3-1
eb214e6
- Updated to release 1.3.3.
eb214e6
eb214e6
* Wed Dec 21 2011 Petter Urkedal <urkedal@nbi.dk> - 1.3.2-1
eb214e6
- Updated to release 1.3.2.
eb214e6
eb214e6
* Mon Dec 19 2011 Petter Urkedal <urkedal@nbi.dk> - 1.3.1-1
eb214e6
- Updated to release 1.3.1.
eb214e6
eb214e6
* Thu Dec 08 2011 Petter Urkedal <urkedal@nbi.dk> - 1.3.0-1
eb214e6
- Updated to release 1.3.0.
eb214e6
eb214e6
* Wed Nov 23 2011 Petter Urkedal <urkedal@nbi.dk> - 1.2.0-1
eb214e6
- Updated to release 1.2.0.
eb214e6
eb214e6
* Mon Nov 14 2011 Petter Urkedal <urkedal@nbi.dk>
eb214e6
- Change README to README.rst.
eb214e6
- Add documentation subpackage.
eb214e6
eb214e6
* Fri Nov 04 2011 Petter Urkedal <urkedal@nbi.dk> - 1.1.0-1
eb214e6
- Updated to release 1.1.0.
eb214e6
eb214e6
* Thu Nov 03 2011 Petter Urkedal <urkedal@nbi.dk>
eb214e6
- Install default configuration file.
eb214e6
eb214e6
* Wed Oct 26 2011 Petter Urkedal <urkedal@nbi.dk> - 1.0.2-1
eb214e6
- Updated to release 1.0.2.
eb214e6
eb214e6
* Thu Oct 20 2011 Petter Urkedal <urkedal@nbi.dk> - 1.0.1-1
eb214e6
- Updated to release 1.0.1.
eb214e6
eb214e6
* Tue Oct 18 2011 Petter Urkedal <urkedal@nbi.dk>
eb214e6
- Add argparse and nordugrid-arc-python dependencies.
eb214e6
- Install README and LICENSE.
eb214e6
eb214e6
* Fri Oct 14 2011 Petter Urkedal <urkedal@nbi.dk> - 1.0-1
eb214e6
- Updated to release 1.0.
eb214e6
- Almost complete rewrite for the new probes.
eb214e6
eb214e6
* Fri Sep 30 2011 Anders Waananen <waananen@nbi.dk> - 0.9-1
eb214e6
- New package name and ownership
eb214e6
eb214e6
* Thu Jun 30 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.4-1
eb214e6
- Fix flags to stat
eb214e6
eb214e6
* Thu Nov 18 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.3-1
eb214e6
- Implement changes proposed by Emir
eb214e6
eb214e6
* Mon Oct 11 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.2-1
eb214e6
- Remove Requires (per WLCG practice)
eb214e6
eb214e6
* Thu Sep 23 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.1-1
eb214e6
- Initial packaging