File monitoring-plugins-pgactivity.spec of Package monitoring-plugins-pgactivity
#
# spec file for package monitoring-plugins-pgactivity
#
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define realname check_pgactivity
%define realver 2_4
Name: monitoring-plugins-pgactivity
Version: 2.4
Release: 0
Summary: PostgreSQL monitoring plugin for Nagios/Icinga
License: PostgreSQL
Group: System/Monitoring
URL: https://opm.readthedocs.io/probes/check_pgactivity.html
#Git-Clone: https://github.com/OPMDG/check_pgactivity.git
Source: https://github.com/OPMDG/check_pgactivity/archive/REL%{realver}.tar.gz
BuildRequires: nagios-rpm-macros
Requires: perl
Requires: postgresql
BuildArch: noarch
%description
check_pgactivity is a monitoring plugin of PostgreSQL for Nagios.
It provides many checks and allow the gathering of many performance counters.
%prep
%setup -q -n %{realname}-REL%{realver}
%build
%install
install -D -p -m 0755 check_pgactivity %{buildroot}/%{nagios_plugindir}/check_pgactivity
%files
%license LICENSE
%doc README CHANGELOG.md
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_pgactivity
%changelog