RPM Packaging Guide
Red Hat Enterprise Linux 7
Basic and advanced software packaging scenarios using the RPM package manager
The RPM Packaging Guide documents packaging software into an RPM. It also shows how to prepare source code for packaging. Lastly, the guide explains selected advanced packaging scenarios.