1 # TODO: --enable-mcm (BR: libscif), --enable-coll-type=fca (BR: libfca)
2 Summary: Userspace access to RDMA devices using OS-agnostic DAT APIs
3 Summary(pl.UTF-8): Dostęp z przestrzeni użytkownika do urządzeń RDMA poprzez API DAT
7 License: CPL v1.0 or BSD or GPL v2
9 Source0: https://www.openfabrics.org/downloads/dapl/%{name}-%{version}.tar.gz
10 # Source0-md5: 7dc10c55fa54a4d41824908e8a0f9624
11 Patch0: %{name}-link.patch
12 Patch1: %{name}-include.patch
13 Patch2: %{name}-ibacm.patch
14 URL: http://www.openfabrics.org/
15 BuildRequires: autoconf >= 2.57
16 BuildRequires: automake
17 BuildRequires: ibacm-devel
18 BuildRequires: libibverbs-devel >= 1.1.4
19 BuildRequires: librdmacm-devel
20 BuildRequires: libtool
21 Requires: libibverbs >= 1.1.4
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Along with the OpenFabrics kernel drivers, libdat2 and libdapl provide
26 a userspace RDMA API that supports DAT 2.0 specification and
27 InfiniBand transport extensions for atomic operations and RDMA write
30 %description -l pl.UTF-8
31 Wraz z modułami jądra OpenFabrics, libdat2 i libdapl dostarczają API
32 RDMA w przestrzeni użytkownika, obsługujące specyfikację DAT 2.0 wraz
33 z rozszerzeniami transportu InfiniBand dla operacji atomowych i zapisu
34 RDMA danych bezpośrednich.
37 Summary: Header files for libdat2 library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdat2
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
41 Requires: libibverbs-devel >= 1.1.4
44 Header files for libdat2 library.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki libdat2.
50 Summary: Static libdat2 library
51 Summary(pl.UTF-8): Statyczna biblioteka libdat2
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 This package contains the static libdat2 library.
58 %description static -l pl.UTF-8
59 Ten pakiet zawiera statyczną bibliotekę libdat2.
75 --disable-silent-rules
79 rm -rf $RPM_BUILD_ROOT
81 %{__make} -j1 install \
82 DESTDIR=$RPM_BUILD_ROOT
84 # modules dlopened by soname
85 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdapl*.{so,la,a}
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %defattr(644,root,root,755)
95 # LICENSE is CPL, LICENSE2 is BSD, LICENSE3 is GPL (not included here)
96 %doc AUTHORS COPYING ChangeLog LICENSE.txt LICENSE2.txt README
97 %attr(755,root,root) %{_bindir}/dapltest
98 %attr(755,root,root) %{_bindir}/dtest
99 %attr(755,root,root) %{_bindir}/dtestcm
100 %attr(755,root,root) %{_bindir}/dtestsrq
101 %attr(755,root,root) %{_bindir}/dtestx
102 %attr(755,root,root) %{_libdir}/libdat2.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libdat2.so.2
104 %attr(755,root,root) %{_libdir}/libdaplofa.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libdaplofa.so.2
106 %attr(755,root,root) %{_libdir}/libdaploscm.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libdaploscm.so.2
108 %attr(755,root,root) %{_libdir}/libdaploucm.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libdaploucm.so.2
110 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dat.conf
111 %{_mandir}/man1/dapltest.1*
112 %{_mandir}/man1/dtest.1*
113 %{_mandir}/man5/dat.conf.5*
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libdat2.so
118 %{_libdir}/libdat2.la
122 %defattr(644,root,root,755)