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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





--- On Tue, 5/26/09, Matt Harrington <mbh.lists@xxxxxxxxx> wrote:

> From: Matt Harrington <mbh.lists@xxxxxxxxx>
> Subject: Re: Using {dist} when I only have pre-compiled binaries?
> To: "General discussion about the RPM package manager" <rpm-list@xxxxxxxxxxxxx>
> Date: Tuesday, May 26, 2009, 10:04 AM
> On Mon, May 25, 2009 at 11:20 PM,
> Valery Reznic <valery_reznic@xxxxxxxxx>
> 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@xxxxxxxxxxxxx
> http://lists.rpm.org/mailman/listinfo/rpm-list
> 


      
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux