On Mon, Aug 25, 2003 at 11:38:42PM +0200, Guillaume Rousse wrote:
Conditional build in package is often defined using
%define build_foo 0
%{?_with_foo: %{expand: %define build_foo 1}}
this way, to allow condition foo, you can either edit the spec file and change its value to 1, or use --with foo on command line when building the package.


However, it seems rpm 4.2 has a bug processing ?_with directive, or at least changed behaviour since latest version. It is now only local to current rpm section.

it should be written: %define build_foo 0 %{?_with_foo: %{expand: %%global build_foo 1}} ^^^^^^^^


regards, L.

--
Luca Berra -- [EMAIL PROTECTED]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \



Reply via email to