Blame SPECS/perl-Net-Ping.spec

13b96b
Name:           perl-Net-Ping
13b96b
Version:        2.74
13b96b
Release:        5%{?dist}
13b96b
Summary:        Check a remote host for reachability
13b96b
License:        GPL+ or Artistic
13b96b
URL:            https://metacpan.org/release/Net-Ping/
13b96b
Source0:        https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Net-Ping-%{version}.tar.gz
13b96b
# Use trully non-routable address in tests, proposed to the upstream,
13b96b
# <https://github.com/rurban/Net-Ping/pull/24>
13b96b
Patch0:         Net-Ping-2.74-Use-non-routable-addreses-for-negative-tests.patch
13b96b
# Disable Internet tests with NO_NETWORK_TESTING, bug #1898132,
13b96b
# proposed to the upstream, <https://github.com/rurban/Net-Ping/pull/24>
13b96b
Patch1:         Net-Ping-2.74-Disable-all-network-tests-with-NO_NETWORK_TESTING-1.patch
13b96b
# Disable Internet tests in 200_ping_tcp, bug #1903747
13b96b
Patch2:         Net-Ping-2.74-Disable-all-network-tests-in-200_ping_tcp.patch
13b96b
BuildArch:      noarch
13b96b
BuildRequires:  coreutils
13b96b
BuildRequires:  make
13b96b
BuildRequires:  perl-generators
13b96b
BuildRequires:  perl-interpreter
13b96b
BuildRequires:  perl(:VERSION) >= 5.2
13b96b
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
13b96b
BuildRequires:  perl(strict)
13b96b
BuildRequires:  perl(warnings)
13b96b
# Run-time:
13b96b
BuildRequires:  perl(Carp)
13b96b
BuildRequires:  perl(constant)
13b96b
BuildRequires:  perl(Exporter)
13b96b
BuildRequires:  perl(Fcntl)
13b96b
BuildRequires:  perl(FileHandle)
13b96b
BuildRequires:  perl(IO::Socket::INET)
13b96b
# Net::Ping::External not used at tests
13b96b
BuildRequires:  perl(POSIX)
13b96b
BuildRequires:  perl(Socket) >= 2.007
13b96b
BuildRequires:  perl(Time::HiRes)
13b96b
BuildRequires:  perl(vars)
13b96b
# Win32 not used on Linux
13b96b
# Tests:
13b96b
BuildRequires:  perl(Config)
13b96b
BuildRequires:  perl(Cwd)
13b96b
BuildRequires:  perl(File::Spec)
13b96b
BuildRequires:  perl(Test::More)
13b96b
# sudo not used
13b96b
# Optional tests:
13b96b
BuildRequires:  perl(:VERSION) >= 5.6
13b96b
# Class::XSAccessor not used
13b96b
BuildRequires:  perl(IO::Socket)
13b96b
# List::MoreUtils not used
13b96b
# Module::CPANTS::Kwalitee::Uses not used
13b96b
# Text::CSV_XS not used
13b96b
# Test::CPAN::Meta not used
13b96b
# Test::Kwalitee not used
13b96b
BuildRequires:  perl(Test::Pod) >= 1.22
13b96b
# Test::Pod::Coverage not used
13b96b
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
13b96b
Requires:       perl(IO::Socket::INET)
13b96b
# Keep Net::Ping::External optional
13b96b
Suggests:       perl(Net::Ping::External)
13b96b
Conflicts:      perl < 4:5.22.0-350
13b96b
13b96b
%description
13b96b
Net::Ping module contains methods to test the reachability of remote hosts on
13b96b
a network.
13b96b
13b96b
%prep
13b96b
%setup -q -n Net-Ping-%{version}
13b96b
%patch0 -p1
13b96b
%patch1 -p1
13b96b
%patch2 -p1
13b96b
13b96b
%build
13b96b
unset PERL_CORE
13b96b
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
13b96b
%{make_build}
13b96b
13b96b
%install
13b96b
%{make_install}
13b96b
%{_fixperms} $RPM_BUILD_ROOT/*
13b96b
13b96b
%check
13b96b
unset AUTHOR_TESTING IS_MAINTAINER NET_PING_FAIL_IP PERL_TEST_Net_Ping \
13b96b
    TEST_PING_HOST TEST_PING6_HOST
13b96b
export NO_NETWORK_TESTING=1
13b96b
make test
13b96b
13b96b
%files
13b96b
%doc Changes README TODO
13b96b
%{perl_vendorlib}/*
13b96b
%{_mandir}/man3/*
13b96b
13b96b
%changelog
13b96b
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.74-5
13b96b
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
13b96b
  Related: rhbz#1991688
13b96b
13b96b
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.74-4
13b96b
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
13b96b
13b96b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.74-3
13b96b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
13b96b
13b96b
* Thu Dec 03 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.74-2
13b96b
- Disable network tests in 200_tcp_ping
13b96b
13b96b
* Mon Nov 16 2020 Petr Pisar <ppisar@redhat.com> 2.74-1
13b96b
- Specfile autogenerated by cpanspec 1.78.