be8a2bd
#TODO: BR:/R: perl(IP::Authority) when available
be8a2bd
f58344c
Name:           perl-Net-IP
db5b448
Version:        1.26
be8a2bd
Release:        20%{?dist}
f58344c
Summary:        Perl module for manipulation of IPv4 and IPv6 addresses
55ce6d8
# Some ambiguity here, see http://rt.cpan.org/Ticket/Display.html?id=28689
f425e74
# MIT-like for the IP.pm itself, and "like Perl itself" for all the other
f425e74
# scripts included.
bdd5ab9
License:        MIT and (GPL+ or Artistic)
b4245e4
URL:            https://metacpan.org/release/Net-IP
be8a2bd
Source:         https://cpan.metacpan.org/modules/by-module/Net/Net-IP-%{version}.tar.gz
be8a2bd
Patch0:         Net-IP-1.26-rt60439.patch
be8a2bd
Patch1:         Net-IP-1.26-shellbang.patch
f58344c
BuildArch:      noarch
be8a2bd
# Build:
be8a2bd
BuildRequires:  coreutils
be8a2bd
BuildRequires:  findutils
be8a2bd
BuildRequires:  make
5518f8a
BuildRequires:  perl-generators
be8a2bd
BuildRequires:  perl-interpreter
be8a2bd
BuildRequires:  perl(Config)
55ce6d8
BuildRequires:  perl(ExtUtils::MakeMaker)
87f1f4d
# Run-time:
87f1f4d
BuildRequires:  perl(Exporter)
87f1f4d
BuildRequires:  perl(Math::BigInt)
be8a2bd
BuildRequires:  perl(overload)
be8a2bd
BuildRequires:  perl(strict)
be8a2bd
BuildRequires:  perl(vars)
be8a2bd
# Script Run-time:
be8a2bd
BuildRequires:  perl(Getopt::Std)
87f1f4d
# Tests:
be8a2bd
BuildRequires:  perl(File::Basename)
be8a2bd
BuildRequires:  perl(FileHandle)
87f1f4d
BuildRequires:  perl(lib)
be8a2bd
# Dependencies:
db5b448
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
87f1f4d
# Not yet packaged: IP::Authority
jvdias a720b89
f58344c
%description
be8a2bd
This is the Net::IP module, designed to allow easy manipulation of IPv4 and
be8a2bd
IPv6 addresses.
be8a2bd
be8a2bd
Two applications using the Net::IP module are included: ipcount, an IP address
be8a2bd
mini-calculator, which can calculate the number of IP addresses in a prefix or
be8a2bd
all the prefixes contained in a given range; and iptab, which prints out a
f58344c
handy IP "cheat sheet".
f58344c
f58344c
%prep
f58344c
%setup -q -n Net-IP-%{version}
be8a2bd
be8a2bd
# Apply fix for zero networks (#197425, CPAN RT#20265, CPAN RT#60439)
be8a2bd
%patch0
be8a2bd
be8a2bd
# Fix shellbangs in shipped scripts
be8a2bd
%patch1
f58344c
f58344c
%build
db5b448
perl Makefile.PL INSTALLDIRS=vendor
f58344c
make %{?_smp_mflags}
f58344c
f58344c
%install
be8a2bd
make pure_install DESTDIR=%{buildroot}
be8a2bd
find %{buildroot} -type f -name .packlist -delete
be8a2bd
%{_fixperms} -c %{buildroot}
f58344c
f58344c
%check
87f1f4d
make test
f58344c
be8a2bd
# This should work for 0.0.0.0
be8a2bd
# https://bugzilla.redhat.com/show_bug.cgi?id=197425
be8a2bd
PERL5LIB=%{buildroot}%{perl_vendorlib} ./iptab
be8a2bd
f58344c
%files
be8a2bd
%license COPYING
be8a2bd
%doc Changes README
be8a2bd
# GPL+ or Artistic
f58344c
%{_bindir}/ipcount
f58344c
%{_bindir}/iptab
be8a2bd
# MIT
f58344c
%{perl_vendorlib}/Net/
f58344c
%{_mandir}/man3/Net::IP.3*
f58344c
f58344c
%changelog
be8a2bd
* Fri Aug 23 2019 Paul Howarth <paul@city-fan.org> - 1.26-20
be8a2bd
- Use upstream-approved fix for zero networks (CPAN RT#60439)
be8a2bd
- Fix shellbangs in utility scripts
be8a2bd
- Specify all dependencies
be8a2bd
- Use %%license
be8a2bd
f4a6e32
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-19
f4a6e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f4a6e32
898cc24
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.26-18
898cc24
- Perl 5.30 rebuild
898cc24
efdb7d3
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-17
efdb7d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
efdb7d3
04fef76
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-16
04fef76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
04fef76
1428ce5
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.26-15
1428ce5
- Perl 5.28 rebuild
1428ce5
96c63c9
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-14
96c63c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
96c63c9
f8b9997
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-13
f8b9997
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f8b9997
4d80e26
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.26-12
4d80e26
- Perl 5.26 rebuild
4d80e26
576df7a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-11
576df7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
576df7a
1310502
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.26-10
1310502
- Perl 5.24 rebuild
1310502
d4a71ec
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-9
d4a71ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d4a71ec
1f90632
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-8
1f90632
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1f90632
cad5837
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.26-7
cad5837
- Perl 5.22 rebuild
cad5837
5d405d4
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.26-6
5d405d4
- Perl 5.20 rebuild
5d405d4
44eae19
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-5
44eae19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
44eae19
337692c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-4
337692c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
337692c
310d68c
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.26-3
310d68c
- Perl 5.18 rebuild
310d68c
1a00aaa
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-2
1a00aaa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1a00aaa
db5b448
* Thu Nov 29 2012 Petr Pisar <ppisar@redhat.com> - 1.26-1
db5b448
- 1.26 bump
db5b448
058d17b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-20
058d17b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
058d17b
fe5148a
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 1.25-19
fe5148a
- Perl 5.16 rebuild
fe5148a
a5cac22
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-18
a5cac22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a5cac22
1e23a3c
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.25-17
1e23a3c
- Perl mass rebuild
1e23a3c
0860fad
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-16
0860fad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0860fad
2b6c251
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.25-15
cff3b22
- Rebuild to fix problems with vendorarch/lib (#661697)
2b6c251
74d2270
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.25-14
74d2270
- Mass rebuild with perl-5.12.0
74d2270
f425e74
* Wed Jan 27 2010 Stepan Kasal <skasal@redhat.com> - 1.25-13
f425e74
- fix the source URL
f425e74
bdd5ab9
* Wed Jan 27 2010 Stepan Kasal <skasal@redhat.com> - 1.25-12
bdd5ab9
- fix license tag
bdd5ab9
530bad0
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.25-11
530bad0
- rebuild against perl 5.10.1
530bad0
9aa21d6
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-10
9aa21d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9aa21d6
b1c7c73
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-9
b1c7c73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b1c7c73
ea2da31
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.25-8
ea2da31
- Rebuild for perl 5.10 (again)
ea2da31
ff1aae5
* Fri Feb  1 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.25-7
ff1aae5
- disable tests due to upstream bug 50114
ff1aae5
236a470
* Fri Feb  1 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.25-6
236a470
- Work around http://rt.perl.org/rt3//Public/Bug/Display.html?id=50114
236a470
37d3970
* Thu Jan 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.25-5
37d3970
- rebuild for new perl
37d3970
55ce6d8
* Sun Aug 12 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.25-4
55ce6d8
- BuildRequire perl(ExtUtils::MakeMaker)
55ce6d8
- License: MIT
55ce6d8
bbd7160
* Sun Feb 04 2007 Robin Norwood <rnorwood@redhat.com> - 1.25-3
bbd7160
- Resolves: bz#226271
bbd7160
- Incorporate some fixes to the spec file from Ville:
bbd7160
jvdias a720b89
* Wed Jul 05 2006 Jason Vas Dias <jvdias@redhat.com> - 1.25-2
jvdias a720b89
- fix bug 197925 - make intip handle zero-valued IP addresses
jvdias a720b89
jvdias 36cd192
* Mon Jun 05 2006 Jason Vas Dias <jvdias@redhat.com> - 1.25-1
jvdias 36cd192
- upgrade to 1.25
jvdias 36cd192
jvdias 33dda64
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.24-2.2
jvdias 33dda64
- rebuild for new perl-5.8.8
jvdias 33dda64
83e9035
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
441898e
- rebuilt for new gcc
441898e
441898e
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
83e9035
- rebuilt for new gcj
83e9035
f58344c
* Mon Oct 31 2005 Warren Togami <wtogami@redhat.com> - 1.24-2
f58344c
- import into FC5 because perl-Net-DNS needs it
f58344c
f58344c
* Wed Oct 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.24-1
f58344c
- 1.24.
f58344c
f58344c
* Mon Jun  6 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.23-3
f58344c
- 1.23, patches applied upstream.
f58344c
- Improve description.
f58344c
f58344c
* Sun May 29 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.22-2
f58344c
- 1.22, include test case for rt.cpan.org #7528 patch.
f58344c
- Patch to mute stdout noise from ip_reverse().
f58344c
cff3b22
* Wed Apr  6 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.21-2
f58344c
- rebuilt
f58344c
f58344c
* Thu Dec  2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.21-1
f58344c
- Update to 1.21.
f58344c
f58344c
* Sat Nov  6 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20-0.fdr.7
f58344c
- Apply fixes from rt.cpan.org #3844 and #7528.
f58344c
- Some specfile cleanups.
f58344c
f58344c
* Sun May  9 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20-0.fdr.6
f58344c
- BuildRequire perl >= 1:5.6.1-34.99.6 for support for vendor installdirs.
f58344c
- Use pure_install to avoid perllocal.pod workarounds.
f58344c
f58344c
* Sun Apr 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20-0.fdr.5
f58344c
- Require perl(:MODULE_COMPAT_*).
f58344c
f58344c
* Mon Feb  2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20-0.fdr.4
f58344c
- Reduce directory ownership bloat.
f58344c
f58344c
* Mon Dec  1 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20-0.fdr.3
f58344c
- Specfile cleanup.
f58344c
f58344c
* Sun Aug 31 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20-0.fdr.2
f58344c
- Install into vendor dirs.
f58344c
f58344c
* Wed Jul 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20-0.fdr.1
f58344c
- First build.