Title: Generic spectral properties of measure-preserving maps, and applications