spm build