add rich comparison for versions with pkgrel comparison

Signed-off-by: Mattias Andrée <maandree@operamail.com>