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 -- fedora-extras-list mailing list fedora-extras-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-extras-list