build sourcedir correctly for rpm build