[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpm --with and %if



Hopefully this is a quick question.

<http://www.rpm.org/rpmapi-4.1/conditionalbulds.html> tells me I can
set flags with --with.  In the past I've done something like
rpm -bb --define "foo bar" (where bar is meaningless; I just do this
to get foo defined).

Is there a way to test the VALUE of a macro (bar, above)?

%if %{foo} = "bar"
...
%else
...
%endif

thx
/fc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]