SPECS: pike.spec - make GL optional

Jakub Bogusz qboosh at pld-linux.org
Wed Apr 14 20:41:26 CEST 2004


On Wed, Apr 14, 2004 at 12:19:04PM -0600, Aredridel wrote:
> Which way is the preferred way to use bconds? %{with name}, or
> with_name? Different uses?

%{with name} expands to 0 (if package is built with "name" feature)
or 1 (otherwise) - so it can be used in %if ... %else ... %endif
constructs.

%{with_name} is defined in the first case and not defined (at all)
in the second - so you can use in %{with_name:something} statements
(which mean "something" is used only if with_name is defined).

%{with_name:something} syntax is useful for single words/instructions/
one-liners.
%if %{with name}
...
[%else
...]
%endif
is better for longer jobs.


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/



More information about the pld-devel-en mailing list