+# TODO: --enable-mcm (BR: libscif), --enable-coll-type=fca (BR: libfca)
Summary: Userspace access to RDMA devices using OS-agnostic DAT APIs
Summary(pl.UTF-8): Dostęp z przestrzeni użytkownika do urządzeń RDMA poprzez API DAT
Name: dapl
-Version: 2.0.34
+Version: 2.1.10
Release: 1
License: CPL v1.0 or BSD or GPL v2
Group: Libraries
-Source0: http://www.openfabrics.org/downloads/dapl/%{name}-%{version}.tar.gz
-# Source0-md5: d8114711c07fa9f4b7e52ab2803a9e8d
+Source0: https://www.openfabrics.org/downloads/dapl/%{name}-%{version}.tar.gz
+# Source0-md5: 50df18f8011a37da88f4886514b9dd96
Patch0: %{name}-link.patch
+Patch1: %{name}-include.patch
+Patch2: %{name}-ibacm.patch
URL: http://www.openfabrics.org/
BuildRequires: autoconf >= 2.57
BuildRequires: automake
-BuildRequires: libibverbs-devel
+BuildRequires: ibacm-devel
+BuildRequires: libibverbs-devel >= 1.1.4
BuildRequires: librdmacm-devel
BuildRequires: libtool
+Requires: libibverbs >= 1.1.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdat2
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: libibverbs-devel
+Requires: libibverbs-devel >= 1.1.4
%description devel
Header files for libdat2 library.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure
+%configure \
+ --enable-acm \
+ --disable-silent-rules
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+%{__make} -j1 install \
DESTDIR=$RPM_BUILD_ROOT
# modules dlopened by soname
%attr(755,root,root) %{_bindir}/dapltest
%attr(755,root,root) %{_bindir}/dtest
%attr(755,root,root) %{_bindir}/dtestcm
+%attr(755,root,root) %{_bindir}/dtestsrq
%attr(755,root,root) %{_bindir}/dtestx
%attr(755,root,root) %{_libdir}/libdat2.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libdat2.so.2
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dat.conf
%{_mandir}/man1/dapltest.1*
%{_mandir}/man1/dtest.1*
+%{_mandir}/man1/dtestcm.1*
+%{_mandir}/man1/dtestsrq.1*
+%{_mandir}/man1/dtestx.1*
%{_mandir}/man5/dat.conf.5*
%files devel