Пакет nagios-plugins-nginx: Specfile

# nagios uses /usr/lib for plugins in any arch
%define plugindir %_prefix/lib/nagios/plugins

Name: nagios-plugins-nginx
Version: 1.0.1
Release: alt3

Summary: Nagios(R) plug-in for checking nginx status
License: GPL
Group: Monitoring
Url: http://www.nginxs.com/linux/441.html
Packager: Vitaly Lipatov <lav@altlinux.ru>

BuildArch: noarch

Source: %name-%version.tar
Patch0: port-to-python3.patch

BuildRequires(pre): rpm-build-python3
Requires: nagios-nrpe

%description
Nagios plugin for checking nginx status written in python.

%prep
%setup
%patch0 -p1

%install
mkdir -p %buildroot%plugindir/
install -m755 check_nginx %buildroot%plugindir/

%files
%plugindir/check_nginx

%changelog
* Thu Mar 26 2020 Andrey Bychkov <mrdrew@altlinux.org> 1.0.1-alt3
- Porting to python3.

* Sat Feb 08 2020 Vitaly Lipatov <lav@altlinux.ru> 1.0.1-alt2
- use python2 for the script

* Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.0.1-alt1.1
- Rebuild with Python-2.7

* Wed May 04 2011 Vitaly Lipatov <lav@altlinux.ru> 1.0.1-alt1
- initial build for ALT Linux Sisyphus