File libusnic_verbs-rdmav2.spec of Package libusnic_verbs-rdmav2
#
# spec file for package libusnic_verbs-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/
#
# Version magic
%{!?usnic_release: %define usnic_release SUSE_%{expand:%(date +%Y%m%d_%H%M)}}
%define extra_version .sles12sp0
Name: libusnic_verbs-rdmav2
Summary: Cisco UCS InfiniBand HCA Userspace Driver
License: BSD-2-Clause
Group: System/Libraries
Version: 1.1.0.237
Release: 0
Url: http://cisco.com/
Source: libusnic_verbs-%{version}%{extra_version}.src.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libibverbs-devel >= 1.1.5
BuildRequires: libnl3-devel
BuildRequires: libtool
BuildRequires: pkgconfig
Requires: rdma
# Enable valgrind?
%define config_valgrind --without-valgrind
%{?valgrind: %define version_b %{version}_vg}
#Supplements: modalias()
%description
libusnic_verbs provides a device-specific userspace driver for Cisco
Virtual NICs for use with the libibverbs library.
%package pingpong
Summary: Small usnic program
Group: System/Libraries
%description pingpong
The cojntained program runs a pingpong traffic test between two servers
through usnic devices.
%prep
%setup -q -n libusnic_verbs-%{version}%{extra_version}
mkdir -p m4
%build
autoreconf -fi
%configure --disable-silent-rules
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install install-usnicconfDATA
rm %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/libusnic_verbs.so
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README KNOWN_ISSUES
%{_libdir}/libusnic_verbs-rdmav2.so
%dir %_sysconfdir/libibverbs.d
%config(noreplace) %{_sysconfdir}/libibverbs.d/usnic.driver
%files pingpong
%defattr(-,root,root,-)
%{_bindir}/usnic_udp_pingpong
%changelog