File libcxgb4-rdmav2.spec of Package libcxgb4-rdmav2

#
# spec file for package libcxgb4-rdmav2
#
# Copyright (c) 2011-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:           libcxgb4-rdmav2
Summary:        Chelsio T4 iWARP RNIC OpenIB Userspace Library
Version:        1.3.3
Release:        0
License:        GPL-2.0 or BSD-2-Clause
Group:          System/Libraries
Source0:        http://www.openfabrics.org/downloads/libcxgb4-%{version}.tar.gz
#Git-Clone:	git://www.openfabrics.org/~swise/libcxgb4
Patch1:		libcxgb4-fix_puns.patch
Patch2:         libcxgb4-rdmav2-ah_message.patch
Url:            http://www.openfabrics.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibverbs-devel
BuildRequires:  automake autoconf libtool

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

%prep
%setup -q -n libcxgb4-%{version}
%patch1
%patch2

touch NEWS ChangeLog

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

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/{*.la,libcxgb4.so}

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

%changelog