List Info

Thread: how to write Source directive for tinyerp




how to write Source directive for tinyerp
user name
2006-12-21 19:03:37
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.co
m/component/option,com_vfm/Itemid,61/do,download/file,st
able|source|tinyerp-server-%.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?


		Dan

-- 
TinyERP maintainer for Fedora Extras


-- 
fedora-extras-list mailing list
fedora-extras-listredhat.com
https://www.redhat.com/mailman/listinfo/fedora-extras-
list
how to write Source directive for tinyerp
user name
2006-12-21 19:40:06
On 21-dec-2006, at 20:03, Dan Horák wrote:

> http://tinyerp.co
m/component/option,com_vfm/Itemid,61/do,download/ 
> file,stable|source|tinyerp-server-%.tar.gz/

It seems that CMS send the file as an attachment:

wget -S http://tinyerp.co
m/component/option,com_vfm/Itemid,61/ 
do,download/file,stable%7Csource%7Ctinyerp-server-4.0.0.tar.
gz/
--20:30:20--  http://tinyerp.co
m/component/option,com_vfm/Itemid,61/ 
do,download/file,stable%7Csource%7Ctinyerp-server-4.0.0.tar.
gz/
Resolving tinyerp.com... 213.251.162.133
Connecting to tinyerp.com|213.251.162.133|:80... connected.
HTTP request sent, awaiting response...
   HTTP/1.1 200 OK
   Date: Thu, 21 Dec 2006 19:30:21 GMT
   Server: Apache/2.0.54 (Debian GNU/Linux) DAV/2 SVN/1.1.4 

mod_auth_gforge/0.5.9.3 mod_python/3.1.3 Python/2.2.3+
PHP/4.3.10-16  
proxy_html/2.4 mod_ssl/2.0.54 OpenSSL/0.9.7e
   X-Powered-By: PHP/4.3.10-16
   Set-Cookie: 760a10f3bdc545733a99d27fe410c198=-; path=/
   Set-Cookie: mosvisitor=1
   Set-Cookie: PHPSESSID=d600a1ba4dd195aa65f5ca692c2efc1e;
path=/
   Expires: Thu, 19 Nov 1981 08:52:00 GMT
   Cache-Control: public
   Pragma: no-cache
   Content-Disposition: attachment; filename="tinyerp- 
server-4.0.0.tar.gz"
   Accept-Ranges: bytes
   Content-Range: bytes 0-2984162/2984163
   Content-Length: 2984163
   Keep-Alive: timeout=8, max=1000
   Connection: Keep-Alive
   Content-Type: application/force-download
Length: 2984163 (2.8M) [application/force-download]
Saving to: `tinyerp-server-4.0.0.tar.gz'

I'm pretty sure rpm can't handle that.

Ruben

-- 
fedora-extras-list mailing list
fedora-extras-listredhat.com
https://www.redhat.com/mailman/listinfo/fedora-extras-
list
how to write Source directive for tinyerp
user name
2006-12-21 19:45:11
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.co
m/component/option,com_vfm/Itemid,61/do,download/file,st
able|source|tinyerp-server-%.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.co
m/component/option,com_vfm/Itemid,61/do,download/file,st
able|source|tinyerp-server-%.tar.gz/
Source0: tinyerp-server-%.tar.gz

--Wart

-- 
fedora-extras-list mailing list
fedora-extras-listredhat.com
https://www.redhat.com/mailman/listinfo/fedora-extras-
list
how to write Source directive for tinyerp
user name
2006-12-21 20:07:51
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.co
m/component/option,com_vfm/Itemid,61/do,download/file,st
able|source|tinyerp-server-%.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.co
m/component/option,com_vfm/Itemid,61/do,download/file,st
able|source|tinyerp-server-%.tar.gz/
> Source0: tinyerp-server-%.tar.gz

That´s what I have just done 


		Dan


-- 
fedora-extras-list mailing list
fedora-extras-listredhat.com
https://www.redhat.com/mailman/listinfo/fedora-extras-
list
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )