how to write Source directive for tinyerp

Michael Thomas wart at kobold.org
Thu Dec 21 19:45:11 UTC 2006


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

--Wart




More information about the fedora-extras-list mailing list