# 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 # # %define _name platform-hpc Summary: Platform HPC Kit Name: kit-%{_name} Version: 1.0 Release: 7 License: GPL/BSD Group: System Environment/Base Vendor: Platform Computing Corporation BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot URL: http://www.platform.com BuildArch: noarch Source0: kitinfo %description This package is destined for the installer node and serves as an information container for the database. %prep %build %install rm -rf $RPM_BUILD_ROOT docdir=$RPM_BUILD_ROOT/www /usr/bin/install -d $docdir/kit_hpc_doc_source /usr/bin/install -m 444 %{_topdir}/docs/index.html $docdir /usr/bin/install -m 444 %{_topdir}/docs/readme.html $docdir /usr/bin/install -m 444 %{_topdir}/docs/kit_hpc_doc_source/* -t $docdir/kit_hpc_doc_source /usr/bin/install -m 444 %{_topdir}/kitinfo $RPM_BUILD_ROOT/kitinfo # Plugins? #/usr/bin/install -p $plugdir/genconfig #/usr/bin/install -m 444 %{_topdir}/plugins/ngedit/*.py $plugdir/ngedit %clean rm -rf $RPM_BUILD_ROOT %files # documentation /www/index.html /www/readme.html /www/kit_hpc_doc_source/* # Plugins? # /opt/kusu/lib/plugins/addhost/*.py* #kitinfo file /kitinfo %post if [ -e /var/lock/subsys/kusu-installer ]; then exit 0; fi PATH=$PATH:/opt/kusu/sbin export PATH if [ -d /opt/kusu/lib ]; then PYTHONPATH=/opt/kusu/lib64/python:/opt/kusu/lib/python export PYTHONPATH fi logfile=/var/log/kusu/%{_name}.log # include Node group creation and component association echo "POST Start" > $logfile # Put other stuff here.... echo "Stop post" >> $logfile %postun PATH=$PATH:/opt/kusu/sbin export PATH if [ -d /opt/kusu/lib ]; then PYTHONPATH=/opt/kusu/lib64/python:/opt/kusu/lib/python: export PYTHONPATH fi logfile=/var/log/kusu/%{_name}.log touch $logfile echo "Start postun" >> $logfile exit 0 %changelog * Thu Jul 31 2008 Mike Frisch 1.0-6 - Remove duplicate INSERT (#110723) * Tue Jul 29 2008 Mike Frisch 1.0-5 - Do not log to /tmp/platform_hpc.log (#112897) * Tue May 20 2008 Mike Frisch 1.0-4 - Fixed dependency problem with mvapich1 (#109012) * Thu Mar 27 2008 Mike Frisch 1.0-2 - Remove AutoReq tag at the request of Red Hat * Thu Mar 20 2008 Mike Frisch 1.0-1 - Change location of Kusu installer lock file