2014-09-25 02:58:51 +00:00
|
|
|
%define version 2.9
|
2012-12-04 18:57:37 +00:00
|
|
|
%ifarch i386 i586 i686 x86
|
|
|
|
%define tarch x86
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
|
|
%define tarch x86_64
|
|
|
|
%endif
|
|
|
|
%ifarch ppc ppc64
|
|
|
|
%define tarch ppc64
|
|
|
|
%endif
|
|
|
|
BuildArch: noarch
|
2012-12-06 14:41:46 +00:00
|
|
|
%define name xCAT-genesis-base-%{tarch}
|
2012-12-04 18:57:37 +00:00
|
|
|
%define __spec_install_post :
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%define __prelink_undo_cmd %{nil}
|
|
|
|
Release: snap%(date +"%Y%m%d%H%M")
|
|
|
|
Epoch: 1
|
|
|
|
AutoReq: false
|
|
|
|
Prefix: /opt/xcat
|
|
|
|
AutoProv: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Group: System/Utilities
|
|
|
|
License: Various (see individual packages for details)
|
|
|
|
Vendor: IBM Corp.
|
|
|
|
Summary: xCAT Genesis netboot image
|
|
|
|
URL: http://xcat.org
|
2012-12-06 14:41:46 +00:00
|
|
|
Source1: xCAT-genesis-base-%{tarch}.tar.bz2
|
2012-12-04 18:57:37 +00:00
|
|
|
|
|
|
|
Buildroot: %{_localstatedir}/tmp/xCAT-genesis
|
|
|
|
Packager: IBM Corp.
|
|
|
|
|
|
|
|
%Description
|
|
|
|
xCAT genesis (Genesis Enhanced Netboot Environment for System Information and Servicing) is a small, embedded-like environment for xCAT's use in discovery and management actions when interaction with an OS is infeasible.
|
2012-12-06 14:41:46 +00:00
|
|
|
This package comprises the base platform with most of the xCAT specific behavior left to xCAT-genesis-scripts package.
|
2012-12-04 18:57:37 +00:00
|
|
|
%Prep
|
|
|
|
|
|
|
|
|
|
|
|
%Build
|
|
|
|
|
|
|
|
%Install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT
|
|
|
|
cd $RPM_BUILD_ROOT
|
|
|
|
tar jxf %{SOURCE1}
|
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ "$1" == "2" ]; then #only on upgrade, as on install it's probably not going to work...
|
|
|
|
if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image
|
|
|
|
. /etc/profile.d/xcat.sh
|
2014-07-28 02:43:38 +00:00
|
|
|
#mknb %{tarch}
|
|
|
|
echo "If you are installing/updating xCAT-genesis-base separately, not as part of installing/updating all of xCAT, run 'mknb <arch> manually'"
|
|
|
|
mkdir -p /etc/xcat
|
|
|
|
touch /etc/xcat/genesis-base-updated
|
2012-12-04 18:57:37 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%Files
|
|
|
|
%defattr(-,root,root)
|
2014-04-03 20:06:02 +00:00
|
|
|
/opt/xcat/share/xcat/netboot/genesis/%{tarch}
|