[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
rpm --with and %if
- From: Frank Cusack <fcusack fcusack com>
- To: rpm-list redhat com
- Subject: rpm --with and %if
- Date: Tue, 16 Sep 2003 12:53:20 -0700
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]