File _service of Package mstflint
<services>
<service name="obs_scm">
<param name="scm">git</param>
<param name="url">https://github.com/Mellanox/mstflint</param>
<param name="filename">mstflint</param>
<!-- The git version tag or branch name to select/use -->
<param name="revision">v4.25.0-1</param>
<!--
Generate rpm "version" value (to be also used to later generate
the tarball by the "tar" obs-service); note we need the same
"version" value to (i) generate the tarball and (ii) be set in
the rpm .spec as "rpmbuild tool will use %{version} to decide
the name of the folder containing the source code, resulting from
applying "tar -xof" to the tarball set in .spec "Source/Source0" field
-->
<param name="version">_auto_</param>
<!-- Base "version" to be the git tag value -->
<param name="versionformat">@PARENT_TAG@</param>
<!--
Replaces the git tag "-" character by "_" to generate the rpm version
field; note "spec-cleaner" tool does not accept the "-" character in
the .spec "Version" field (retruning an error and making the OBS
rpm build process to fail)
-->
<param name="versionrewrite-pattern">v(.*)-(.+)</param>
<param name="versionrewrite-replacement">\1_\2</param>
</service>
<service mode="buildtime" name="tar">
<param name="obsinfo">mstflint.obsinfo</param>
</service>
<service mode="buildtime" name="set_version" />
</services>