how to write Source directive for tinyerp

Dan Horák dan at danny.cz
Thu Dec 21 20:07:51 UTC 2006


Michael Thomas píše v Čt 21. 12. 2006 v 11:45 -0800:
> Dan Horák wrote:
> > Hi,
> > 
> > I would like to update the spec file for tinyerp with current URLs to
> > get the sources. They use probably some "crazy" content management
> > system for their web so the URL looks like this:
> > 
> > http://tinyerp.com/component/option,com_vfm/Itemid,61/do,download/file,stable|source|tinyerp-server-%{version}.tar.gz/
> > 
> > When I try to do "wget" on this URL, it returns the requested file. But
> > RPM doesn´t understand it. It wants the part after the last slash to be
> > the filename. And in this case it is nothing. Is there a way to use such
> > URLs as Source in the spec files?
> 
> Just put the real filename in Source0: and include a short comment above 
> Source0: describing the problem and how to download the file:
> 
> # The / at the end of the URL confuses rpm.  Use wget on this url to get
> # the source:
> #http://tinyerp.com/component/option,com_vfm/Itemid,61/do,download/file,stable|source|tinyerp-server-%{version}.tar.gz/
> Source0: tinyerp-server-%{version}.tar.gz

That´s what I have just done :-)


		Dan





More information about the fedora-extras-list mailing list