-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcheck-ganglia.spec
47 lines (34 loc) · 1.07 KB
/
check-ganglia.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
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
Name: check-ganglia
Version: 20100420.1
Release: 1%{?dist}
Summary: Ganglia integration for Nagios.
Group: Applications/System
License: GPL
URL: http://github.com/larsks/check-ganglia
Source0: %{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: python
BuildRequires: python-setuptools
Requires: python
Obsoletes: check_gmond
%description
Ganglia integration for Nagios.
%prep
%setup -q
%build
python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
install -m 755 -d $RPM_BUILD_ROOT
python setup.py install --root $RPM_BUILD_ROOT \
--install-scripts %{_libdir}/nagios/plugins
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{python_sitelib}
%{_libdir}/nagios/plugins/check_ganglia