# Copyright (C) 2008 Platform Computing Inc # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # # %define version 1.4 %define OFEDSRC OFED-1.4.tgz %define ADD_SCRIPT update_release.sh %define ADD_PATCH install.pl.patch Summary: OFED Source Code Name: ofed-src Version: %{version} Release: 2 License: BSD Group: System Environment/Base Vendor: Platform Computing Corporation BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildArch: noarch Source: %{OFEDSRC} Source1: %{ADD_SCRIPT} Source2: %{ADD_PATCH} %description This package contains the OFED source code as provided by Openfabrics Alliance at http://www.openfabrics.org/ and all needed scripts / patches for the OCS integration %prep %install TARLOC=$OLDPWD rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/opt/ofed/src cd $RPM_BUILD_ROOT/opt/ofed/src tar zxvf $TARLOC/%{OFEDSRC} cp $TARLOC/%{ADD_SCRIPT} . cp $TARLOC/%{ADD_PATCH} . %clean rm -rf $RPM_BUILD_ROOT %files /opt/ofed/src/OFED-1.4 /opt/ofed/src/update_release.sh /opt/ofed/src/install.pl.patch %pre # PRE Install section %post # POST Install section %preun # PREUN section %postun # POSTUN section %changelog * Wed Dec 10 2008 Mehdi Bozzo-Rey 1.4-2 - update for OFED 1.4 release * Wed Oct 29 2008 Mehdi Bozzo-Rey 1.4-1 - ofed 1.4-rc2 support, add patch and script (updated rev. for the ofed kit) * Thu Mar 27 2008 Mike Frisch 1.3-2 - Removed AutoReq tag at the request of Red Hat