use make to create the specfile, taking advantage of m4.
Also addresses problems when building SRPM and then attempting to build that somewhere else, where you do not have access to the original git repo.