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
|
Name: libmlx5
Version: 1.2.1
Release: 1%{?dist}
Summary: Mellanox ConnectX-IB InfiniBand HCA Userspace Driver
Group: System Environment/Libraries
License: GPLv2 or BSD
Url: http://openfabrics.org/
Source: http://openfabrics.org/downloads/mlx5/libmlx5-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: libibverbs-devel >= 1.1.8
%description
libmlx5 provides a device-specific userspace driver for Mellanox
ConnectX HCAs for use with the libibverbs library.
%package devel
Summary: Development files for the libmlx5 driver
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Provides: libmlx5-static = %{version}-%{release}
%description devel
Static version of libmlx5 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}/libmlx5.so
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_libdir}/libmlx5-rdmav2.so
%{_sysconfdir}/libibverbs.d/mlx5.driver
%doc AUTHORS COPYING README
%files devel
%defattr(-,root,root,-)
%{_libdir}/libmlx5.a
%changelog
* Wed Jul 20 2016 Yishai Hadas <yishaih@mellanox.com> - 1.2.1-1
- New upstream release
* Mon Mar 26 2012 Eli Cohen <eli@mellanox.com> - 1.0.0
- First version
|