-
Notifications
You must be signed in to change notification settings - Fork 4
/
nagios-plugin-grnet-agora.spec
44 lines (35 loc) · 1.09 KB
/
nagios-plugin-grnet-agora.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
# sitelib
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define dir /usr/libexec/argo-monitoring/probes/grnet-agora
Name: nagios-plugin-grnet-agora
Summary: Agora related probes
Version: 0.4
Release: 1%{?dist}
License: AGPLv3
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Group: Network/Monitoring
BuildArch: noarch
Requires: python-requests, python-argparse
%description
This package includes probes for Agora.
Currently it supports the following components:
- Agora health check
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot} --record=INSTALLED_FILES
install -d -m 755 %{buildroot}/%{dir}
install -d -m 755 %{buildroot}/%{python_sitelib}/grnet-agora
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root,-)
%{python_sitelib}/agora_probes
%{dir}
%changelog
* Mon Sep 24 2018 Antonios Angelakis <angelakis@grnet.gr> 0.1
- Initial version of the package