Defining macro name as the value of another macro

Florian Festi ffesti at
Thu Apr 9 07:27:03 UTC 2015

On 04/09/2015 01:12 AM, Fabricio Cannini wrote:
> Hello there
> I'm trying to do the above but without success, so I could do something
> like this:
> %if %centos
>     foo
> %else
> %if %suse
>     bar
> %endif
> %endif

The problem is that those macros are not defined on the other distros.

has some example snippets that take this into account.



Red Hat GmbH, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael Cunningham, Michael
O'Neill, Charles Peters

More information about the Rpm-list mailing list