Spatially homogeneous and inhomogeneous cosmologies with equation of statep=μ