File monitoring-plugins-cisco_ucs.spec of Package monitoring-plugins-cisco_ucs

#
# spec file for package monitoring-plugins-cisco_ucs
#
# Copyright (c) 2019-2025, 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_cisco_ucs
Name:           monitoring-plugins-cisco_ucs
Version:        0.7.0+git20241218
Release:        0
Summary:        A Nagios/Icinga plugin to monitor Cisco UCS hardware
License:        GPL-3.0-or-later
Group:          System/Monitoring
URL:            https://github.com/hgrimm/check_cisco_ucs
Source:         %{realname}-%{version}.tar.xz
BuildRequires:  nagios-rpm-macros
BuildRequires:  golang-packaging

%description
A Nagios plugin to monitor Cisco UCS rack and blade center hardware.

%prep
%autosetup -n %{realname}-%{version}

%build
go build -mod=vendor -buildmode=pie -o check_cisco_ucs check_cisco_ucs.go

%install
install -Dpm 0755 check_cisco_ucs %{buildroot}/%{nagios_plugindir}/check_cisco_ucs

%files
%license LICENSE
%doc README.md
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_cisco_ucs

%changelog
openSUSE Build Service is sponsored by