Summary: IPv4 and IPv6 validation methods
Name: perl-Data-Validate-IP
Version: 0.30
Release: 1%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
URL: https://metacpan.org/release/Data-Validate-IP
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Data-Validate-IP-%{version}.tar.gz
%define sha512 Data-Validate-IP=ac556445f1eec0440be17263bcffce46d0c3b719d3c64022bcb3fc6d1191ed9de94c0e4d6b2c3c5c1704dc7945b14a5c87abfcf2b7dc43ec4f10a4cc6629b761
Vendor: VMware, Inc.
Distribution: Photon
BuildArch: noarch
BuildRequires: perl
Requires: perl
BuildRequires: perl-NetAddr-IP
Requires: perl-NetAddr-IP
%description
This module provides a number IP address validation subs that both
validate and untaint their input. This includes both basic validation
(is_ipv4() and is_ipv6()) and special cases like checking whether an
address belongs to a specific network or whether an address is public
or private (reserved).
%prep
%autosetup -n Data-Validate-IP-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
make %{?_smp_mflags} install DESTDIR=%{buildroot}
find %{buildroot} -name 'perllocal.pod' -delete
%check
# Install the required perl module - Test::Requires
export PERL_MM_USE_DEFAULT=1
echo "yes" | cpan -a
cpan -i Test::Requires
make %{?_smp_mflags} test
%files
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Thu Dec 08 2022 Gerrit Photon <photon-checkins@vmware.com> 0.30-1
- Automatic Version Bump
* Thu Aug 20 2020 Dweep Advani <dadvani@vmware.com> 0.27-3
- Rebuilding for perl version 5.30.1
* Mon Dec 03 2018 Dweep Advani <dadvani@vmware.com> 0.27-2
- Fixing the makecheck tests
* Thu Sep 27 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 0.27-1
- Initial version.