File _service of Package nut
<services>
<service name="obs_scm">
<param name="url">https://github.com/networkupstools/nut.git</param>
<param name="scm">git</param>
<!-- param name="revision">master</param -->
<!-- version format: <upstream>+git<date>.<short_hash> -->
<!-- param name="versionformat">%{version}git%{timestamp}.%{shortrev}</param -->
<!-- See https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.service.in -->
<!-- FIXME: Somehow get this to use NUT SEMVER consistently
https://networkupstools.org/docs/developer-guide.chunked/versioning.html
Notably 4th dotted component is "Commits on trunk since previous release tag"
and 5th dotted component is "Commits on branch since nearest ancestor which is on trunk"
where TAG_OFFSET is usually the sum of 4th and 5th (and may be a dash-separated
value before plussing other comments like git commit info or RC tags).
Maybe we must pass through "make dist" somewhere and
upload tarballs to OBS with prepared VERSION_DEFAULT files
(and push an updated _service file)?..
-->
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@+g%h</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="exclude">.git</param>
<param name="filename">nut</param>
<!-- Extract the base recipe files -->
<param name="extract">scripts/obs/nut.dsc</param>
<param name="extract">scripts/obs/nut.spec</param>
<param name="extract">scripts/obs/pkgsrc.*</param>
<!--
<param name="extract">scripts/obs/debian.*</param>
<param name="extract">scripts/obs/control</param>
-->
<!-- Extract the OBS prjconf file -->
<param name="extract">scripts/obs/_config</param>
<!-- Try to ensure the changelog info -->
<param name="changesgenerate">enable</param>
<!--
<param name="changesauthor">Open Build System</param>
-->
</service>
<service name="tar" mode="buildtime"/>
<!-- Extract recipe files only needed during build -->
<!-- Debian recipe pieces -->
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/scripts/obs/debian.*</param>
</service>
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/scripts/obs/nut*.changes</param>
</service>
<!--
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/scripts/obs/nut*.install</param>
</service>
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/scripts/obs/nut*.manpages</param>
</service>
-->
<service name="set_version" mode="buildtime">
<param name="basename">nut</param>
</service>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
</services>