summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-05-18 10:35:42 +0200
committerMichael Adam <obnox@samba.org>2011-05-18 23:10:59 +0200
commit0b0abc1723063b1360557cbd42198708720fa0a4 (patch)
treef99c065449089dc36e6096348cd53434e1266526 /packaging
parentc07cccd98355102d9747004ec44e029937644b91 (diff)
downloadsamba-0b0abc1723063b1360557cbd42198708720fa0a4.tar.gz
samba-0b0abc1723063b1360557cbd42198708720fa0a4.tar.bz2
samba-0b0abc1723063b1360557cbd42198708720fa0a4.zip
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
Diffstat (limited to 'packaging')
-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 0eed6aa9be..d23d14ed8a 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."