Running source_service 'source_validator' ...
WARNING: macro used in version line
packager is responsible that the resulting string
is non-empty and contains no "-".
----------
cat <<EOF > PKG-INFO
Metadata-Version: 1.1
Version: %{version}
EOF
export CFLAGS="%{optflags}"
----------
hmm, so this is beyond the current capabilities of the shell/grep based spec file "parsing". I was planning on a larger rewrite anyhow, maybe for hack week.
Given the following spec file which has a version set correctly, and then writes out a file with a macro so we don't duplicate information