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>
    <!-- Chop off the minus from "-rc1" if present -->
    <param name="versionrewrite-pattern">v([^-]*)-*(.*)</param>
    <param name="versionrewrite-replacement">\1\2</param>
    <!-- Corresponds to the VERY LIMITED GLOB SUPPORT in `git describe __tags __abbrev=0 __match='...'`
         Notably we can not use curly braces to specify "one or two digits" here, at least not portably
         and even "digits" as [0-9] are a problem, gotta be [0123456789]...
            https://github.com/openSUSE/obs-service-tar_scm/blob/60f291a75fdb5e95a93ee356865f2661bcff8cd1/TarSCM/scm/git.py#L315
         Keep a lookout for https://github.com/openSUSE/obs-service-tar_scm/pull/357 to get merged and chop off RC patterns from `v*`
      -->
    <param name="match-tag">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>
openSUSE Build Service is sponsored by