Automatically update „Source0: filename“ after service is completed

Hi,

I added a service to download source from git. But the problem is, that I must change .spec file for each new build by modifying numbers, for example:

Source0:            %{name}-1290261743.tar
...
%setup -n %{name}-1290261743 -q  

I tryied to edit parameters of service: I added „subdir“ and „filename“. But these parameters make no effect…
Does it is possible to automatize this renaming? Maybe there is some variable/macro?

My project is here:
https://build.opensuse.org/package/files?package=goldendict&project=home%3Aembar-

Thanks in advance :slight_smile:

Use the set_version service. Look at the osc package from openSUSE:Tools:Unstable.

Thanks for workarround.