File monitoring-plugins-obs_events.spec of Package monitoring-plugins-obs_events
#
# spec file for package monitoring-plugins-obs_events
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: monitoring-plugins-obs_events
Version: 0.0.1
Release: 0
Summary: Check OBS events
License: GPL-3.0-or-later
Group: System/Monitoring
Url: https://github.com/M0ses/monitoring-plugins-obs
Source: check_obs_events-%{version}.tar.xz
BuildRequires: nagios-rpm-macros
BuildRequires: monitoring-plugins-common
Requires: obs-server
Requires: monitoring-plugins-common
Requires: perl(Data::Dumper)
Requires: perl(Getopt::Long)
Requires: perl(YAML)
Requires: perl(Carp)
#Requires: perl(BSConfiguration)
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Check the (defined) event directories of the Open Build Service for
open events and warn if the queue get's too high.
%prep
%autosetup -n check_obs_events-%{version}
sed -i "s|/usr/bin/env perl|%{_bindir}/perl|g" check_obs_events
%build
%install
install -D -m755 check_obs_events %buildroot/%{nagios_plugindir}/check_obs_events
install -D -m644 etc/check_obs_events.yml %buildroot/%{plugin_confdir}/check_obs_events.yml
%files
%defattr(-,root,root)
%doc *.md
%license LICENSE
%dir %{plugin_confdir}
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_obs_events
%config(noreplace) %{plugin_confdir}/check_obs_events.yml
%changelog