29 Sep
2011
29 Sep
'11
14:32
On Wed, Sep 28, 2011 at 3:23 AM, Stephan Kulow <coolo@suse.de> wrote:
Am Mittwoch, 28. September 2011 schrieb Greg Freemyer:
What is the actual specfile syntax to use to test for the perl version.
I tried
%if perl < 5.12 %if %{perl_version} < 5.12
and a couple other variations, but I'm getting syntax errors.
Because rpm can't compare float numbers, but only integers.
And the right way to do it is? /* I tried: %if 0%{perl_version} < 512 but I still get this error: /usr/src/packages/SOURCES/perl-IO-Compress.spec:39: parseExpressionBoolean returns -1 */ Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org