forked from Microsemi/switchtec-user
-
Notifications
You must be signed in to change notification settings - Fork 0
/
switchtec.spec.in
41 lines (33 loc) · 1013 Bytes
/
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
Name: switchtec
Version: @@VERSION@@
Release: @@RELEASE@@%{?dist}
Summary: Userspace code 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
The code hosted here provides an easy to use CLI and C library for
communicating with Microsemi's Switchtec management interface.
%prep
%setup -n switchtec-@@VERSION@@-@@RELEASE@@
%build
%configure --with-curses
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall DESTDIR=%{buildroot} LDCONFIG=
ln -sfn /usr/local/lib/libswitchtec.so.@@VERSION@@. %{buildroot}/usr/local/lib/libswitchtec.so
%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 <[email protected]>
- Initial RPM spec