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