<services>
  <!-- OBS Source Service for GitHub SCM Integration -->
  <!-- Monitors the obs-docker-ghactions branch for automatic builds -->
  
  <service name="obs_scm">
    <param name="scm">git</param>
    <param name="url">https://github.com/dnasso/DBCFileViewer.git</param>
    <!-- Monitor the obs-docker-ghactions branch -->
    <param name="revision">obs-docker-ghactions</param>
    <!-- Use git describe for version numbering -->
    <param name="versionformat">@PARENT_TAG@+git.@TAG_OFFSET@.%h</param>
    <param name="versionrewrite-pattern">v(.*)</param>
    <param name="versionrewrite-replacement">\1</param>
    <param name="changesgenerate">enable</param>
    <param name="filename">dbc-file-viewer</param>
  </service>
  
  <!-- Extract the tarball -->
  <service name="tar" mode="buildtime"/>
  
  <!-- Recompress to .tar.gz format -->
  <service name="recompress" mode="buildtime">
    <param name="file">*.tar</param>
    <param name="compression">gz</param>
  </service>
  
  <!-- Update version in .spec and .dsc files -->
  <service name="set_version" mode="buildtime"/>
</services>
