rpm/build topdir fix for BSD mktemp

BSD mktemp needs an argument to provide an appropriate path.
Merge pull request #1020 from runswithd6s/master

rpm/build topdir fix for BSD mktemp