[Fedora-packaging] Macro expansion problem

Michel Salim michel.sylvan at gmail.com
Tue Aug 26 05:09:46 UTC 2008


At the risk of asking the obvious, why does this fail:

%define nunitver %(gacutil -l nunit.core | tail -n 2 | grep nunit.core
| cut -d "=" -f 2 | cut -
d "," -f 1)

Requires: mono(nunit.core) = %{nunitver}

but this succeeds:

%define nunitver 2.2.10.0
Requires: mono(nunit.core) = %{nunitver}

context: this is for monodevelop, that comes from upstream with
bundled nunit DLLs. I've patched it to use the system-provided nunit
DLLs, but find-mono.req.sh does not pick up the correct dependencies,
thus the manual patch.

Thanks,

-- 
Michel Salim
http://hircus.jaiku.com/




More information about the Fedora-packaging mailing list