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

# norootforbuild

%define so_version 1

Name:           librdmacm
Summary:        RDMA cm library
Release:        0
License:        BSD-2-Clause or GPL-2.0
Group:          Productivity/Networking/Other
Patch0:         librdmacm-need_pthread.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibverbs-devel
BuildRequires:  automake autoconf libtool

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.

%setup -q
# These files are empty and configure tells automake these are
# foreign sources.
rm -f ChangeLog NEWS INSTALL

autoreconf -fi
%configure --with-pic --disable-silent-rules
make %{?_smp_mflags}

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

%files -n %{name}%{so_version}
%defattr(-, root, root)

%files devel

%files devel-static

openSUSE Build Service is sponsored by