RPM Community Forums

Mailing List Message of <rpm-users>

Re: conditionally define %_rpmfilename macro

From: Jeff Johnson <n3npq@mac.com>
Date: Fri 09 Jan 2009 - 23:07:44 CET
Message-id: <0676C700-FB6B-4655-9743-93A952FF71B6@mac.com>

On Jan 9, 2009, at 4:45 PM, Jeff Putsch wrote:

> Thanks for the help.
> The approach is enlightening.

There is an even simpler solution, without messing with macro logic at  

1) Put in /usr/lib/rpm/macros
	%_rpmfilename  %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}-%%{OS}.rpm

2) Put in /usr/lib/rpm/noarch-linux
	%_rpmfilename  %%{NAME}-%%{VERSION}-%%{RELEASE}.%noarch.rpm

Macro values are stacks, and the noarch value will be pushed on top
of the /usr/lib/rpm/macros default definition.


73 de Jeff

  • application/pkcs7-signature attachment: smime.p7s
Received on Fri Jan 9 23:08:03 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.