diff --git a/xCATsn/mkrpm b/xCATsn/mkrpm index 49e111aa3..98ac062b2 100755 --- a/xCATsn/mkrpm +++ b/xCATsn/mkrpm @@ -33,6 +33,10 @@ else tar --exclude .svn -czf /usr/src/$pkg/SOURCES/license.tar.gz LICENSE.html cp xcat.conf /usr/src/$pkg/SOURCES rm -f /usr/src/$pkg/SRPMS/xCATsn-$VER*rpm /usr/src/$pkg/RPMS/*/xCATsn-$VER*rpm - rpmbuild -ba xCATsn.spec + if [ ! -z "$1" ]; then + rpmbuild -ba xCAT.spec --target $1 + else + rpmbuild -ba xCAT.spec + fi cd - fi