File monitoring-plugins-cloud_azure.spec of Package monitoring-plugins-cloud_azure
#
# spec file for package monitoring-plugins-cloud_azure
#
# Copyright (c) 2021, 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 https://bugs.opensuse.org/
#
%define realname check_cloud_azure
Name: monitoring-plugins-cloud_azure
Version: 0.1.0
Release: 0
Summary: An Icinga/Nagios plugin to monitor resources on Microsoft Azure
License: GPL-3.0-or-later
Group: System/Monitoring
URL: https://github.com/NETWAYS/check_cloud_azure
Source: %{realname}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: fdupes
BuildRequires: go >= 1.11
BuildRequires: golang-packaging
BuildRequires: nagios-rpm-macros
%{go_provides}
%description
An Icinga/Nagios plugin to monitor resources on Microsoft Azure.
%prep
%autosetup -n %{realname}-%{version} -a 1
%build
%{goprep} github.com/NETWAYS/check_cloud_azure
%{gobuild}
%install
%{goinstall}
install -d %{buildroot}/%{nagios_plugindir}
mv %{buildroot}%{_bindir}/%{realname} %{buildroot}/%{nagios_plugindir}/%{realname}
%files
%license LICENSE
%doc README.md
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/%{realname}
%changelog