build an spm module