Updated Branches: refs/heads/4.1 759b30134 -> 8b2aabe68
Commit review 9409 Added a global package name in the packaging script Signed-off-by: Hugo Trippaers <[email protected]> (cherry picked from commit 3279b4146526e2f4e77a06699887cb7ea141fc0b) Signed-off-by: Hugo Trippaers <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/8b2aabe6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8b2aabe6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8b2aabe6 Branch: refs/heads/4.1 Commit: 8b2aabe687fbee0a0806a2f9d9c0ca9a8d3cd2fd Parents: 759b301 Author: Pradeep Soundararajan <[email protected]> Authored: Thu Feb 21 10:40:16 2013 +0100 Committer: Hugo Trippaers <[email protected]> Committed: Thu Feb 21 10:47:15 2013 +0100 ---------------------------------------------------------------------- packaging/centos63/package.sh | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8b2aabe6/packaging/centos63/package.sh ---------------------------------------------------------------------- diff --git a/packaging/centos63/package.sh b/packaging/centos63/package.sh index fa45210..2515ecb 100755 --- a/packaging/centos63/package.sh +++ b/packaging/centos63/package.sh @@ -18,7 +18,7 @@ CWD=`pwd` RPMDIR=$CWD/../../dist/rpmbuild - +PACK_PROJECT=cloudstack VERSION=`(cd ../../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep '^[0-9]\.'` @@ -34,12 +34,12 @@ else fi mkdir -p $RPMDIR/SPECS -mkdir -p $RPMDIR/SOURCES/cloudstack-$VERSION +mkdir -p $RPMDIR/SOURCES/$PACK_PROJECT-$VERSION -(cd ../../; tar -c --exclude .git --exclude dist . | tar -C $RPMDIR/SOURCES/cloudstack-$VERSION -x ) -(cd $RPMDIR/SOURCES/; tar -czf cloudstack-$VERSION.tgz cloudstack-$VERSION) +(cd ../../; tar -c --exclude .git --exclude dist . | tar -C $RPMDIR/SOURCES/$PACK_PROJECT-$VERSION -x ) +(cd $RPMDIR/SOURCES/; tar -czf $PACK_PROJECT-$VERSION.tgz $PACK_PROJECT-$VERSION) cp cloud.spec $RPMDIR/SPECS -(cd $RPMDIR; rpmbuild -ba SPECS/cloud.spec "-D_topdir $RPMDIR" "$DEFVER" "$DEFREL" "$DEFPRE" ) +(cd $RPMDIR; rpmbuild -ba SPECS/cloud.spec "-D_topdir $RPMDIR" "$DEFVER" "$DEFREL" "$DEFPRE")
