Re: [opensuse-packaging] Request for perl help
On Mon, Sep 26, 2011 at 4:29 PM, Joop Boonen <joop.boonen@boonen.org> wrote:
Hi Greg,
As you can see this perl module (2.0.15) is quite old because of this
http://search.cpan.org/~pmqs/IO-Compress-Bzip2-2.015/ I think it's better to use a more resent version. http://search.cpan.org/~pmqs/IO-Compress-2.037/ Contains IO:Compress:Bzip2 http://search.cpan.org/~pmqs/IO-Compress-2.037/lib/IO/Compress/Bzip2.pm
I see that this package already exists: perl-IO-Compress in devel:languages:perl
Regards,
Joop.
Joop,
Thanks but this looking a little more complex.
perl-IO-Compress won't install because it requires perl-Compress-Raw-Zlib
perl-Compress-Raw-Zlib won't install because it is obsoleted by perl-5.12.3-11.16.1.x86_64
Assuming that means what it says I'm testing this specfile change to
On Mon, September 26, 2011 11:49 pm, Greg Freemyer wrote: probably doesn't support per 5.12 any more. perl-IO-Compress
I would use (if it works, I didn't test it). The reason is because perl 5.12 wouldn't work for example openSuSE 11.3.: %if perl < 5.12 in stead of %if 0%{suse_version} < 1140
============ # Compress::Raw::Zlib is now a core perl function %if 0%{suse_version} < 1140 BuildRequires: perl(Compress::Raw::Zlib) >= %{version} Requires: perl(Compress::Raw::Zlib) >= %{version} %endif ============
Can you (or anyone else) confirm that the above is accurate.
Thanks Greg --
Regards, Joop. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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. Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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
participants (3)
-
Greg Freemyer
-
Joop Boonen
-
Stephan Kulow