What does "%if 0%{?..." mean
Jos Vos
jos at xos.nl
Sat Jan 17 22:20:15 UTC 2009
On Sat, Jan 17, 2009 at 02:09:31PM -0800, Jonathan Ryshpan wrote:
> I have a spec file with this text.
> %if 0%{?build_jack_svn}
> %define jack_revision 3190
> %define jack_version 0.116.1
> %define jack_svndate 20081206.171018
> %else
> %define jack_version 0.116.1
> %endif
>
> What does all this do? I can't find the form "%if 0%{?mac}" defined
> anywhere. I assume it means the macro mac exists and has the value 0
> -- is this correct?
No.
The "0%{?build_jack_svn}" expands to "0X" where "X" is the value of
the %{build_jack_svn} macro if this macro is defined, or it expands
to "0" if the %{build_jack_svn} macro is not defined.
--
-- Jos Vos <jos at xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
More information about the Rpm-list
mailing list