The Geek Stuff shows you how to build a RPM package on CentOS/RedHat in 7 steps
7 Steps to Build a RPM Package from Source on CentOS / RedHat
7 Steps to Build a RPM Package from Source on CentOS / RedHat