0d5e391
Name:           perl-NetAddr-IP
35c1d50
Version:        4.079
b06e4a2
Release:        3%{?dist}
0d5e391
Summary:        Manages IPv4 and IPv6 addresses and subnets
c88e3dc
# Lite/Util/Util.xs is GPLv2+
c88e3dc
# Other files are (GPLv2+ or Artistic clarified)
c88e3dc
License:        GPLv2+ and (GPLv2+ or Artistic clarified)
0d5e391
Group:          Development/Libraries
0d5e391
URL:            http://search.cpan.org/dist/NetAddr-IP/
8100f58
Source0:        http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/NetAddr-IP-%{version}.tar.gz
1ee1947
# Module Build
1ee1947
BuildRequires:  coreutils
1ee1947
BuildRequires:  findutils
1ee1947
BuildRequires:  gcc
1ee1947
BuildRequires:  make
ec9dfb7
BuildRequires:  perl
35c1d50
BuildRequires:  perl-devel
8674503
BuildRequires:  perl-generators
1ee1947
BuildRequires:  perl(Config)
2faa7ad
BuildRequires:  perl(Cwd)
Petr Sabata b803a15
BuildRequires:  perl(ExtUtils::MakeMaker)
1ee1947
BuildRequires:  perl(File::Spec)
2faa7ad
BuildRequires:  perl(Getopt::Long)
c5fa95d
BuildRequires:  perl(Pod::Text)
1ee1947
# Module Runtime
1ee1947
BuildRequires:  perl(AutoLoader)
1ee1947
BuildRequires:  perl(Carp)
1ee1947
BuildRequires:  perl(DynaLoader)
1ee1947
BuildRequires:  perl(Exporter)
1ee1947
BuildRequires:  perl(Math::BigInt)
1ee1947
BuildRequires:  perl(overload)
2faa7ad
BuildRequires:  perl(Socket)
18482e8
BuildRequires:  perl(Socket6)
1ee1947
BuildRequires:  perl(strict)
1ee1947
BuildRequires:  perl(vars)
1ee1947
BuildRequires:  perl(warnings)
1ee1947
# Test Suite
1ee1947
BuildRequires:  perl(Data::Dumper)
1ee1947
BuildRequires:  perl(Storable)
1ee1947
BuildRequires:  perl(Test::More)
1ee1947
# Runtime
64c9610
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
712fd1d
Requires:       perl(Math::BigInt)
1ee1947
Requires:       perl(Socket6)
0d5e391
af49a76
# Don't "provide" private Perl libs or redundant unversioned provides
18482e8
%global __provides_exclude ^(perl\\(NetAddr::IP(::(InetBase|Util(PP)?))?\\)$|Util\\.so)
af49a76
0d5e391
%description
af49a76
This module provides an object-oriented abstraction on top of IP addresses
2faa7ad
or IP subnets, that allows for easy manipulations.
0d5e391
0d5e391
%prep
0d5e391
%setup -q -n NetAddr-IP-%{version}
18482e8
0d5e391
%build
23a89a6
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
0d5e391
make %{?_smp_mflags}
0d5e391
0d5e391
%install
8100f58
make pure_install DESTDIR=%{buildroot}
35c1d50
find %{buildroot} -type f -name .packlist -delete
35c1d50
find %{buildroot} -type f -name '*.bs' -empty -delete
af49a76
%{_fixperms} %{buildroot}
0d5e391
0d5e391
%check
0d5e391
make test
0d5e391
0d5e391
%files
1ee1947
%if 0%{?_licensedir:1}
1ee1947
%license Artistic Copying
1ee1947
%else
1ee1947
%doc Artistic Copying
1ee1947
%endif
1ee1947
%doc About-NetAddr-IP.txt Changes TODO docs/rfc1884.txt
af49a76
%{perl_vendorarch}/auto/NetAddr/
af49a76
%{perl_vendorarch}/NetAddr/
1ee1947
%{_mandir}/man3/NetAddr::IP.3*
1ee1947
%{_mandir}/man3/NetAddr::IP::InetBase.3*
1ee1947
%{_mandir}/man3/NetAddr::IP::Lite.3*
1ee1947
%{_mandir}/man3/NetAddr::IP::Util.3*
1ee1947
%{_mandir}/man3/NetAddr::IP::UtilPP.3*
0d5e391
0d5e391
%changelog
b06e4a2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.079-3
b06e4a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b06e4a2
856e316
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4.079-2
856e316
- Perl 5.24 rebuild
856e316
35c1d50
* Sun Mar 27 2016 Paul Howarth <paul@city-fan.org> - 4.079-1
35c1d50
- Update to 4.079
35c1d50
  - Correct non-suppression of leading zeros in certain instances of new_no use
35c1d50
  - Put in missing code to propagate NetAddr::IP::Lite :nofqdn to IP.pm
35c1d50
- Explicitly BR: perl-devel, needed for EXTERN.h
35c1d50
- Simplify find commands using -empty and -delete
35c1d50
c1fd166
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.078-2
c1fd166
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c1fd166
23a89a6
* Thu Aug 20 2015 Paul Howarth <paul@city-fan.org> - 4.078-1
23a89a6
- Update to 4.078
23a89a6
  - Fix typo in Util.pm 1.53 MakefilePL that caused failure to find compiler
23a89a6
1ee1947
* Fri Aug 14 2015 Paul Howarth <paul@city-fan.org> - 4.077-1
1ee1947
- Update to 4.077
1ee1947
  - Added method is_local() to Lite.pm
1ee1947
  - Fix Util/Makefile.PL to work around bug in Android's sh
1ee1947
  - Add method full6m()
1ee1947
  - Fix Util/Makefile.PL issue with clang compiler (CPAN RT#86831)
1ee1947
- Classify buildreqs by usage
1ee1947
- Use %%license where possible
1ee1947
1ee1947
d52c118
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.075-5
d52c118
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d52c118
39e20ff
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 4.075-4
39e20ff
- Perl 5.22 rebuild
39e20ff
1ace56e
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 4.075-3
1ace56e
- Perl 5.20 rebuild
1ace56e
7cda365
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.075-2
7cda365
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7cda365
ec9dfb7
* Thu Jun 12 2014 Paul Howarth <paul@city-fan.org> - 4.075-1
ec9dfb7
- Update to 4.075
ec9dfb7
  - Change input filter for resolvable hostnames to allow the underscore
ec9dfb7
    character
ec9dfb7
68cb9ad
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.073-2
68cb9ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
68cb9ad
bc4d822
* Sat Apr  5 2014 Paul Howarth <paul@city-fan.org> - 4.073-1
bc4d822
- Update to 4.073
bc4d822
  - Add documentation about FQDN conversion and an option to disable
bc4d822
c5fa95d
* Tue Jan 28 2014 Paul Howarth <paul@city-fan.org> - 4.072-1
c5fa95d
- Update to 4.072
c5fa95d
  - Modify Makefile.PL to bypass missing 'pod2text'
c5fa95d
- BR: perl(Pod::Text) to ensure we get pod2text
c5fa95d
94eebdf
* Tue Oct  1 2013 Paul Howarth <paul@city-fan.org> - 4.071-1
94eebdf
- Update to 4.071
94eebdf
  - Add method "canon"
94eebdf
78cdd66
* Fri Sep 13 2013 Paul Howarth <paul@city-fan.org> - 4.070-1
78cdd66
- Update to 4.070
78cdd66
  - Yet another documention error fixed
78cdd66
  - Add new6FFFF, RFC4291 compliant ipv4->ipV6 new in Lite.pm
78cdd66
3ba5466
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.069-3
3ba5466
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3ba5466
5bbe42e
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 4.069-2
5bbe42e
- Perl 5.18 rebuild
5bbe42e
0707589
* Sun May 26 2013 Paul Howarth <paul@city-fan.org> - 4.069-1
0707589
- Update to 4.069
0707589
  - Add proper pod encoding in Lite.pm
0707589
  - Changed Makefile.PL to check for config.h when building for XS with 'gcc',
0707589
    try building with 'cc', and check again; if config.h is not found, force
0707589
    Pure Perl mode
0707589
  - Kill XS in winduhs and Darwin, both of which misbehave when compiling XS
0707589
    code
0707589
- Drop UTF8 patch, no longer needed
0707589
0707589
* Wed Apr  3 2013 Paul Howarth <paul@city-fan.org> - 4.068-1
c1d6f87
- Update to 4.068
c1d6f87
  - Update Makefile.PL in Util.pm to better detect 'winduhs'
c1d6f87
4bfcc2f
* Sun Mar 31 2013 Paul Howarth <paul@city-fan.org> - 4.067-1
4bfcc2f
- Update to 4.067
4bfcc2f
  - Improved diagnostic message for "die" with bad mask for hostenum,
4bfcc2f
    hostenumref, split, splitref, rsplit, rsplitref
4bfcc2f
- Include new docfile About-NetAddr-IP.txt
4bfcc2f
4808e63
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.066-3
4808e63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4808e63
c88e3dc
* Tue Nov 27 2012 Petr Pisar <ppisar@redhat.com> - 4.066-2
c88e3dc
- Change license to reflect some files allow Artistic license
c88e3dc
fc3c375
* Tue Oct 30 2012 Paul Howarth <paul@city-fan.org> - 4.066-1
fc3c375
- Update to 4.066
fc3c375
  - Support bracketed IPv6 URI notation as described in RFC-3986
fc3c375
fc3c375
* Wed Oct  3 2012 Paul Howarth <paul@city-fan.org> - 4.065-1
399604d
- Update to 4.065
399604d
  - Correct format for IPv6 embedded IPv4 addresses (CPAN RT#79964)
399604d
fc3c375
* Thu Sep 27 2012 Paul Howarth <paul@city-fan.org> - 4.064-1
c2f3383
- Update to 4.064
c2f3383
  - Updated GPL v2.0 text and address in all modules
c2f3383
  - Added support for rfc3021 /31 networks to hostenum
c2f3383
- Update UTF8 patch
c2f3383
e4fe6fb
* Thu Aug 09 2012 Petr Pisar <ppisar@redhat.com> - 4.062-5
e4fe6fb
- Declare encoding of POD
e4fe6fb
2faa7ad
* Thu Aug 09 2012 Petr Pisar <ppisar@redhat.com> - 4.062-4
2faa7ad
- Specify all dependencies
2faa7ad
610958f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.062-3
610958f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
610958f
5e23506
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 4.062-2
5e23506
- Perl 5.16 rebuild
5e23506
64c9610
* Fri Jun  8 2012 Paul Howarth <paul@city-fan.org> 4.062-1
64c9610
- update to 4.062 (#802994)
64c9610
  - add is_rfc1918 to Lite.pm v1.42
64c9610
  - fix change in behavior introduced in v4.050 where an empty string supplied
64c9610
    to "new" previously returned 'undef' and now returns 'default' for ipV4 or
64c9610
    ipV6 (CPAN RT#75976)
64c9610
  - documentation updates
64c9610
- don't need to remove empty directories from the buildroot
64c9610
- recode NetAddr::IP::Lite module and manpage as UTF-8
64c9610
- don't use macros for commands
64c9610
64c9610
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 4.058-2
64c9610
- rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
359e736
2c0a8df
* Sat Nov 12 2011 Paul Howarth <paul@city-fan.org> 4.058-1
2c0a8df
- update to 4.058
2c0a8df
  - in Lite.pm v1.40:
2c0a8df
    - add call to InetBase::fillIPv4 to all uses of gethostbyname
2c0a8df
  - in InetBase.pm v0.06:
2c0a8df
    - break out the code that expands short IPv4 addresses into dotquad format
2c0a8df
      to account for broken BSD implementations of inet_aton and gethostbyname
2c0a8df
      that do not recognize the short format, and EXPORT this as sub 'fillIPv4'
2c0a8df
  - in Util.pm v1.45:
2c0a8df
    - add 'fillIPv4' to calls to gethostbyname to work around broken inet_aton
2c0a8df
      and gethostbyname implementations in certain BSD implementations
2c0a8df
1d66843
* Fri Nov  4 2011 Paul Howarth <paul@city-fan.org> 4.056-1
1d66843
- update to 4.056
1d66843
  - in InetBase.pm v0.04:
1d66843
    - improve inet_aton to overcome broken gethostbyname found in NetBSD and
1d66843
      OpenBSD
1d66843
7d832fe
* Sat Oct 29 2011 Paul Howarth <paul@city-fan.org> 4.055-1
7d832fe
- update to 4.055
7d832fe
  - in Lite.pm v1.38:
7d832fe
    - patch for CPAN RT#71869: issues with Math::BigInt variants
7d832fe
643b761
* Fri Oct 28 2011 Paul Howarth <paul@city-fan.org> 4.054-1
643b761
- update to 4.054
643b761
  - in Lite.pm v1.37:
643b761
    - fix CPAN RT#71925, a sub-variant of CPAN RT#62521 that showed up only for
643b761
      short notation for IPv4, e.g. 127/n, 127.0/n, 127.0.0/n but not
643b761
      127.0.0.0/n
643b761
    - remove Calc.pm
643b761
    - add detection of early Math::BigInt object structure
643b761
    - fix CPAN RT#71869 - a failed test routine
643b761
- upstream no longer ships README so no need to fix its encoding
643b761
712fd1d
* Wed Oct 26 2011 Paul Howarth <paul@city-fan.org> 4.052-1
712fd1d
- update to 4.052
712fd1d
  - in InetBase.pm v0.03:
712fd1d
    - Socket6 prior to version 0.23 does not have AF_INET6 in the EXPORT_OK
712fd1d
      array; modify InetBase.pm to work around this
712fd1d
    - remove reference to Config{osname}
712fd1d
  - in Lite.pm v1.35:
712fd1d
    - add support for Math::BigInt to NetAddr::IP::Lite
712fd1d
    - use Math::BigInt::Calc for creating BigInt values and fall back to
712fd1d
      NetAddr::IP::Calc if Math::BigInt is not present (fixes CPAN RT#71869)
712fd1d
- BR: perl(Data::Dumper) and perl(Math::BigInt)
712fd1d
- add runtime dependency on perl(Math::BigInt) for performance and consistency
712fd1d
- update UTF-8 patch to apply cleanly
712fd1d
18482e8
* Thu Oct 20 2011 Paul Howarth <paul@city-fan.org> - 4.049-1
18482e8
- update to 4.049
18482e8
  - in Lite v1.32:
18482e8
    - add capability to parse input of the form ->new6(12345,1); this should
18482e8
      have been there but was missing (CPAN RT#68723)
18482e8
  - in Util v1.41:
18482e8
    - add inet_pton, inet_ntop, AF_INET, AF_INET6
18482e8
    - modify inet_n2dx and inet_n2ad to recognize the new 128-bit IPv4 format
18482e8
      ::FFFF:FFFF:0:0
18482e8
    - replace isIPv4 with a pure perl version for portability
18482e8
  - split the following into NetAddr::IP::InetBase v0.01 to provide better
18482e8
    long-term support for IPv6:
18482e8
    - inet_aton
18482e8
    - inet_ntoa
18482e8
    - ipv6_aton
18482e8
    - ipv6_n2x
18482e8
    - ipv6_n2d
18482e8
    - inet_any2n
18482e8
    - inet_n2dx
18482e8
    - inet_n2ad
18482e8
    - inet_ntop
18482e8
    - inet_pton
18482e8
    - packzeros
18482e8
    - isIPv4
18482e8
    - isNewIPv4
18482e8
    - isAnyIPv4
18482e8
    - AF_INET
18482e8
    - AF_INET6
18482e8
- BR: perl(Carp)
18482e8
- BR: perl(Socket6) for test suite
18482e8
- update UTF-8 patch to apply cleanly
18482e8
- license is now GPL+ or Artistic in most of the code but Util.xs is GPLv2+ so
18482e8
  we ship the whole thing under that license
18482e8
Petr Sabata b803a15
* Fri Oct 07 2011 Petr Sabata <contyk@redhat.com> - 4.047-1
Petr Sabata b803a15
- 4.047 bump
Petr Sabata b803a15
79a5461
* Mon Jul 25 2011 Petr Pisar <ppisar@redhat.com> - 4.044-4
79a5461
- Fix RPM 4.9 dependency filtering
79a5461
af49a76
* Thu Jul 21 2011 Paul Howarth <paul@city-fan.org> - 4.044-3
af49a76
- use a patch rather than scripted iconv to fix character encoding
af49a76
- use rpm native provides filtering
af49a76
- make %%files list more explicit
af49a76
0a4f977
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4.044-2
0a4f977
- Perl mass rebuild
0a4f977
39fea20
* Tue Jun  7 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4.044-1
39fea20
- update to 4.044
39fea20
- clean specfile
39fea20
fae952b
* Wed Apr  6 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4.042-1
fae952b
- update to 4.042, because we had terribly old release
fae952b
32194ef
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.027-6
32194ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
32194ef
ab292e4
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 4.027-5
ab292e4
- 661697 rebuild for fixing problems with vendorach/lib
ab292e4
1e43924
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 4.027-4
1e43924
- Mass rebuild with perl-5.12.0
1e43924
8100f58
* Wed Feb 17 2010 Marcela Mašláňová <mmaslano@redhat.com> - 4.027-3
8100f58
- make rpmlint happy
8100f58
43ae2ca
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 4.027-2
43ae2ca
- rebuild against perl 5.10.1
43ae2ca
d5b484c
* Wed Sep 16 2009 Warren Togami <wtogami@redhat.com> - 4.027-1
d5b484c
- 4.027
d5b484c
e2eb289
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.007-5
e2eb289
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e2eb289
352897a
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.007-4
352897a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
352897a
ec370a9
* Thu Aug  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.007-3
ec370a9
- fix license tag
ec370a9
c9aa279
* Wed Mar  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.007-2
c9aa279
- rebuild for new perl
c9aa279
68221db
* Tue Feb 12 2008 Andreas Thienemann <athienem@redhat.com> 4.007-1
68221db
- Updated to 4.007
68221db
- Rebuilt against gcc-4.3
68221db
f64d3e3
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 4.004-4
f64d3e3
- Rebuild for selinux ppc32 issue.
f64d3e3
8f627fa
* Tue Jul 10 2007 Andreas Thienemann <andreas@bawue.net> 4.004-3
8f627fa
- Fixed missing BR on rawhide
8f627fa
8f627fa
* Thu Apr 26 2007 Andreas Thienemann <andreas@bawue.net> 4.004-2
0d5e391
- Moar docs!
0d5e391
0d5e391
* Thu Apr 12 2007 Andreas Thienemann <andreas@bawue.net> 4.004-1
0d5e391
- Specfile autogenerated by cpanspec 1.69.1.
0d5e391
- Cleand up for FE