[packaging] use %autogen to build from git and fixup for subtree build