Rpmbuild Tutorial

RPMBuild is used to build both binary and source packages that can be used with the rpm commands.

There are a few good resources
  1. Rpmbuild Tutorial is a detailed well-written tutorial on rpmbuild utilities.
  2. RPM.org User Documentation is also another good material to read on.
  3. RPM Guild an excellent document that covers all aspects of the Red Hat Package Management system