Fix the spec file for the noredist build

This commit is contained in:
Hugo Trippaers 2013-09-21 14:42:31 +08:00
parent 316543541d
commit da99f6552c
2 changed files with 6 additions and 6 deletions

View File

@ -111,7 +111,7 @@ releases of cloudstack
To build all non redistributable components, add the noredist flag to the build command:
$ mvn clean install -P systemvm,developer -Dnonoss
$ mvn clean install -P systemvm,developer -Dnoredist
Clear old database (if any) and deploy the database schema:

View File

@ -174,12 +174,12 @@ cp packaging/centos63/replace.properties build/replace.properties
echo VERSION=%{_maventag} >> build/replace.properties
echo PACKAGE=%{name} >> build/replace.properties
if [ "%{_ossnoss}" == "NONOSS" -o "%{_ossnoss}" == "nonoss" ] ; then
echo "Executing mvn packaging for NONOSS ..."
mvn -Pawsapi,systemvm -Dnonoss package clean install
if [ "%{_ossnoss}" == "NOREDIST" -o "%{_ossnoss}" == "noredist" ] ; then
echo "Executing mvn packaging with non-redistributable libraries ..."
mvn -Pawsapi,systemvm -Dnoredist clean package
else
echo "Executing mvn packaging for OSS ..."
mvn -Pawsapi package -Dsystemvm clean install
echo "Executing mvn packaging ..."
mvn -Pawsapi,systemvm clean package
fi
%install