%global alt_name nagios-plugin-azure-resource %global nagiospluginsdir %{_libdir}/nagios/plugins # No binaries in this package %global debug_package %{nil} %if 0%{?rhel} %global py2_prefix python %else %global py2_prefix python2 %endif Name: nagios-plugins-azure-resource Version: 0.0.1 Release: 1%{?dist} Summary: Nagios plugin to monitor Microsoft Azure resource objects Group: Applications/System License: GPLv3+ URL: https://github.com/melmorabity/nagios-plugin-azure-resource/ Source0: https://github.com/melmorabity/%{alt_name}/archive/%{version}/%{name}-%{version}.tar.gz Requires: nagios-common Requires: pynag Requires: %{py2_prefix}-msrestazure >= 0.4.15 %description %{summary}. %prep %autosetup -n %{alt_name}-%{version} %build %install install -Dpm 0755 check_azure_resource.py $RPM_BUILD_ROOT%{nagiospluginsdir}/check_azure_resource %files %doc README.md %license LICENSE %{nagiospluginsdir}/check_azure_resource %changelog * Fri Jan 26 2018 Mohamed El Morabity - 0.0.1-1 - Initial RPM release