compile: Uniqify version extracted from spec file

With subpackages apparently the version appears multiple times.