On Tue, Oct 30, 2012 at 4:38 PM, Guido Berhoerster <gber@opensuse.org> wrote:
%define xulrunner_version %(rpm -q --queryformat '%%{VERSION}' xulrunner-devel)
should work. "%()" is expanded together with the macros before building so you can use the %xulrunner_version for %if blocks, two "%" escape the version macro. Needless to say that this isn't really pretty.
Hi, Guido It didn't work... %if %{xulrunner_version} >= 16 <== line 237 %patch -p1 %endif error: parse error in expression error: /home/abuild/rpmbuild/SOURCES/gpac.spec:237: parseExpressionBoolean returns -1 seems "%define xulrunner_version %(rpm -q --queryformat '%%{VERSION}' xulrunner-devel)" returns 0 or the return is not a number but a warning string. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org