File compat-dapl.spec of Package compat-dapl

#
# spec file for package compat-dapl (Version 1.2.11)
#
# Copyright (c) 2008 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


Name:           compat-dapl
Summary:        Userspace RDMA API (supports DAT 1.2 specification)
Version:        1.2.11
Release:        3
License:        BSD 3-Clause; GPL v2 or later
Group:          System/Libraries
Source0:        %{name}-%{version}.tar.bz2
Patch1:         compat-dapl-1.2.10-build_errors.patch
Patch2:         compat-dapl-ia64_buildfix.patch
# Patch2:         dapl.atomic.patch
# Patch3:         dapl.arch.patch
Url:            http://www.openfabrics.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibverbs-devel librdmacm-devel
ExcludeArch:    s390 s390x

%description
Along with the OpenIB kernel drivers, libdat and libdapl provides a
userspace RDMA API that supports DAT 1.2 specification



Authors:
--------
    Caitlin Bestler
    Philip Christopher
    Jay Danielsen
    Arlin Davis
    Tom Duffy
    Matthew Finlay
    Jimmy Hill
    James Lentini
    Gil Rubin
    Steve Sears
    Randy Smith
    Anthony Topper
    Steve Wise

%package devel
License:        BSD 3-Clause; GPL v2 or later
Group:          System/Libraries
Summary:        Userspace RDMA API (supports DAT 1.2 specification)
Requires:       %{name} = %{version} libibverbs-devel librdmacm-devel

%description devel
Along with the OpenIB kernel drivers, libdat and libdapl provides a
userspace RDMA API that supports DAT 1.2 specification



Authors:
--------
    Caitlin Bestler
    Philip Christopher
    Jay Danielsen
    Arlin Davis
    Tom Duffy
    Matthew Finlay
    Jimmy Hill
    James Lentini
    Gil Rubin
    Steve Sears
    Randy Smith
    Anthony Topper
    Steve Wise

%prep
%setup -q
%patch1
%patch2
# %patch2 -p1
# %patch3 -p1

%build
%{expand: %%define optflags %{optflags} -fno-strict-aliasing}
%configure
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf ${RPM_BUILD_ROOT}

%post
/sbin/ldconfig
if test -e %_sysconfdir/dat.conf; then
	sed -e '/OpenIB-.*/d' < %_sysconfdir/dat.conf > /tmp/$$$$OpenIBdapl;
	cp /tmp/$$$$OpenIBdapl %_sysconfdir/dat.conf;
else touch %_sysconfdir/dat.conf;
fi;
echo OpenIB-cma u1.2 nonthreadsafe default libdaplcma.so.1 dapl.1.2 '"ib0 0" ""' >> %_sysconfdir/dat.conf;
echo OpenIB-cma-1 u1.2 nonthreadsafe default libdaplcma.so.1 dapl.1.2 '"ib1 0" ""' >> %_sysconfdir/dat.conf;
echo OpenIB-mthca0-1 u1.2 nonthreadsafe default libdaplscm.so.1 dapl.1.2 '"mthca0 1" ""' >> %_sysconfdir/dat.conf;
echo OpenIB-mthca0-2 u1.2 nonthreadsafe default libdaplscm.so.1 dapl.1.2 '"mthca0 2" ""' >> %_sysconfdir/dat.conf;
echo OpenIB-mlx4_0-1 u1.2 nonthreadsafe default libdaplscm.so.1 dapl.1.2 '"mlx4_0 1" ""' >> %_sysconfdir/dat.conf;
echo OpenIB-mlx4_0-2 u1.2 nonthreadsafe default libdaplscm.so.1 dapl.1.2 '"mlx4_0 2" ""' >> %_sysconfdir/dat.conf;
echo OpenIB-iwarp u1.2 nonthreadsafe default libdaplcma.so.1 dapl.1.2 '"eth2 0" ""' >> %_sysconfdir/dat.conf;

%postun
/sbin/ldconfig
if test -e %_sysconfdir/dat.conf; then
	sed -e '/OpenIB-.* u1/d' < %_sysconfdir/dat.conf > /tmp/$$$$OpenIBdapl;
	cp /tmp/$$$$OpenIBdapl %_sysconfdir/dat.conf;
fi;

%files
%defattr(-, root, root)
# %config %_sysconfdir/dat.conf
%_bindir/*
%_libdir/libdaplcma.so.*
%_libdir/libdaplscm.so.*
%_libdir/libdat.so.*
%_mandir/man1/*
%_mandir/man5/*

%files devel
%defattr(-, root, root)
%_includedir/dat/
%_libdir/libdaplcma.a
%_libdir/libdaplcma.la
%_libdir/libdaplcma.so
%_libdir/libdaplscm.a
%_libdir/libdaplscm.la
%_libdir/libdaplscm.so
%_libdir/libdat.a
%_libdir/libdat.la
%_libdir/libdat.so

%changelog
* Thu Nov 06 2008 ihno@suse.de
- adding baselibs.conf
* Mon Oct 27 2008 ro@suse.de
- fix build on ia64
* Mon Oct 27 2008 jjolly@suse.de
- Updated to v1.2.11 from OFED 1.4 rc3
- Updated the build error patch
* Fri Sep 12 2008 jjolly@suse.de
- Updated to v1.2.10 and changed the package name to compat-dapl
* Tue Mar 04 2008 jjolly@suse.de
- Updated to version 1.2.5 from the OFED 1.3 GA release
- Removed memset patch (fix is implemented in base)
- Fixed the atomic patch to match changes in code
- Fixed the arch patch to match changes in code
* Thu Aug 09 2007 olh@suse.de
- enable build on powerpc
* Thu Aug 09 2007 olh@suse.de
- remove inclusion of asm/atomic.h, use gcc built-ins instead
  build parallel
* Tue Aug 07 2007 hvogel@suse.de
- Update to version 1.2.1 from OFED 1.2c
* Fri Jun 22 2007 hvogel@suse.de
- Fix some issues with the dtest test case
* Wed Jun 20 2007 hvogel@suse.de
- Initial Package, Version 1.2
openSUSE Build Service is sponsored by