Resummed photon spectra for WIMP annihilation