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.18.1
Release: 0
License: BSD-2-Clause or GPL-2.0
Group: Productivity/Networking/Other
Source0: http://www.openfabrics.org/downloads/rdmacm/%{name}-%{version}.tar.gz
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
Obsoletes: librdmacm < %{version}
Provides: librdmacm = %{version}
%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
%description devel
Development files for the librdmacm library.
%package devel-static
Group: Development/Libraries/C and C++
Summary: Static librdmacm library
Requires: %{name}-devel %{version}
%description devel-static
This package contains the static 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 -fi
%configure --with-pic --disable-silent-rules
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
%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/*
%files devel-static
%defattr(-,root,root)
%_libdir/librdmacm.a
%_libdir/librdmacm.la
%_libdir/rsocket/librspreload.a
%_libdir/rsocket/librspreload.la
%changelog