Second law of thermodynamics for relativistic fluids formulated with relative entropy