# 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: 5 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-1.2.5 Requires: compat-dapl-devel-1.2.5 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: librdmacm Requires: librdmacm-utils 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 %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 %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-1.2.5 compat-dapl-static-1.2.5 ibutils ibutils-libs libibcm libibcommon libibmad libibumad libibverbs libibverbs-utils libipathverbs libmthca librdmacm librdmacm-utils libsdp openib infiniband-diags mstflint perftest srptools tvflash opensm opensm-libs libmthca-static libipathverbs-static rm -rf /opt/kusu/lib/plugins/cfmclient/%{name}.remove EOF fi %files /etc/rc.kusu.d/S40ofed-setulimit.rc.py* %changelog * 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