mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-24 15:05:36 +00:00
Merge pull request #1941 from pdlun92/coral-rpm
Add skeleton files for xCAT-csm rpm
This commit is contained in:
@ -67,7 +67,7 @@ if [ -z "$UP" ]; then
|
||||
fi
|
||||
|
||||
# These are the rpms that should be built for each kind of xcat build
|
||||
ALLBUILD="perl-xCAT xCAT-client xCAT-server xCAT-test xCAT-buildkit xCAT xCATsn xCAT-genesis-scripts xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe"
|
||||
ALLBUILD="perl-xCAT xCAT-client xCAT-server xCAT-test xCAT-buildkit xCAT xCATsn xCAT-genesis-scripts xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe xCAT-csm"
|
||||
ZVMBUILD="perl-xCAT xCAT-server xCAT-UI"
|
||||
ZVMLINK="xCAT-client xCAT xCATsn"
|
||||
# xCAT and xCATsn have PCM specific configuration - conserver-xcat, syslinux-xcat
|
||||
@ -299,7 +299,7 @@ if [ "$OSNAME" = "AIX" ]; then
|
||||
fi
|
||||
|
||||
# Build the rest of the noarch rpms
|
||||
for rpmname in xCAT-client xCAT-server xCAT-IBMhpc xCAT-rmc xCAT-UI xCAT-test xCAT-buildkit xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe; do
|
||||
for rpmname in xCAT-client xCAT-server xCAT-IBMhpc xCAT-rmc xCAT-UI xCAT-test xCAT-buildkit xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe xCAT-csm; do
|
||||
if [[ " $EMBEDBUILD " != *\ $rpmname\ * ]]; then continue; fi
|
||||
if [ "$OSNAME" = "AIX" -a "$rpmname" = "xCAT-buildkit" ]; then continue; fi # do not build xCAT-buildkit on aix
|
||||
if [ "$OSNAME" = "AIX" -a "$rpmname" = "xCAT-SoftLayer" ]; then continue; fi # do not build xCAT-softlayer on aix
|
||||
|
1
xCAT-csm/csm.compute.rhels7.ppc64le.pkglist
Normal file
1
xCAT-csm/csm.compute.rhels7.ppc64le.pkglist
Normal file
@ -0,0 +1 @@
|
||||
#csm compute
|
1
xCAT-csm/csm.launch.rhels7.ppc64le.pkglist
Normal file
1
xCAT-csm/csm.launch.rhels7.ppc64le.pkglist
Normal file
@ -0,0 +1 @@
|
||||
#csm launch
|
1
xCAT-csm/csm.login.rhels7.ppc64le.pkglist
Normal file
1
xCAT-csm/csm.login.rhels7.ppc64le.pkglist
Normal file
@ -0,0 +1 @@
|
||||
#csm login
|
1
xCAT-csm/csm.service.rhels7.ppc64le.pkglist
Normal file
1
xCAT-csm/csm.service.rhels7.ppc64le.pkglist
Normal file
@ -0,0 +1 @@
|
||||
#csm service
|
1
xCAT-csm/csm.workloadmanager.rhels7.ppc64le.pkglist
Normal file
1
xCAT-csm/csm.workloadmanager.rhels7.ppc64le.pkglist
Normal file
@ -0,0 +1 @@
|
||||
#csm workload manager
|
1
xCAT-csm/install/postscripts/csm_post
Normal file
1
xCAT-csm/install/postscripts/csm_post
Normal file
@ -0,0 +1 @@
|
||||
#example postscript for CSM
|
53
xCAT-csm/xCAT-csm.spec
Normal file
53
xCAT-csm/xCAT-csm.spec
Normal file
@ -0,0 +1,53 @@
|
||||
Summary: Packages for installation of CSM nodes
|
||||
Name: xCAT-csm
|
||||
Version: %{?version:%{version}}%{!?version:%(cat Version)}
|
||||
Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")}
|
||||
Epoch: 4
|
||||
License: IBM
|
||||
Group: Applications/System
|
||||
Source: xCAT-csm-%{version}.tar.gz
|
||||
Packager: IBM Corp.
|
||||
Vendor: IBM Corp.
|
||||
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
|
||||
Prefix: /opt/xcat
|
||||
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
|
||||
|
||||
%ifos linux
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
Provides: xCAT-csm = %{epoch}:%{version}
|
||||
|
||||
Requires: xCAT
|
||||
|
||||
%description
|
||||
xCAT-csm provides Packages for installation of CSM nodes
|
||||
|
||||
%prep
|
||||
%setup -q -n xCAT-csm
|
||||
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/install/rh/
|
||||
mkdir -p $RPM_BUILD_ROOT/install/postscripts/csm/
|
||||
|
||||
cp csm* $RPM_BUILD_ROOT/%{prefix}/share/xcat/install/rh/
|
||||
cp install/postscripts/* $RPM_BUILD_ROOT/install/postscripts/csm/
|
||||
|
||||
%clean
|
||||
# This step does not happen until *after* the %files packaging below
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{prefix}
|
||||
/install/postscripts
|
||||
%doc
|
||||
|
||||
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user