Exact solution of Navier–Stokes equations describing spatially inhomogeneous flows of a rotating fluid