-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmonitoring-plugins-obs.spec
66 lines (54 loc) · 1.84 KB
/
monitoring-plugins-obs.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# spec file for package monitoring-plugins-obs
#
# Copyright (c) 2013-2014 SUSE LINUX Products 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/
#
%define monitoring_plugins_etc_dir /etc/monitoring-plugins
Name: monitoring-plugins-obs
Version: 0.0.1
Release: 0
License: GPL-3.0
Summary: Nagios/NRPE compatible plugin for checking Open Build Service
Url: https://github.com/openSUSE/monitoring-plugins-obs/
Group: System/Monitoring
Source: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: nagios-rpm-macros
BuildRequires: perl(YAML)
Requires: perl(YAML)
%description
This a nagios/NRPE compatible plugin for checking Open Build Service
%prep
%setup
%build
/bin/true
%install
export DESTDIR=%{buildroot}
export MONITORING_PLUGINS_DIR=%{nagios_plugindir}
export MONITORING_PLUGINS_ETC_DIR=%{monitoring_plugins_etc_dir}
make install
%check
make test
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README.md LICENSE
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %{monitoring_plugins_etc_dir}
%config (noreplace) %{monitoring_plugins_etc_dir}/check_obs_events.yml
%{nagios_plugindir}/check_obs_events
%changelog