File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919CWD=` pwd`
2020RPMDIR=$CWD /../../dist/rpmbuild
21-
21+ PACK_PROJECT=cloudstack
2222
2323
2424VERSION=` (cd ../../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep ' ^[0-9]\.' `
3434fi
3535
3636mkdir -p $RPMDIR /SPECS
37- mkdir -p $RPMDIR /SOURCES/cloudstack -$VERSION
37+ mkdir -p $RPMDIR /SOURCES/$PACK_PROJECT -$VERSION
3838
3939
40- (cd ../../; tar -c --exclude .git --exclude dist . | tar -C $RPMDIR /SOURCES/cloudstack -$VERSION -x )
41- (cd $RPMDIR /SOURCES/; tar -czf cloudstack -$VERSION .tgz cloudstack -$VERSION )
40+ (cd ../../; tar -c --exclude .git --exclude dist . | tar -C $RPMDIR /SOURCES/$PACK_PROJECT -$VERSION -x )
41+ (cd $RPMDIR /SOURCES/; tar -czf $PACK_PROJECT -$VERSION .tgz $PACK_PROJECT -$VERSION )
4242
4343cp cloud.spec $RPMDIR /SPECS
4444
45- (cd $RPMDIR ; rpmbuild -ba SPECS/cloud.spec " -D_topdir $RPMDIR " " $DEFVER " " $DEFREL " " $DEFPRE " )
45+ (cd $RPMDIR ; rpmbuild -ba SPECS/cloud.spec " -D_topdir $RPMDIR " " $DEFVER " " $DEFREL " " $DEFPRE " )
You can’t perform that action at this time.
0 commit comments