%define pluginsdir %{_libdir}/nagios/plugins/ ### %global __tag REL2_7 Name: check_pgactivity Version: 2.7 Release: 1%{dist} %define _tag REL%(echo %{version} | sed 's/\\./_/') Summary: PostgreSQL monitoring plugin for Nagios License: PostgreSQL Group: Applications/Databases Url: https://github.com/OPMDG/check_pgactivity Source0: https://github.com/OPMDG/check_pgactivity/archive/%{_tag}.tar.gz Requires: nagios-plugins Provides: nagios-plugins-pgactivity = %{version} Provides: monitoring-plugins-pgactivity = %{version} %description check_pgactivity is a monitoring plugin of PostgreSQL for Nagios. It provides many checks and allow the gathering of many performance counters. check_pgactivity is part of Open PostgreSQL Monitoring. %prep %setup -n check_pgactivity-%{_tag} %install install -D -p -m 0755 check_pgactivity %{buildroot}/%{pluginsdir}/check_pgactivity %files %defattr(-,root,root,0755) %{_libdir}/nagios/plugins/check_pgactivity %doc README LICENSE %changelog