-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheck_ib_switch-el8.spec
48 lines (37 loc) · 1.4 KB
/
check_ib_switch-el8.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
Name: check_ib_switch
Version: 0.0.5
%global gittag 0.0.5
Release: 1%{?dist}
Summary: Nagios script to check the status and fault in unmanaged Mellanox Infiniband switches
License: Apache License 2.0
URL: https://github.com/guilbaults/%{name}
Source0: https://github.com/guilbaults/%{name}/archive/v%{gittag}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python36-devel
Requires: mft
Requires: python36
%description
This tool is used to monitor unmanaged Infiniband switches made by Mellanox
%prep
%autosetup -n %{name}-%{gittag}
%setup -q
%build
%install
mkdir -p %{buildroot}/usr/lib64/nagios/plugins/
sed -i -e '1i#!/usr/bin/python3.6' %{name}.py
install -m 0755 %{name}.py %{buildroot}/usr/lib64/nagios/plugins/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
/usr/lib64/nagios/plugins/%{name}
%changelog
* Mon Apr 4 2022 Simon Guilbault <[email protected]> 0.0.5-1
- Supporting HDR switches
* Tue May 19 2020 Simon Guilbault <[email protected]> 0.0.4-1
- Increasing fan speed threshold
* Wed May 13 2020 Simon Guilbault <[email protected]> 0.0.3-1
- Fix format() manual/automatic numbering
* Wed May 13 2020 Simon Guilbault <[email protected]> 0.0.2-1
- Updating fan speed threshold
* Thu May 7 2020 Simon Guilbault <[email protected]> 0.0.1-1
- Initial release