File librdmacm.spec of Package librdmacm
#
# spec file for package librdmacm
#
# 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/
#
%define so_version 1
Name: librdmacm
Version: 1.0.19.1
Release: 0
Summary: RDMA cm library
License: BSD-2-Clause or GPL-2.0
Group: Productivity/Networking/Other
Url: http://www.openfabrics.org
Source0: https://www.openfabrics.org/downloads/rdmacm/%{name}-%{version}.tar.gz
Source99: baselibs.conf
Patch0: librdmacm-need_pthread.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libibverbs-devel
BuildRequires: libtool
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
RDMA cm library
%package -n librdmacm%{so_version}
Summary: RDMA cm runtime library
Group: System/Libraries
Obsoletes: librdmacm < %{version}
Provides: librdmacm = %{version}
%description -n librdmacm%{so_version}
This package contains the RGM cm runtime library.
%package devel
Summary: Development files for the librdmacm library
Group: Development/Libraries/C and C++
Requires: %{name}%{so_version} = %{version}
Requires: libibverbs-devel
%description devel
Development files for the librdmacm library.
%package tools
Summary: Tools and example programs using the RDMA cm library
Group: Productivity/Networking/Other
%description tools
Tools and example programs that use the RDMA cm library.
%prep
%setup -q
%patch0
# These files are empty and configure tells automake these are
# foreign sources.
rm -f ChangeLog NEWS INSTALL
%build
autoreconf -fvi
%configure \
--with-pic \
--disable-silent-rules \
--disable-static
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{name}%{so_version} -p /sbin/ldconfig
%postun -n %{name}%{so_version} -p /sbin/ldconfig
%files tools
%defattr(-, root, root)
%dir %{_libdir}/rsocket
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man7/*
%files -n %{name}%{so_version}
%defattr(-, root, root)
%doc COPYING
%{_libdir}/librdmacm.so.*
%{_libdir}/rsocket/librspreload.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/rdma
%{_includedir}/infiniband/ib.h
%{_libdir}/librdmacm.so
%{_libdir}/rsocket/librspreload.so
%{_mandir}/man3/*
%changelog