currently there's no way to compare versions of rpm packages from shell.
Really.
Added in rpm-utils-0.7.0-alt1