diff --git a/webbuild/webbuild-sudo b/webbuild/webbuild-sudo index fb27b50..34530e2 100755 --- a/webbuild/webbuild-sudo +++ b/webbuild/webbuild-sudo @@ -88,7 +88,7 @@ if [ "$MODE" = "specinfo" ]; then done < ${ENVPREFIX}${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec [ "$AUTOBUILDREQ_BEGIN" -a "$AUTOBUILDREQ_END" -a ! "$AUTOBUILDREQ_UNDONE" ] || \ echo "SPECVAR_CHECK_NOAUTOBUILDREQ=1" - $SUCMDPREFIX "rpm -q --specfile ${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec --specedit > ${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec.tmp 2>/dev/null" + $SUCMDPREFIX "rpmspec -P ${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec > ${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec.tmp 2>/dev/null" if [ -e $SPECFILE.tmp ]; then echo "SPECVAR_Specfile=\"$SPECFILE\"" BUILDDIR=`grep -m1 "^%setup.*-n " $SPECFILE.tmp | sed "s|.*-n \([^[:space:]]*\).*|\1|"`