Using {dist} when I only have pre-compiled binaries?

Valery Reznic valery_reznic at yahoo.com
Tue May 26 07:21:43 UTC 2009




--- On Tue, 5/26/09, Matt Harrington <mbh.lists at gmail.com> wrote:

> From: Matt Harrington <mbh.lists at gmail.com>
> Subject: Re: Using {dist} when I only have pre-compiled binaries?
> To: "General discussion about the RPM package manager" <rpm-list at lists.rpm.org>
> Date: Tuesday, May 26, 2009, 10:04 AM
> On Mon, May 25, 2009 at 11:20 PM,
> Valery Reznic <valery_reznic at yahoo.com>
> wrote:
> >
> > In your spec file you can use "Distribution' tag.
> > Or if your package already built you can use
> rpmrebuild
> > (http://rpmrebuild.sf.net) to insert/remove/change any
> tag
> >
> > Valery.
> 
> Thanks for the response.  I'm now closer to my
> goal.  This shows the
> Distribution tag:
> 
> rpm -qp --qf '%{distribution}\n' *.rpm
> 
> However, the RPM filename doesn't have the {dist}
> tag.  What I'd like is:
> 
> foo-1.0-1-el5.x86_64.rpm
>   instead of ...
> foo-1.0-1.x86.64.rpm
> 
> Any ideas?
You can simple rename it, using 'mv' command.
Or when you use rpmbuild specify 
_build_name_fmt variable.
It's default value (On RedHat system) is
%%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm

Valery.
> 
> Matt
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
> 


      


More information about the Rpm-list mailing list