On Mon, Apr 4, 2016 at 11:32 AM, Jason L Tibbitts III <tibbs@math.uh.edu> wrote:
Something went wrong when epel-rpm-macros-5 was added to the EPEL5
buildroot such that it works fine in koji but isn't actually present
when you build in mock.  So if you were trying to de-cruft your specs
and found that things weren't working as you expected when you did a
mock build, that's why.

Unfortunately the issue has turned out to be complicated since before
this comps hadn't changed since 2012 and something has probably broken
in an odd way.  The rel-eng folks are looking into things.  Note that
this also appears to break yom groupinfo and the like for any
EPEL5-related things.

In the meantime, if you want to just work around this yourself, edit
/etc/mock/epel-5-*.cfg and add "epel-rpm-macros" to
config_opts['chroot_setup_cmd'].  That will give you what koji has
currently.

To my knowledge mock for EL 5 has been broken for several months now:
https://lists.fedoraproject.org/archives/list/epel-devel@lists.fedoraproject.org/thread/GC3INT2TX3OZ7YBLIJ5H6LH2WMZNBTPR/#ZDKVRSLJEJSPMN7FQ5LYO66NBP5IIRKE