Test for rpm variable

Todd Rinaldo toddr at cpanel.net
Mon Apr 5 23:16:01 UTC 2010


How can I test if %{__global_cflags} is defined?

I want something in my spec along these lines.

CFLAGS=''"
CFLAGS = "%{__global_cflags}" if(defined %{__global_cflags})
CFLAGS = "$CFLAGS my custom arguments here"




More information about the Rpm-list mailing list