On Fri, Jul 29, 2016 at 09:03:06AM +0100, James Hogarth wrote:
Rather than googling for articles, which unless you have the experience already to filter the chaff from the wheat, here's a link the an article I wrote a little while back.
https://www.hogarthuk.com/?q=node/11
It'll take you through building a minimal package, fedora guidelines (which even for personal/internal stuff can help keep clean easier to maintain spec files), usage of mock for clean builds and repo creation.
In addition to the above's excellent instructions, I'd also like to point out these:
http://rpm-guide.readthedocs.io/en/latest/