# 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: Platform OFED Component Name: component-Platform-OFED-v1_3 Version: 1.3 Release: 7 License: Kit is GPL. OpenIB.org is BSD license Group: System Environment/Base Vendor: Platform Computing Corporation BuildArchitectures: noarch BuildRoot: %{_tmppath}/%{name}.%{version}-buildroot # Use Exact versions to allow different versions of this kit to co-exist Requires: dapl = 1.2.5 Requires: dapl-utils = 1.2.5 Requires: ibsim = 0.4 Requires: ibutils = 1.2 Requires: ibvexdmtools = 0.0.1 Requires: infiniband-diags = 1.3.6 Requires: iscsi-initiator-utils = 2.0 Requires: kernel-ib = 1.3 Requires: libcxgb3 = 1.1.4 Requires: libibcm = 1.0.2 Requires: libibcommon = 1.0.8 Requires: libibcommon-static = 1.0.8 Requires: libibmad = 1.1.6 Requires: libibmad-static = 1.1.6 Requires: libibumad = 1.1.7 Requires: libibumad-static = 1.1.7 Requires: libibverbs = 1.1.1 Requires: libibverbs-utils = 1.1.1 Requires: libipathverbs = 1.1 Requires: libmlx4 = 1.0 Requires: libmthca = 1.0.4 Requires: libnes = 0.5 Requires: librdmacm = 1.0.6 Requires: librdmacm-utils = 1.0.6 Requires: libsdp = 1.1.99 Requires: mpi-selector = 1.0.0 Requires: mstflint = 1.3 Requires: ofed-docs = 1.3 Requires: ofed-scripts = 1.3 Requires: ofed-src = 1.3 Requires: open-iscsi = 2.0 Requires: opensm = 3.1.10 Requires: opensm-libs = 3.1.10 Requires: opensm-static = 3.1.10 Requires: perftest = 1.2 Requires: qlvnictools = 0.0.1 Requires: qperf = 0.4.0 Requires: sdpnetstat = 1.60 Requires: srptools = 0.0.4 Requires: tvflash = 0.9.0 %description This package is a meta package for OFED packages %prep %pre %install rm -rf $RPM_BUILD_ROOT /usr/bin/install -d $RPM_BUILD_ROOT/etc/rc.kusu.d/ /usr/bin/install -m 755 %{_topdir}/S40ofed-setulimit.rc.py $RPM_BUILD_ROOT/etc/rc.kusu.d/ %post # Place any component post install code here # Fix up the paths for OpenSM daemons if [ -f /etc/init.d/opensm ]; then /bin/sed -i 's/\/usr\/sbin\/opensm/\/opt\/ofed\/sbin\/opensm/' /etc/init.d/opensm /bin/sed -i 's/\/usr\/sbin\/sldd.sh/\/opt\/ofed\/sbin\/sldd.sh/' /etc/init.d/opensm fi # Problem #109958 if [ ! -e /opt/ofed/lib64/libdat.so ]; then ln -sf /opt/ofed/lib64/libdat.so.1.0.2 /opt/ofed/lib64/libdat.so fi %preun %postun # 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 \ ibsim \ ibutils \ ibvexdmtools \ infiniband-diags \ iscsi-initiator-utils \ kernel-ib \ libcxgb3 \ libibcm \ libibcommon \ libibcommon-static \ libibmad \ libibmad-static \ libibumad \ libibumad-static \ libibverbs \ libibverbs-utils \ libipathverbs \ libmlx4 \ libmthca \ libnes \ librdmacm \ librdmacm-utils \ libsdp \ mpi-selector \ mstflint \ ofed-docs \ ofed-scripts \ ofed-src \ open-iscsi \ opensm \ opensm-libs \ opensm-static \ perftest \ qlvnictools \ qperf \ sdpnetstat \ srptools \ tvflash rm -rf /opt/kusu/lib/plugins/cfmclient/%{name}.remove EOF %files /etc/rc.kusu.d/S40ofed-setulimit.rc.py* %changelog * Wed Oct 29 2008 Mehdi Bozzo-Rey 1.3-7 - fix for (#117635) : added BuildRoot fixed the install part * Fri Jun 13 2008 Mike Frisch 1.3-6 - Added missing symlink to libdat.so (#109958)