Tauberian-Cardy formula with spin