File libibcm.spec of Package libibcm

#
# spec file for package libibcm (Version 1.0.5)
#
# Copyright (c) 2009-2012 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/
#

Name:           libibcm
Summary:        Userspace Infiniband Connection Management API
Version:        1.0.5
Release:        5
License:        GPL-2.0 or BSD-2-Clause
Group:          Productivity/Networking/System
Source0:        http://www.openfabrics.org/downloads/%{name}-%{version}.tar.gz
Url:            http://www.openfabrics.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibverbs-devel
BuildRequires:  automake autoconf libtool
# bug437293
%ifarch ppc64
Obsoletes:      libibcm-64bit
%endif
#

%define so_major 1
%define lib_name %{name}%{so_major}

%description
Along with the OpenIB kernel drivers, libibcm provides a userspace
InfiniBand Connection Managment API.


%package     -n %{lib_name}
Summary:        Infiniband Connection Management runtime library
Group:          System/Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibverbs-devel
# bug437293
%ifarch ppc64
Obsoletes:      libibcm-64bit
%endif
#

%description -n %lib_name
Along with the OpenIB kernel drivers, libibcm provides a userspace
InfiniBand Connection Managment API.


%package        devel
Group:          Development/Libraries/C and C++
Summary:        Development files for the libibcm library
Requires:       %{lib_name} = %{version} libibverbs-devel
# bug437293
%ifarch ppc64
Obsoletes:      libibcm-devel-64bit
%endif

%description    devel
Development files for the libibcm library.


%package        devel-static
Group:          Development/Libraries/C and C++
Summary:        Libibcm static library
Requires:       %{name}-devel = %{version}
# bug437293
%ifarch ppc64
Obsoletes:      libibcm-devel-64bit
%endif

%description    devel-static
This package conatains the Libibcm static library.


%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%makeinstall

%post -n %{lib_name} -p /sbin/ldconfig

%postun -n %{lib_name} -p /sbin/ldconfig

%files -n %{lib_name}
%defattr(-, root, root)
%doc COPYING
%_libdir/libibcm.so.*

%files devel
%defattr(-,root,root)
%_includedir/infiniband/cm.h
%_includedir/infiniband/cm_abi.h
%_libdir/libibcm.so

%files devel-static
%defattr(-,root,root)
%_libdir/libibcm.a
%_libdir/libibcm.la

%changelog
openSUSE Build Service is sponsored by