On Mon, September 26, 2011 11:49 pm, Greg Freemyer wrote:
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
probably doesn't support per 5.12 any more.
http://search.cpan.org/%7Epmqs/IO-Compress-Bzip2-2.015/ I think it's better to use a more resent version. http://search.cpan.org/%7Epmqs/IO-Compress-2.037/ Contains IO:Compress:Bzip2 http://search.cpan.org/%7Epmqs/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
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.
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
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
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