File ib-bonding.spec of Package ib-bonding

#
# spec file for package ib-bonding (Version 0.9.0)
#
# 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:           ib-bonding
Url:            http://www.openfabrics.org
Summary:        infiniband bonding tool
Version:        0.9.0
Release:        137
Source0:        %{name}-%{version}.tar.bz2
Source1:        README
Source2:        conf.sysconfig
Group:          System/Console
License:        GPL v2 or later
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  kernel-source kernel-syms module-init-tools
PreReq:         %fillup_prereq

%description
This package provides a bonding tool which is capable of enslaving IP
over InfiniBand (IPoIB) network devices.



%prep
%setup -q
cp %{S:1} %{S:2} .

%build
# nothing here

%install
# install the ib-bond script
install -d ${RPM_BUILD_ROOT}%_bindir/
sed 's/VERSION=/VERSION=%{version}/g; s/RELEASE=/RELEASE=%{release}/g' bin/ib-bond > ${RPM_BUILD_ROOT}%_bindir/ib-bond
chmod 755  ${RPM_BUILD_ROOT}%_bindir/ib-bond
# install the sysconfig configuration
install -m 700 -D conf.sysconfig ${RPM_BUILD_ROOT}/var/adm/fillup-templates/sysconfig.infiniband-%name

%clean
rm -rf ${RPM_BUILD_ROOT}

%post
%{fillup_only -an infiniband}

%files
%defattr(-, root, root)
%doc docs/ib-bonding.txt README
%_bindir/ib-bond
/var/adm/fillup-templates/sysconfig.infiniband-%name

%changelog
* Mon Oct 27 2008 jjolly@suse.de
- Update to version from OFED 1.4 rc3
* Fri Nov 30 2007 ro@suse.de
- drop the kmp package, all patches are in kernel now
* Thu Aug 09 2007 ro@suse.de
- build using source from kernel and patches/fixes on top
* Mon Jul 23 2007 hvogel@suse.de
- Fix sysconfig filename
* Thu Jul 12 2007 hvogel@suse.de
- move the kernel modules to the right directory
* Thu Jul 12 2007 hvogel@suse.de
- Add GPL v2 LICENSE files [#291345]
* Wed Jul 11 2007 hvogel@suse.de
- Put configuration into the infiniband sysconfig file
* Wed Jul 11 2007 hvogel@suse.de
- Initial Package, Version 0.9.0