Updating recipe with more parameters as well as optional support for SPM configuration (SPM needs to be already installed)