File libcxgb3-rdmav2.spec of Package libcxgb3-rdmav2

#
# spec file for package libcxgb3-rdmav2 (Version 1.3.1)
#
# Copyright (c) 2008-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/
#


Name:           libcxgb3-rdmav2
Summary:        Chelsio T3 RNIC OpenIB Userspace Library
Version:        1.3.1
Release:        0
License:        GPL-2.0 or BSD-2-Clause
Group:          System/Libraries
Source0:        libcxgb3-%{version}.tar.gz
Source1:        baselibs.conf
#PATCH-FIX-UPSTREAM This is a plugin, no version needed pth@suse.de
Patch0:         cxgb3-no_devel_package.patch
Url:            http://www.openfabrics.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibverbs-devel
BuildRequires:  automake autoconf libtool

Supplements:    modalias(pci:v00001425d00000036sv*sd*bc*sc*i*)  
Supplements:    modalias(pci:v00001425d00000035sv*sd*bc*sc*i*)  
Supplements:    modalias(pci:v00001425d00000032sv*sd*bc*sc*i*)  
Supplements:    modalias(pci:v00001425d00000031sv*sd*bc*sc*i*)  
Supplements:    modalias(pci:v00001425d00000030sv*sd*bc*sc*i*)  
Supplements:    modalias(pci:v00001425d00000026sv*sd*bc*sc*i*)     
Supplements:    modalias(pci:v00001425d00000025sv*sd*bc*sc*i*)   
Supplements:    modalias(pci:v00001425d00000024sv*sd*bc*sc*i*)   
Supplements:    modalias(pci:v00001425d00000023sv*sd*bc*sc*i*)  
Supplements:    modalias(pci:v00001425d00000022sv*sd*bc*sc*i*)  
Supplements:    modalias(pci:v00001425d00000021sv*sd*bc*sc*i*)  
Supplements:    modalias(pci:v00001425d00000020sv*sd*bc*sc*i*)  

%description
libcxgb3 provides a device-specific userspace driver for Chelsio RNICs
for use with the libibverbs library.

%prep
%setup -q -n libcxgb3-%{version}
%patch0
touch NEWS ChangeLog

%build
autoreconf -fi
%configure --disable-static
make %{?_smp_mflags}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%install
%makeinstall
%{__rm} %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%_libdir/libcxgb3.so

%files
%defattr(-, root, root)
%doc COPYING
%dir %_sysconfdir/libibverbs.d
%config %_sysconfdir/libibverbs.d/*
%_libdir/libcxgb3-rdmav2.so

%changelog
openSUSE Build Service is sponsored by