Make RPM building more robust in Makefile, and omit .git from the archive.