Blame perl-Net-Ping.spec

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