Creating rpm package file

Hi,
I have a binary file ans some scripts which copy the binary file to a location and create some files and then add a entry to cron .

I want to create a rpm package file for all these.So that if a user run:

rpm -i my.rpm

the binary is copied and scripts are run.
Can anyone help me in this regard.

Have a look at RPM Building

Then do an internet search on "rpmbuild" for further information if necessary.