build some files for spm