From a720b898deccc7fe9cd6c30dad9bc7e185c1f7e8 Mon Sep 17 00:00:00 2001 From: jvdias Date: Wed, 5 Jul 2006 19:33:16 +0000 Subject: [PATCH] fix bug 197425 --- perl-Net-IP-1.25-bz197425.patch | 11 +++++++++++ perl-Net-IP.spec | 9 +++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 perl-Net-IP-1.25-bz197425.patch diff --git a/perl-Net-IP-1.25-bz197425.patch b/perl-Net-IP-1.25-bz197425.patch new file mode 100644 index 0000000..9e8fc9f --- /dev/null +++ b/perl-Net-IP-1.25-bz197425.patch @@ -0,0 +1,11 @@ +--- Net-IP-1.25/IP.pm.bz197425 2006-05-22 12:46:40.000000000 -0400 ++++ Net-IP-1.25/IP.pm 2006-07-05 15:20:26.000000000 -0400 +@@ -410,7 +410,7 @@ + + my $int = ip_bintoint($self->binip()); + +- if (!$int) { ++ if (ref($int) ne "Math::BigInt") { + $self->{error} = $ERROR; + $self->{errno} = $ERRNO; + return; diff --git a/perl-Net-IP.spec b/perl-Net-IP.spec index 5dedbcb..a2c522e 100644 --- a/perl-Net-IP.spec +++ b/perl-Net-IP.spec @@ -1,6 +1,6 @@ Name: perl-Net-IP Version: 1.25 -Release: 1.fc6 +Release: 2.fc6 Summary: Perl module for manipulation of IPv4 and IPv6 addresses Group: Development/Libraries @@ -13,6 +13,8 @@ BuildArch: noarch BuildRequires: perl Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Patch0: perl-Net-IP-1.25-bz197425.patch + %description This is the Net::IP module for Perl, designed to allow easy manipulation of IPv4 and IPv6 addresses. Two applications using the @@ -24,7 +26,7 @@ handy IP "cheat sheet". %prep %setup -q -n Net-IP-%{version} - +%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -57,6 +59,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Jul 05 2006 Jason Vas Dias - 1.25-2 +- fix bug 197925 - make intip handle zero-valued IP addresses + * Mon Jun 05 2006 Jason Vas Dias - 1.25-1 - upgrade to 1.25