Spin-up of homogeneous and stratified fluids