-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblinkenlights-el7.spec
54 lines (43 loc) · 1.67 KB
/
blinkenlights-el7.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
Name: blinkenlights
Version: 0.0.5
%global gittag 0.0.5
Release: 1%{?dist}
Summary: Script to manage LED and power in Xyratex 5U84 and 4U106 slots JBOD
License: Apache License 2.0
URL: https://github.com/guilbaults/blinkenlights
Source0: https://github.com/guilbaults/%{name}/archive/v%{gittag}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
Requires: sasutils
Requires: sg3_utils
%description
This tool is used to control the LEDs and slot power in a Xyratex 84 slots JBODs, also know as:
* Seagate/Xyratex SP-2584
* Dell MD1280
* Lenovo D3284
* Seagate Exos E 4U106 (SP-34106)
This script can be adapted for other types of JBODs, as long as its possible
to control the LED/power with a sg_ses command.
%prep
%autosetup -n %{name}-%{gittag}
%setup -q
%build
%install
mkdir -p %{buildroot}/%{_bindir}
sed -i -e '1i#!/usr/bin/python3.4' blinkenlights.py
install -m 0755 %{name}.py %{buildroot}/%{_bindir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_bindir}/%{name}
%changelog
* Mon Mar 9 2020 Simon Guilbault <[email protected]> 0.0.5-1
- Using python 3.4 due to a dependency on sasutil
* Tue Jul 16 2019 Simon Guilbault <[email protected]> 0.0.4-1
- Support slots above 99 in the 106 slots JBOD
* Wed Dec 5 2018 Simon Guilbault <[email protected]> 0.0.3-1
- Removing debugging print and supporting SP-34106
* Fri Jul 13 2018 Simon Guilbault <[email protected]> 0.0.2-1
- Adding the shebang in the spec file for the python script
* Fri Jul 13 2018 Simon Guilbault <[email protected]> 0.0.1-1
- Initial release, supporting Xyratex 84 slots JBOD