1) Look through existing RPMs that match what you are doing. If you
have a bunch of perl or python or ruby looking at existing packages
can help you figure out why the guidelines and what you are trying
aren't working [because packaging is like cooking and sometimes you
need a LOT MORE SALT.. or none at all.]
2) Worse comes to worse.. there is easy-rpm. This is the "I give up
and I need something by the end of the day." solution. It is not
pretty, won't win friends, and will probably not work 2 times the same
way in a row.. but if you need it and it migth give you an idea on how
to do it. https://www.npmjs.com/package/grunt-easy-rpm