|
|
|
@ -12,7 +12,13 @@ Source: http://www.cpan.org/authors/id/M/MA/MANU/Net-IP-%{version}.tar.g
|
|
|
|
|
Patch0: perl-Net-IP-1.25-bz197425.patch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(Math::BigInt)
|
|
|
|
|
# Tests:
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
# Not yet packaged: IP::Authority
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This is the Net::IP module for Perl, designed to allow easy
|
|
|
|
@ -22,7 +28,6 @@ it can calculate the number of IP addresses in a prefix or all the
|
|
|
|
|
prefixes contained in a given range; and iptab, which prints out a
|
|
|
|
|
handy IP "cheat sheet".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Net-IP-%{version}
|
|
|
|
|
%patch0 -p1
|
|
|
|
@ -36,13 +41,8 @@ make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# These tests fail on ppc builders because of:
|
|
|
|
|
# http://rt.perl.org/rt3//Public/Bug/Display.html?id=50114
|
|
|
|
|
# Re-enable this when the upstream bug is resolved.
|
|
|
|
|
# make test
|
|
|
|
|
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING Changes README
|
|
|
|
|