File libmthca-rdmav2.spec of Package libmthca-rdmav2
#
# spec file for package libmthca-rdmav2
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libmthca-rdmav2
Summary: User space libraries (device-specific) for Infiniband Mellanox HCA
License: BSD-2-Clause or GPL-2.0
Group: System/Libraries
Version: 1.0.6
Release: 0
Source0: libmthca-%{version}.tar.gz
Source1: baselibs.conf
Url: http://www.openfabrics.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libibverbs-devel
Requires: rdma
Supplements: modalias(pci:v000015B3d00001867sv*sd*bc*sc*i*)
Supplements: modalias(pci:v000015B3d00005A44sv*sd*bc*sc*i*)
Supplements: modalias(pci:v000015B3d00005E8Csv*sd*bc*sc*i*)
Supplements: modalias(pci:v000015B3d00006274sv*sd*bc*sc*i*)
Supplements: modalias(pci:v000015B3d00006278sv*sd*bc*sc*i*)
Supplements: modalias(pci:v000015B3d00006282sv*sd*bc*sc*i*)
Supplements: modalias(pci:v00001867d00005A44sv*sd*bc*sc*i*)
Supplements: modalias(pci:v00001867d00005E8Csv*sd*bc*sc*i*)
Supplements: modalias(pci:v00001867d00006274sv*sd*bc*sc*i*)
Supplements: modalias(pci:v00001867d00006278sv*sd*bc*sc*i*)
Supplements: modalias(pci:v00001867d00006282sv*sd*bc*sc*i*)
%description
libmthca provides a device-specific userspace driver for Mellanox HCAs
(MT23108 InfiniHost and MT25208 InfiniHost III Ex) for use with the
libibverbs library
%prep
%setup -q -n libmthca-%version
%build
%configure --disable-static
make
%install
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/libmthca.{a,la,so}
%files
%defattr(-, root, root)
%doc COPYING
%config %_sysconfdir/libibverbs.d/mthca.driver
%_libdir/%name.so
%changelog