Cannot run program rpm

After making some changes i am truing to create an installer for rpm so that after creating rpm file i can donwload that setup file on my server and install it

but when i am trying to create rpm from my mac machine i am getting following error ,

BUILD FAILED

/Users/rasin/Downloads/openfire_src/build/build.xml:1121: java.io.IOException: Cannot run program “rpm” (in directory “/Users/rasin/Downloads/openfire_src/work/rpm”): error=2, No such file or directory

You need to have rpm tooling installed in order to build rpms

I have installed RPM in my mac laptop , how still gettng the same error do i need to map it , if yes then how can i do that in eclipse ?

i have the same errors,did you fix it?