packaging(RHEL-CTDB): honour rpm build target options handed in to makerpms.sh
authorMichael Adam <obnox@samba.org>
Wed, 18 May 2011 08:35:42 +0000 (10:35 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 18 May 2011 21:10:59 +0000 (23:10 +0200)
This allows to call e.g. "makerpms.sh -bs" to only build the source rpm.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed May 18 23:10:59 CEST 2011 on sn-devel-104

packaging/RHEL-CTDB/makerpms.sh

index 0eed6aa9be157221483d239881aab25fe1255bf9..d23d14ed8abe3bdd27511a0bb7edfc7141335552 100755 (executable)
@@ -139,8 +139,17 @@ fi
 ##
 echo "$(basename $0): Getting Ready to build release package"
 
+case ${EXTRA_OPTIONS} in
+       *-b*)
+               BUILD_TARGET=""
+               ;;
+       *)
+               BUILD_TARGET="-ba"
+               ;;
+esac
+
 pushd ${RPMSPECDIR}
-${RPM} -ba $EXTRA_OPTIONS $SPECFILE
+${RPM} ${BUILD_TARGET} ${EXTRA_OPTIONS} ${SPECFILE}
 popd
 
 echo "$(basename $0): Done."