From Fedora Project Wiki
Creating Package HOWTO
This page describes how to create an RPM package on Fedora, particularly how to create a .spec file. For more information about packaging, see Package Maintainers page, including the Packaging Guidelines and How to join the Fedora Package Collection Maintainers.