[perl-NetAddr-IP] Update to 4.049

Paul Howarth pghmcfc at fedoraproject.org
Thu Oct 20 11:16:33 UTC 2011


commit 18482e8395b9dc9bd74f9d0707db3f45de0c701f
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Oct 20 12:14:52 2011 +0100

    Update to 4.049
    
    - New upstream release 4.049
      - In Lite v1.32:
        - Add capability to parse input of the form ->new6(12345,1); this should
          have been there but was missing (CPAN RT#68723)
      - In Util v1.41:
        - Add inet_pton, inet_ntop, AF_INET, AF_INET6
        - Modify inet_n2dx and inet_n2ad to recognize the new 128-bit IPv4 format
          ::FFFF:FFFF:0:0
        - Replace isIPv4 with a pure perl version for portability
      - Split the following into NetAddr::IP::InetBase v0.01 to provide better
        long-term support for IPv6:
        - inet_aton
        - inet_ntoa
        - ipv6_aton
        - ipv6_n2x
        - ipv6_n2d
        - inet_any2n
        - inet_n2dx
        - inet_n2ad
        - inet_ntop
        - inet_pton
        - packzeros
        - isIPv4
        - isNewIPv4
        - isAnyIPv4
        - AF_INET
        - AF_INET6
    - BR: perl(Carp)
    - BR: perl(Socket6) for test suite
    - Update UTF-8 patch to apply cleanly
    - License is now GPL+ or Artistic in most of the code but Util.xs is GPLv2+ so
      we ship the whole thing under that license

 .gitignore                                         |    5 +-
 License_of_perl-NetAddr-IP.txt                     |   61 --------------------
 ...4.042-UTF8.patch => NetAddr-IP-4.049-UTF8.patch |   18 +++---
 perl-NetAddr-IP.spec                               |   54 ++++++++++++++---
 sources                                            |    2 +-
 5 files changed, 55 insertions(+), 85 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9cb6668..76a0989 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1 @@
-NetAddr-IP-4.027.tar.gz
-/NetAddr-IP-4.042.tar.gz
-/NetAddr-IP-4.044.tar.gz
-/NetAddr-IP-4.047.tar.gz
+/NetAddr-IP-[0-9.]*.tar.gz
diff --git a/NetAddr-IP-4.042-UTF8.patch b/NetAddr-IP-4.049-UTF8.patch
similarity index 60%
rename from NetAddr-IP-4.042-UTF8.patch
rename to NetAddr-IP-4.049-UTF8.patch
index d63da1c..dbe0c58 100644
--- a/NetAddr-IP-4.042-UTF8.patch
+++ b/NetAddr-IP-4.049-UTF8.patch
@@ -1,5 +1,5 @@
---- NetAddr-IP-4.042/README	2011-03-23 10:56:16.137035463 +0000
-+++ NetAddr-IP-4.042/README	2008-12-02 20:54:08.000000000 +0000
+--- NetAddr-IP/README
++++ NetAddr-IP/README
 @@ -187,7 +187,7 @@
  
  LICENSE AND WARRANTY
@@ -9,9 +9,9 @@
  used under the terms of the perl artistic license provided that proper
  credit for the work of the authors is  preserved in  the form  of this
  copyright  notice and license for this module.
---- NetAddr-IP-4.042/Lite/Lite.pm	2011-03-22 22:37:05.000000000 +0000
-+++ NetAddr-IP-4.042/Lite/Lite.pm	2011-03-23 10:56:55.768181188 +0000
-@@ -1338,7 +1338,7 @@
+--- NetAddr-IP/Lite/Lite.pm
++++ NetAddr-IP/Lite/Lite.pm
+@@ -1381,7 +1381,7 @@
  
  =head1 AUTHOR
  
@@ -20,12 +20,12 @@
  Michael Robinton E<lt>michael at bizsystems.comE<gt>
  
  =head1 WARRANTY
-@@ -1348,7 +1348,7 @@
+@@ -1391,7 +1391,7 @@
  
- =head1 LICENSE
+ =head1 COPYRIGHT
  
 - This software is (c) Luis E. Muñoz, 1999 - 2005
 + This software is (c) Luis E. Muñoz, 1999 - 2005
-  and (c) Michael Robinton, 2006 - 2010.
+  and (c) Michael Robinton, 2006 - 2011.
  
- It can be used under the terms of the perl artistic license provided that
+ All rights reserved.
diff --git a/perl-NetAddr-IP.spec b/perl-NetAddr-IP.spec
index f87efb0..3bd2bb5 100644
--- a/perl-NetAddr-IP.spec
+++ b/perl-NetAddr-IP.spec
@@ -1,23 +1,22 @@
 Name:           perl-NetAddr-IP
-Version:        4.047
+Version:        4.049
 Release:        1%{?dist}
 Summary:        Manages IPv4 and IPv6 addresses and subnets
-# Upstream explicitly gave permission for us to distribute under Artistic 2.0
-# Will be reflected in next release.
-License:        Artistic 2.0
+License:        GPLv2+
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/NetAddr-IP/
 Source0:        http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/NetAddr-IP-%{version}.tar.gz
-Source1:        License_of_perl-NetAddr-IP.txt
-Patch0:         NetAddr-IP-4.042-UTF8.patch
+Patch0:         NetAddr-IP-4.049-UTF8.patch
 BuildRequires:  perl(AutoLoader)
+BuildRequires:  perl(Carp)
 BuildRequires:  perl(Exporter)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Socket6)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 # Don't "provide" private Perl libs or redundant unversioned provides
-%global __provides_exclude ^(perl\\(NetAddr::IP(::Util(PP|Polluted)?)?\\)$|Util\\.so)
+%global __provides_exclude ^(perl\\(NetAddr::IP(::(InetBase|Util(PP)?))?\\)$|Util\\.so)
 
 %description
 This module provides an object-oriented abstraction on top of IP addresses
@@ -27,7 +26,7 @@ Math::BigInt as in previous versions.
 
 %prep
 %setup -q -n NetAddr-IP-%{version}
-cp %{SOURCE1} .
+
 # Fix UTF-8
 %patch0 -p1
 
@@ -39,22 +38,57 @@ make %{?_smp_mflags}
 make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
 find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
 %{_fixperms} %{buildroot}
 
 %check
 make test
 
 %files
-%doc Changes README TODO docs/rfc1884.txt License_of_perl-NetAddr-IP.txt
+%doc Artistic Changes Copying README TODO docs/rfc1884.txt
 %{perl_vendorarch}/auto/NetAddr/
 %{perl_vendorarch}/NetAddr/
 %{_mandir}/man3/NetAddr::IP.3pm*
+%{_mandir}/man3/NetAddr::IP::InetBase.3pm*
 %{_mandir}/man3/NetAddr::IP::Lite.3pm*
 %{_mandir}/man3/NetAddr::IP::Util.3pm*
 %{_mandir}/man3/NetAddr::IP::UtilPP.3pm*
 
 %changelog
+* Thu Oct 20 2011 Paul Howarth <paul at city-fan.org> - 4.049-1
+- update to 4.049
+  - in Lite v1.32:
+    - add capability to parse input of the form ->new6(12345,1); this should
+      have been there but was missing (CPAN RT#68723)
+  - in Util v1.41:
+    - add inet_pton, inet_ntop, AF_INET, AF_INET6
+    - modify inet_n2dx and inet_n2ad to recognize the new 128-bit IPv4 format
+      ::FFFF:FFFF:0:0
+    - replace isIPv4 with a pure perl version for portability
+  - split the following into NetAddr::IP::InetBase v0.01 to provide better
+    long-term support for IPv6:
+    - inet_aton
+    - inet_ntoa
+    - ipv6_aton
+    - ipv6_n2x
+    - ipv6_n2d
+    - inet_any2n
+    - inet_n2dx
+    - inet_n2ad
+    - inet_ntop
+    - inet_pton
+    - packzeros
+    - isIPv4
+    - isNewIPv4
+    - isAnyIPv4
+    - AF_INET
+    - AF_INET6
+- BR: perl(Carp)
+- BR: perl(Socket6) for test suite
+- update UTF-8 patch to apply cleanly
+- license is now GPL+ or Artistic in most of the code but Util.xs is GPLv2+ so
+  we ship the whole thing under that license
+
 * Fri Oct 07 2011 Petr Sabata <contyk at redhat.com> - 4.047-1
 - 4.047 bump
 
diff --git a/sources b/sources
index 1a3a24c..afe438a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-670cda79f225afa73bcd2709c3032cf7  NetAddr-IP-4.047.tar.gz
+3021d2db44fe151012b7fcef99127cc4  NetAddr-IP-4.049.tar.gz


More information about the scm-commits mailing list