Automatically update „Source0: filename“ after service is completed


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:

Thanks in advance :slight_smile:

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

Thanks for workarround.