-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathlibibverbs.spec
192 lines (150 loc) · 5.61 KB
/
libibverbs.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
###
%{!?configure_options: %define configure_options %{nil}}
%{!?_with_valgrind: %define _with_valgrind 0}
%{!?_disable_valgrind: %define _disable_valgrind 0}
%if 0%{?rhel} != 0
%if 0%{_disable_valgrind} == 0
%define _with_valgrind 1
%endif
%endif
###
Name: libibverbs
Version: 41mlnx1
Release: OFED.4.6.0.4.1
Summary: A library for direct userspace use of RDMA (InfiniBand/iWARP) hardware
Group: System Environment/Libraries
License: GPLv2 or BSD
Url: http://openfabrics.org/
Source: http://openfabrics.org/downloads/verbs/libibverbs-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%if %{_with_valgrind}
BuildRequires: valgrind-devel
%endif
%description
libibverbs is a library that allows userspace processes to use RDMA
"verbs" as described in the InfiniBand Architecture Specification and
the RDMA Protocol Verbs Specification. This includes direct hardware
access from userspace to InfiniBand/iWARP adapters (kernel bypass) for
fast path operations.
For this library to be useful, a device-specific plug-in module should
also be installed.
%package devel
Summary: Development files for the libibverbs library
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Provides: %{_prefix}/include/infiniband/verbs.h
%description devel
Header files for the libibverbs library.
%package devel-static
Summary: Static development files for the libibverbs library
Group: System Environment/Libraries
%description devel-static
Static libraries for the libibverbs library.
%package utils
Summary: Examples for the libibverbs library
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description utils
Useful libibverbs1 example programs such as ibv_devinfo, which
displays information about RDMA devices.
%prep
%setup -q -n %{name}-41mlnx1
%build
%if %{_with_valgrind}
%configure %{configure_options} --libdir=%{_libdir}/mlnx_ofed/valgrind --with-valgrind
make %{?_smp_mflags}
make DESTDIR=$RPM_BUILD_DIR/%{name}-%{version}/valgrind install
rm -f $RPM_BUILD_DIR/%{name}-%{version}/valgrind/%{_libdir}/mlnx_ofed/valgrind/*.*a
make clean
%endif
%configure %{configure_options}
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=%{buildroot} install
%if %{_with_valgrind}
mkdir -p %{buildroot}/%{_libdir}/mlnx_ofed
cp -a $RPM_BUILD_DIR/%{name}-%{version}/valgrind/%{_libdir}/mlnx_ofed/valgrind %{buildroot}/%{_libdir}/mlnx_ofed
%endif
# remove unpackaged files from the buildroot
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libibverbs*.so.*
%if %{_with_valgrind}
%{_libdir}/mlnx_ofed/valgrind/libibverbs*.so.*
%endif
%doc AUTHORS COPYING ChangeLog README
%files devel
%defattr(-,root,root,-)
%{_libdir}/lib*.so
%if %{_with_valgrind}
%{_libdir}/mlnx_ofed/valgrind/lib*.so
%endif
%{_includedir}/*
%{_mandir}/man3/*
%{_mandir}/man7/*
%files devel-static
%defattr(-,root,root,-)
%{_libdir}/*.a
%files utils
%defattr(-,root,root,-)
%{_bindir}/*
%{_mandir}/man1/*
%changelog
* Wed Dec 21 2011 Roland Dreier <[email protected]> - 1.1.6-1
- New upstream release
* Tue Jun 28 2011 Roland Dreier <[email protected]> - 1.1.5-1
- New upstream release
* Thu Jun 3 2010 Roland Dreier <[email protected]> - 1.1.4-1
- New upstream release
* Thu Oct 29 2009 Roland Dreier <[email protected]> - 1.1.3-1
- New upstream release
* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 1.1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <[email protected]> - 1.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Apr 16 2008 Roland Dreier <[email protected]> - 1.1.2-1
- New upstream release
- Update description to mention RDMA and iWARP, not just InfiniBand
- Add "Requires" tag for libibverbs base package to -devel
* Mon Feb 18 2008 Fedora Release Engineering <[email protected]> - 1.1.1-3
- Autorebuild for GCC 4.3
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.1.1-2
- Rebuild for selinux ppc32 issue.
* Fri Jun 15 2007 Roland Dreier <[email protected]> - 1.1.1-1
- New upstream release
* Wed Apr 11 2007 Roland Dreier <[email protected]> - 1.1-1
- New upstream release
* Mon May 22 2006 Roland Dreier <[email protected]> - 1.1-0.1.rc2
- New upstream release
- Remove dependency on libsysfs, since it is no longer used
- Put section 3 manpages in devel package.
- Spec file cleanups: remove unused ver macro, improve BuildRoot, add
Requires for /sbin/ldconfig, split static libraries into
devel-static package, and don't use makeinstall any more (all
suggested by Doug Ledford <[email protected]>).
* Thu May 4 2006 Roland Dreier <[email protected]> - 1.0.4-1
- New upstream release
* Tue Mar 14 2006 Roland Dreier <[email protected]> - 1.0.3-1
- New upstream release
* Mon Mar 13 2006 Roland Dreier <[email protected]> - 1.0.1-1
- New upstream release
* Thu Feb 16 2006 Roland Dreier <[email protected]> - 1.0-1
- New upstream release
* Wed Feb 15 2006 Roland Dreier <[email protected]> - 1.0-0.5.rc7
- New upstream release
* Sun Jan 22 2006 Roland Dreier <[email protected]> - 1.0-0.4.rc6
- New upstream release
* Tue Oct 25 2005 Roland Dreier <[email protected]> - 1.0-0.3.rc5
- New upstream release
* Wed Oct 5 2005 Roland Dreier <[email protected]> - 1.0-0.2.rc4
- Update to upstream 1.0-rc4 release
* Mon Sep 26 2005 Roland Dreier <[email protected]> - 1.0-0.1.rc3
- Initial attempt at Fedora Extras-compliant spec file