Skip to content

Commit 3279b41

Browse files
Pradeep Soundararajanspark404
authored andcommitted
Commit review 9409 Added a global package name in the packaging script
Signed-off-by: Hugo Trippaers <trippie@gmail.com>
1 parent 6c01b62 commit 3279b41

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packaging/centos63/package.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
CWD=`pwd`
2020
RPMDIR=$CWD/../../dist/rpmbuild
21-
21+
PACK_PROJECT=cloudstack
2222

2323

2424
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
3434
fi
3535

3636
mkdir -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

4343
cp 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")

0 commit comments

Comments
 (0)