File libi40iw-rdmav2.spec of Package libi40iw-rdmav2

#
# spec file for package libi40iw
#
# Copyright (c) 2016 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.suse.com/
#

Name:           libi40iw-rdmav2
Version:        0.5.223 
Release:        1
Summary:        Intel Ethernet Connection X722 RDMA Userspace Library
Group:          System Environment/Libraries
License:        GPL-2.0 or BSD-2-Clause
Url:            http://www.openfabrics.org/
Source:         http://downloads.openfabrics.org/i40iw/libi40iw-%{version}.tar.gz
Patch0:         libi40iw-autotools.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: libibverbs-devel
BuildRequires: automake libtool autoconf

%description
libi40iw provides a device-specific RDMA userspace library for Intel
Ethernet Connection X722 for use with the libibverbs library.

%prep
%setup -q -n libi40iw-%{version}
%patch0

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

%install
make DESTDIR=%{buildroot} install
# remove unpackaged files from the buildroot
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/libi40iw.so

%files
%defattr(-,root,root,-)
%{_libdir}/libi40iw*.so
%config(noreplace) %{_sysconfdir}/libibverbs.d/i40iw.driver
%doc AUTHORS COPYING

%changelog
openSUSE Build Service is sponsored by