On Thu, 26 Dec 2002, Ben Reser wrote:

> On Thu, Dec 26, 2002 at 10:22:44PM +0200, Buchan Milne wrote:
> > I think we could do with a few more rpm macros, or some scripts to
> > automate building from cvs a bit more. How about:
> >
> > %define rel 1mdk
> >
> > %if build_cvs
> > Release:    %(echo "0.`date +%Y%m%d -r %{SOURCE}`.%{rel}")
> > %else
> > Release:    rel
> > %endif
> >
> > I guess I should look at finishing up urpmb, with or without a working
> > 'rpm -q --qf "%{SOURCE}\n" --specfile $PACKGE.spec' ...
>
> Problem that would make the release tag change if the package gets
> rebuilt a few days later.

Only if the date on the souce tarball (notice -r flag) had changed, which
should only really happen if the source had changed. It's a bit of a hack,
but it should be useful IMHO. I haven't tested this yet (just got back
from holiday ..)..

Regards,
Buchan

-- 
|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7


Reply via email to