The script samba-3.0.23a/packaging/RedHat-9/makerpms.sh doesn't work on a Redhat 9 machine. It has: VERSION='3.0.23a' REVISION='a' and later: chown -R ${USERID}.${GRPID} samba-${VERSION}${REVISION} This would refer to a folder samba-3.0.23aa which doesn't exist.
Created attachment 2055 [details] Patch to samba-3.0.23a/packaging/RedHat-9/makerpms.sh The attachment fixes the problem
Your patch breaks pre and rc releases. I know about the bug. I'll fix it for the next release.
fixed in 3.0.23b