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