Remove EPEL5-specific cruft, use macros and detect unpackaged files