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

Name:           monitoring-plugins-obs_events
Version:        0.0.1
Release:        0
Summary:        Check OBS events
License:        GPL-3.0-or-later
Group:          System/Monitoring
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

Check the (defined) event directories of the Open Build Service for 
open events and warn if the queue get's too high.

%autosetup -n check_obs_events-%{version}
sed -i "s|/usr/bin/env perl|%{_bindir}/perl|g" check_obs_events


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

%doc *.md
%license LICENSE
%dir %{plugin_confdir}
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%config(noreplace) %{plugin_confdir}/check_obs_events.yml

openSUSE Build Service is sponsored by