Is there a rpmbuild that works on macosx?
Building RPMs or more specifically the binaries/libraries within them on a Mac is not a safe bet because you can run into a number of issues involving architecture mismatches, among other issues like library linking.

In short, if you're building for Linux, you really want to build on Linux. It's possible to cross-compile, but IMHO this is incredibly difficult on OS X.