forked from Microsemi/switchtec-user
-
Notifications
You must be signed in to change notification settings - Fork 0
/
switchtec.spec.in
56 lines (45 loc) · 1.36 KB
/
switchtec.spec.in
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
Name: switchtec
Version: @@VERSION@@
Release: @@RELEASE@@%{?dist}
Summary: Userspace application and library for the Microsemi PCIe Switch
License: MIT
Group: Development/Tools
URL: https://github.com/Microsemi/switchtec-user
Source: switchtec-@@VERSION@@-@@RELEASE@@.tar.xz
Provides: switchtec
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This application and C library allows for communicating with
Microsemi's Switchtec management interface.
This provides the following features:
* Show status for each port on all partitions
* Measure bandwidth and latency for each port
* Display and wait on event occurrances
* Setup and show event counters for various types of events
* Dump firmware logs
* Send a hard reset command to the switch
* Update and readback firmware as well as display image version and CRC info
* A simple ncurses GUI that shows salient information for the switch
%prep
%setup -n switchtec-@@VERSION@@-@@RELEASE@@
%build
%configure --with-curses
make
%install
rm -rf $RPM_BUILD_ROOT
make install-pkg DESTDIR=%{buildroot}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
/usr/local/bin/switchtec
/usr/local/lib/libswitchtec.*
/usr/local/include/switchtec/*.*
/etc/bash_completion.d/switchtec
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Apr 16 2018 Boris Glimcher <Boris.Glimcher@emc.com>
- Initial RPM spec