We've recently added some macro definitions under
/etc/rpm/macros.[x]emacs to simplify add on packaging for (X)Emacs.
The main point being that we no longer use the pkg-config way of
finding directory locations etc at add-on package build time, which
removes all the boiler plate stufff that was being added to every add
on package. A new draft of the guidelines is here: