File _service of Package cpr

<services>
  <service name="run" mode="localonly">
    <param name="command">
outdir="${outdir:-.}"
sed -i "s@\(%define.*mongv.*\).*@%define mongv $(curl -Ls https://raw.githubusercontent.com/libcpr/cpr/refs/heads/master/CMakeLists.txt | sed -n 's~.*URL .* https.*/cesanta/mongoose/archive/\(.*\)\.tar\.gz.*~\1~p')@g;" cpr.spec
</param>
  </service>
  <service name="download_url">
   <param name="url">https://api.github.com/repos/libcpr/cpr/releases/latest</param> 
  </service>
  <service name="set_version">
   <param name="fromfile">_service:download_url:latest</param>
   <param name="regex">.*"tag_name"\s*:\s*"(.*)"</param>
  </service>
  <service name="download_files" />  
</services>
openSUSE Build Service is sponsored by