summaryrefslogtreecommitdiff
path: root/packaging/RHEL-CTDB/makerpms.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/RHEL-CTDB/makerpms.sh')
-rwxr-xr-xpackaging/RHEL-CTDB/makerpms.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/packaging/RHEL-CTDB/makerpms.sh b/packaging/RHEL-CTDB/makerpms.sh
index 0eed6aa9be1..d23d14ed8ab 100755
--- a/packaging/RHEL-CTDB/makerpms.sh
+++ b/packaging/RHEL-CTDB/makerpms.sh
@@ -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."