makemake: Extract package name to RPM name mapping into functions
makemake: Extract package name to RPM name mapping into functions

This reintroduces an extra traversal over the specs, but this whole
mess should go away shortly.

Signed-off-by: Euan Harris <c3b6e83069c8e9e3af49a38fec6026be89559638@citrix.com>

simonjbeaumont/planex,simonjbeaumont/planex,djs55/planex,djs55/planex,djs55/planex,simonjbeaumont/planex