'-rc0' in metadata.json version breaks simp RPM .spec files

Description

A Puppet module version of '1.2.3-rc0' will break RPM-related operations in simp-rake-helpers, because the spec files use the metadata.json's version field in its entirety, and '-rc0' is not valid in the RPM Version field.

Example: https://github.com/simp/puppet-gitlab/blob/5fb9bb8ec3eee7af31c1c82a53eef56201788eeb/metadata.json#L3

The Version field in an RPM .spec file is required to be in \d+\.\d+\.\d+ format.

Some Puppet orgs (voxpupuli) append '-rc0' to the version in their modules' metadata.json. This denotes prerelease status during development and acts as a built-in releng safety check (because the Puppet Forge only accepts release in SemVer \d+\.\d+\.\d+ release format).

Acceptance Criteria

None

Epic Link

None

Story Points

None

Components

Priority

Medium
Configure