Sourav, There is documentation, although slightly dated, at tldp: http://www.tldp.org/HOWTO/RPM-HOWTO/build.html