Defining macro name as the value of another macro

Fabricio Cannini fcannini at gmail.com
Thu Apr 9 14:23:49 UTC 2015


On 09-04-2015 04:27, Florian Festi wrote:
> 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.
>
> https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code
>
> has some example snippets that take this into account.
>
> Florian
>

Hi Florian

Sorry if I did not make it more clear, but these macros above are the 
ones I intend to create, not ones that already exist.

[ ]'s


More information about the Rpm-list mailing list