Relativistic fluid dynamics with spin