I wonder if we want to use mktemp here just to have some random things here to be absolutely sure this will not happen again. Something like:

    RPMBUILD=$(mktemp -d)
    trap "rm -rf $RPMBUILD" EXIT

Stunning, this was driving me crazy.