Jonathan/rpm export expand name
During rpm spec generation, we check whether a given package is the main package, to identify whether fields are added under a %package heading or not.
It is valid rpm spec syntax to define the package name in terms of macros, so I added checking against the expanded name.