30 Oct
2012
30 Oct
'12
08:38
* Marguerite Su <i@marguerite.su> [2012-10-30 09:10]:
Hi, all
I have to detect xulrunner-devel version in specfile.
but I got a problem:
the version in `rpm -q --qf='%{version}' xulrunner-devel` will be overridden by the "Version: " in specfile itself.
any ideas?
%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. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org