Macros in Source fields (was: Re: Prelink success story :))

Michael Schwendt ms-nospam-0306 at arcor.de
Fri Feb 27 10:25:38 UTC 2004


On Fri, 27 Feb 2004 01:59:57 -0500 (EST), Mike A. Harris wrote:

> On Fri, 27 Feb 2004, Michael Schwendt wrote:
> 
> >> Coupled with Ville's comment that package QA people really
> >> should be checking out web pages and so forth to make sure they have
> >> a canonical source rather than cut 'n paste, macros in Source: make more
> >> and more sense to me.  (Although I'll definitely miss cut and paste when
> >> I'm QA'ing an update package and I already checked out the canonicalness
> >> in the previous version.)
> >
> >Macros in URLs simply don't work. If you want macros in Source tags,
> >cut off everything up to the file name like
> >
> >  Source0: %name-%version.tar.gz
> 
> Macros work fine for me in Source tags, with URLs and without.  
> See the xchat spec file for an example.
> 
> pts/34 mharris at porkchop:~/rpmbuild/rpms/xchat$ grep Source xchat.spec
> Source:    http://www.xchat.org/files/source/2.0/xchat-%{version}.tar.bz2

You haven't payed attention to the detail:

  $ wget http://www.xchat.org/files/source/2.0/xchat-%{version}.tar.bz2
  ERROR 404: Not Found.

And upon building source and binary rpm, the
http://www.xchat.org/files/source/2.0/ is stripped off, and only the
expanded xchat-%version.tar.bz2 is included in the RPM header.
So, what works "fine" for you? That you can obfuscate URLs with macros?
Or do you cut'n'paste part of the URL to visit the download directory
in a browser?

-- 





More information about the fedora-devel-list mailing list