The issue that in %prep the flags are sligtly different than in %build
or %install (%buildsubdir is not set), and we end up with the wrong
path in the Makefile, see rhbz#2055863.
This moves the sed into %build, which is somewhat ugly, but solves the
issue. The sequence of commands that is executed is the same, except
that the sed is invoked as first thing in %build, not as the last in
%prep. I think that for such a simple package this is acceptable, and
it's not worth waiting for a "proper" solution (which will likely
require some new funtionality in rpm).