diff options
Diffstat (limited to 'packaging/RHEL-CTDB/makerpms.sh')
-rwxr-xr-x | packaging/RHEL-CTDB/makerpms.sh | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/packaging/RHEL-CTDB/makerpms.sh b/packaging/RHEL-CTDB/makerpms.sh index c1a4b70151..d23d14ed8a 100755 --- a/packaging/RHEL-CTDB/makerpms.sh +++ b/packaging/RHEL-CTDB/makerpms.sh @@ -42,6 +42,14 @@ case $RPMVER in ;; esac +mkdir -p `rpm --eval %_specdir` +mkdir -p `rpm --eval %_sourcedir` +mkdir -p `rpm --eval %_builddir` +mkdir -p `rpm --eval %_srcrpmdir` +mkdir -p `rpm --eval %_rpmdir`/noarch +mkdir -p `rpm --eval %_rpmdir`/i386 +mkdir -p `rpm --eval %_rpmdir`/x86_64 + ## ## Delete the old debuginfo remnants: ## @@ -131,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." |