forked from SoftRoCE/librxe-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
librxe.spec.in
55 lines (43 loc) · 1.29 KB
/
librxe.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
Name: librxe
Version: 1.0.0
Release: 1
Summary: RDMA over Converging Enhanced Ethernet (RoCE) user library
Group: System Environment/Libraries
License: GPLv2 or BSD
Url: http://openfabrics.org/
Source: librxe-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: libibverbs-devel >= 1.1-0.1.rc2
%description
librxe provides a device-specific userspace driver RDMA
over Converging Enhanced Ethernet for use with the libibverbs library.
%package devel-static
Summary: Development files for the librxe driver
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description devel-static
Static version of librxe that may be linked directly to an
application, which may be useful for debugging.
%prep
%setup -q -n %{name}-@VERSION@
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=%{buildroot} install
# remove unpackaged files from the buildroot
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/librxe.so
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_libdir}/librxe-rdmav2.so
%{_sysconfdir}/libibverbs.d/rxe.driver
%{_mandir}/man7/*
%{_mandir}/man8/*
%doc AUTHORS COPYING ChangeLog README
%files devel-static
%defattr(-,root,root,-)
%{_libdir}/librxe.a
%changelog