The ideal relativistic rotating gas as a perfect fluid with spin