File libhfi1verbs-rdmav2.spec of Package libhfi1verbs-rdmav2

#
# spec file for package libhfi1verbs
#
# Copyright (c) 2016 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:           libhfi1verbs-rdmav2
Summary:        Intel Omni-Path HFI Userspace Driver
License:        BSD-3-Clause or GPL-2.0
Version:        1.3
Release:        0
Url:            https://github.com/01org/opa-libhfi1verbs
Group:          System/Libraries
Source:         libhfi1verbs-%version.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires: automake autoconf libtool

BuildRequires: libibverbs-devel

%description
libhfi1verbs provides a device-specific userspace driver for Intel Host
Fabric interface cards.  This driver is designed for use with the
libibverbs library.

%package static
Summary:   Development files for the libhfi1verbs driver
Group:     Development/Libraries/C and C++
Requires:  %{name} = %{version}-%{release}
#Obsoletes: libhfiverbs-devel TODO: required ?

%description static
Static version of libhfi1verbs that may be linked directly to an
application, which may be useful for debugging.

%prep
%setup -q -n libhfi1verbs-%version

%build
./autogen.sh
%configure
rm makefile
make %{?_smp_flags}

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# remove unpackaged files from the buildroot
rm -f $RPM_BUILD_ROOT%{_libdir}/libhfi1verbs.{la,so}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_libdir}/libhfi1verbs*.so
%doc AUTHORS COPYING README
%dir %_sysconfdir/libibverbs.d
%config %{_sysconfdir}/libibverbs.d/hfi1.driver

%files static
%defattr(-,root,root,-)
%{_libdir}/libhfi1verbs*.a

%changelog
openSUSE Build Service is sponsored by