-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Luca Berra wrote:
> 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}}
> ^^^^^^^^
Dump the %expand, it's not necessary:
%{?_with_foo: %global build_foo 1}
Regards,
Buchan
- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/SyEqrJK6UGDSBKcRAi9pAJ913Z1+Y/mJU+lV9Rex58V9pnrBHwCgpFOl
qglTL/Duo1S92v7ihXQ6NMA=
=39Uk
-----END PGP SIGNATURE-----
*****************************************************************
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
*****************************************************************