download of Source, spectool?

Hi,

I have seen that it is possible to use the download URL for Source in a spec file.
I find this very useful,
of course I would like to have the possibility to download the sources form a spec file automatically

I read that spec tool can do this, so I installed it, from the devel:/tools/ repository
but it does not work, and it does also not print anything to the command line what is wrong
Do I do something wrong, how can I download the sources?

spectool does nothing, no matter which options I apply, only the --help option works

you need a corresponding _service file in your project. Content (e.g.)

<services>
  
<service name="download_files"/></services>

thanks, did not even know that the service thing exists. now I know that I have something to research, thanks.

it only works with osc? ,
it seems that spectool is not the proper tool, at least on openSUSE ,so why is this even in the repo?

so I will have to setup the osc environment, will do this asap, but currently I am learning writing spec files and use rpmbuild.
possibly I should reorder my priorities

no, it works also from the webinterface

it seems that spectool is not the proper tool, at least on openSUSE ,so why is this even in the repo?

not sure which tool you mean with ‘spectool’. obs-service-format_spec_file ?

so I will have to setup the osc environment, will do this asap, but currently I am learning writing spec files and use rpmbuild.
possibly I should reorder my priorities

Take a look at OBS - it is full of specfiles to start with :slight_smile:

spectool it mentioned here, it expands macros and does other stuff, also downloading the sources (at least the docu says so)
https://fedoraproject.org/wiki/Rpmdevtools

there is also a package in OBS, openSUSE Build Service > Projects > devel:tools , where I thought it might do the same, but this does nothing