Make xCAT rpm to install all files in /install/winpostscripts/* for Windows support

This commit is contained in:
daniceexi 2013-12-17 02:23:38 -05:00
parent 7c81f38a80
commit 0851987c3b
2 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,7 @@ function makexcat {
tar --exclude .svn --exclude upflag -czf $RPMROOT/SOURCES/postscripts.tar.gz postscripts LICENSE.html
tar --exclude .svn -czf $RPMROOT/SOURCES/prescripts.tar.gz prescripts
tar --exclude .svn -czf $RPMROOT/SOURCES/templates.tar.gz templates
tar --exclude .svn -czf $RPMROOT/SOURCES/winpostscripts.tar.gz winpostscripts
cp xcat.conf $RPMROOT/SOURCES
cp xCATMN $RPMROOT/SOURCES
cd - >/dev/null

View File

@ -17,6 +17,7 @@ Source5: xCATMN
%ifos linux
Source4: prescripts.tar.gz
Source6: winpostscripts.tar.gz
%endif
Provides: xCAT = %{version}
@ -73,6 +74,7 @@ hardware management and software management.
%ifos linux
tar zxf %{SOURCE2}
tar zxf %{SOURCE4}
tar zxf %{SOURCE6}
%else
rm -rf postscripts
cp %{SOURCE2} /opt/freeware/src/packages/BUILD
@ -132,6 +134,7 @@ cd $RPM_BUILD_ROOT/install
%ifos linux
tar zxf %{SOURCE2}
tar zxf %{SOURCE4}
tar zxf %{SOURCE6}
%else
cp %{SOURCE2} $RPM_BUILD_ROOT/install
gunzip -f postscripts.tar.gz
@ -189,6 +192,7 @@ exit 0
/etc/xCATMN
/install/postscripts
/install/prescripts
/install/winpostscripts
%defattr(-,root,root)
%postun