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

Matt Harrington mbh.lists at gmail.com
Tue May 26 07:53:34 UTC 2009


On Tue, May 26, 2009 at 12:21 AM, Valery Reznic <valery_reznic at yahoo.com> wrote:
> 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.

Thanks.  Putting this in ~/.rpmmacros gives me the automatic behavior I wanted:

%_build_name_fmt
%%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{DISTRIBUTION}.%%{ARCH}.rpm

Matt


More information about the Rpm-list mailing list