-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathibarr.spec
51 lines (41 loc) · 1.09 KB
/
ibarr.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
Name: ibarr
Version: 0.1.3
Release: 1%{?dist}
Summary: Nvidia address and route userspace resolution services for Infiniband
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake gcc libnl3-devel rdma-core-devel
Group: Applications/System
License: (GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause
# The SLES cmake macros do more than the RHEL ones, and have an extra
# cmake_install with a 'cd build' inside.
%if %{undefined cmake_install}
%global cmake_install %make_install
%endif
%if %{undefined cmake_build}
%if %{defined make_jobs}
# SLES12
%global cmake_build %make_jobs
%else
# RHEL < 9, Fedora < ??
%global cmake_build %make_build
%endif
%endif
%description
a userspace application that interacts over NetLink with the Linux RDMA
subsystem and provides 2 services: ip2gid (address resolution) and gid2lid
(PathRecord resolution).
%prep
%setup -q
%build
%cmake
%cmake_build
%install
%cmake_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%doc README.md
%{_bindir}/ibarr
# FIXME: should be in the standard directory, under _prefix.
/lib/systemd/system/%{name}.service
%changelog