fix a problem in perl-xCAT.spec for git commit id

This commit is contained in:
ligc 2014-04-02 05:30:14 -04:00
parent f88f454e9a
commit 40319ab858
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ if [ -z "$2" ]
fi
VER=$1
GITREF="git $2, "
GITREF="git commit $2, "
BUILDDATE=`date`
#echo ". '(built $BUILDDATE)'"

View File

@ -23,7 +23,7 @@ Provides: perl-xCAT = %{epoch}:%{version}
Provides perl xCAT libraries for core functionality. Required for all xCAT installations.
Includes xCAT::Table, xCAT::NodeRange, among others.
%define gitinfo %(git log -n 1 | head -n 1)
%define gitinfo %(git log -n 1 | head -n 1 | cut -f 2 -d ' ')
%define zvm %(if [ "$zvm" = "1" ];then echo 1; else echo 0; fi)
%define fsm %(if [ "$fsm" = "1" ];then echo 1; else echo 0; fi)