SPECS: odtransform.spec - why %{?without_<feature> does not work? changed t...
Elan Ruusamäe
glen at pld-linux.org
Fri Mar 13 16:04:38 CET 2009
On Friday 13 March 2009 14:58:55 pawelz wrote:
> Author: pawelz Date: Fri Mar 13 12:58:55 2009 GMT
> Module: SPECS Tag: HEAD
> ---- Log message:
> - why %{?without_<feature> does not work? changed to %{!?with_<feature>
because with_<feature> is %define (variable).
but %{with <feature>} and %{without <feature>} are macros (functions)
%with and %without macros go and evaluate with_<feature> define and return the
state.
/usr/lib/rpm/macros:
# Shorthand for %{defined with_...}
%with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
--
glen
More information about the pld-devel-en
mailing list