In reply to tim.

The Spearman correlation is the Pearson correlation of the univariate ranks. Therefore, you can first construct the ranks in a preliminary step, then compute the Pearson correlation of the ranks.