# Copyright (C) 2007 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 # # # Summary: RHEL OFED Component Name: component-RHEL-OFED Version: 1.3 Release: 10 License: GPL/BSD Group: System Environment/Base Vendor: Platform Computing Corporation BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Source: %{name}-%{version}.1.tar.gz # Use Exact versions if different versions of the kit can coexist Requires: dapl Requires: compat-dapl Requires: compat-dapl-devel Requires: dapl-utils Requires: ibutils Requires: ibutils-libs Requires: libibcm Requires: libibcommon Requires: libibmad Requires: libibumad Requires: libibverbs Requires: libibverbs-utils Requires: libipathverbs Requires: libmlx4 Requires: libmthca Requires: libcxgb3 Requires: libnes Requires: librdmacm Requires: librdmacm-utils Requires: librdmacm-devel Requires: libsdp Requires: openib Requires: infiniband-diags Requires: mstflint Requires: perftest Requires: srptools Requires: tvflash Requires: opensm Requires: opensm-libs Requires: libipathverbs-static Requires: libmthca-static Requires: libmlx4-static Requires: libnes-static Requires: libibverbs-devel Requires: libibcommon-devel Requires: libibumad-devel %description This package is a meta package for OFED packages %prep %setup -q -n %{name} %build mkdir -p $RPM_BUILD_ROOT %pre %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/rc.kusu.d install -m 0755 S40ofed-setulimit.rc.py $RPM_BUILD_ROOT/etc/rc.kusu.d %clean rm -rf $RPM_BUILD_ROOT %post # Place any component post install code here /etc/init.d/openibd restart %preun %postun if [ $1 -eq 0 ]; then # Place any component uninstall code here # Generate scripts for the CFM to remove other packages /bin/cat << 'EOF' >> /opt/kusu/lib/plugins/cfmclient/%{name}.remove #!/bin/sh yum -y remove dapl dapl-utils compat-dapl compat-dapl-devel ibutils ibutils-libs libibcm libibcommon libibmad libibumad libibverbs libibverbs-utils libipathverbs libmthca librdmacm librdmacm-utils librdmacm-devel libsdp openib infiniband-diags mstflint perftest srptools tvflash opensm opensm-libs libmthca-static libipathverbs-static libibcommon-devel libibumad-devel libibverbs-devel rm -rf /opt/kusu/lib/plugins/cfmclient/%{name}.remove EOF fi %files /etc/rc.kusu.d/S40ofed-setulimit.rc.py* %changelog * Tue Jan 13 2009 Mehdi Bozzo-Rey 1.3-10 - restart openibd after the install of the component * Mon Jan 12 2009 Mehdi Bozzo-Rey 1.3-9 - librdmacm-devel added (needed by mvapich2) * Mon Dec 29 2008 Mehdi Bozzo-Rey 1.3-8 - component update: some devel packages needed by mvapich (RHEL) - added libs for chelsio RNICs, NetEffect RNICs, Mellanox ConnectX * Tue Dec 9 2008 Mehdi Bozzo-Rey 1.3-6 - update for RHEL 5.3 * Tue Oct 28 2008 Mehdi Bozzo-Rey 1.3-5 - add compat-dapl-devel (ICR) * Fri Sep 19 2008 Mike Frisch 1.3-4 - Moved dependency on compat-dapl-static to devel package (#115681) * Tue Sep 11 2008 Mehdi Bozzo-Rey 1.3-3 - add compat-dapl, compat-dapl-static * Thu Aug 28 2008 Mehdi Bozzo-Rey 1.3-2 - add libmthca-static and libipathverbs-static * Mon Jun 9 2008 Mark Black 1.2.5-2 - When upgrading rpm do not create removal script * Thu Apr 10 2008 Mike Frisch 1.2.5-1 - Initial release