Compare two SemVer objects using major, minor, patch and pre-release version as specified in SemVer specification.
Build the version name string.