File librdmacm.spec of Package librdmacm
#
# spec file for package librdmacm (Version 1.0.17)
#
# Copyright (c) 2009-2014 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/
#
# norootforbuild
%define so_version 1
Name: librdmacm
Summary: RDMA cm library
Version: 1.0.17
Release: 0
# bug437293
%ifarch ppc64
Obsoletes: librdmacm-64bit
%endif
#
License: BSD-3-Clause or GPL-2.0+
Group: Productivity/Networking/Other
Source0: https://www.openfabrics.org/downloads/rdmacm/%{name}-%{version}.tar.gz
Source1: baselibs.conf
Patch0: librdmacm-need_pthread.patch
Url: http://www.openfabrics.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libibverbs-devel
BuildRequires: automake autoconf libtool
%description
RDMA cm library
%package -n librdmacm%{so_version}
Summary: RDMA cm runtime library
Group: System/Libraries
%description -n librdmacm%{so_version}
This package contains the RGM cm runtime library.
%package devel
Group: Development/Libraries/C and C++
Summary: Development files for the librdmacm library
Requires: %{name}%{so_version} = %{version} libibverbs-devel
# bug437293
%ifarch ppc64
Obsoletes: librdmacm-devel-64bit
%endif
#
%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
%build
autoreconf -fi
%configure --with-pic --disable-silent-rules --disable-static
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
find %{buildroot}%{_libdir} -name \*.so -o -name \*.la -exec rm {} \;
%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)
%_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