File libmthca-rdmav2.spec of Package libmthca-rdmav2

#
# spec file for package libmthca-rdmav2
#
# Copyright (c) 2013-2014 SUSE LINUX Products 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/
#

# norootforbuild

Name:           libmthca-rdmav2
Summary:        User space libraries (device-specific) for Infiniband Mellanox HCA
Version:        1.0.6
Release:        0
License:        BSD-2-Clause or GPL-2.0
Group:          System/Libraries
Source0:        libmthca-%{version}.tar.gz
Url:            http://www.openfabrics.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibverbs-devel

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
openSUSE Build Service is sponsored by