1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

packaging(RHEL-CTDB): honour rpm build target options handed in to makerpms.sh

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
This commit is contained in:
Michael Adam 2011-05-18 10:35:42 +02:00
parent c07cccd983
commit 0b0abc1723

View File

@ -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."