6490865
Name:		perl-Test-RequiresInternet
3c4bb2c
Version:	0.05
202f925
Release:	21%{?dist}
6490865
Summary:	Easily test network connectivity
6490865
License:	GPL+ or Artistic
838e5ec
URL:		https://metacpan.org/release/Test-RequiresInternet
88f3a38
Source0:	https://cpan.metacpan.org/modules/by-module/Test/Test-RequiresInternet-%{version}.tar.gz
6490865
BuildArch:	noarch
6490865
# Build
88f3a38
BuildRequires:	coreutils
88f3a38
BuildRequires:	findutils
88f3a38
BuildRequires:	make
d10dde9
BuildRequires:	perl-generators
88f3a38
BuildRequires:	perl-interpreter
6490865
BuildRequires:	perl(ExtUtils::MakeMaker)
6490865
# Module
6490865
BuildRequires:	perl(Socket)
6490865
BuildRequires:	perl(strict)
6490865
BuildRequires:	perl(warnings)
6490865
# Test Suite
61fa211
BuildRequires:	perl(Test::More)
6490865
# Runtime
6490865
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
6490865
6490865
%description
6490865
This module is intended to easily test network connectivity before functional
6490865
tests begin to non-local Internet resources. It does not require any modules
6490865
beyond those supplied in core Perl.
6490865
6490865
If you do not specify a host/port pair, then the module defaults to using
6490865
www.google.com on port 80. You may optionally specify the port by its name, as
6490865
in http or ldap. If you do this, the test module will attempt to look up the
6490865
port number using getservbyname. If you do specify a host and port, they must
6490865
be specified in pairs. It is a fatal error to omit one or the other.
6490865
6490865
If the environment variable NO_NETWORK_TESTING is set, then the tests will be
6490865
skipped without attempting any socket connections.
6490865
6490865
If the sockets cannot connect to the specified hosts and ports, the exception
6490865
is caught, reported and the tests skipped.
6490865
6490865
%prep
6490865
%setup -q -n Test-RequiresInternet-%{version}
6490865
6490865
%build
6490865
perl Makefile.PL INSTALLDIRS=vendor
6490865
make %{?_smp_mflags}
6490865
6490865
%install
6490865
make pure_install DESTDIR=%{buildroot}
88f3a38
find %{buildroot} -type f -name .packlist -delete
88f3a38
%{_fixperms} -c %{buildroot}
6490865
6490865
%check
6490865
make test
6490865
6490865
%files
6490865
%if 0%{?_licensedir:1}
6490865
%license LICENSE
6490865
%else
6490865
%doc LICENSE
6490865
%endif
6490865
%doc Changes README
6490865
%{perl_vendorlib}/Test/
6490865
%{_mandir}/man3/Test::RequiresInternet.3*
6490865
6490865
%changelog
202f925
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-21
202f925
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
202f925
f63d9c1
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-20
f63d9c1
- Perl 5.34 rebuild
f63d9c1
b724bca
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-19
b724bca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b724bca
bba71c9
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-18
bba71c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bba71c9
1b5f333
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-17
1b5f333
- Perl 5.32 rebuild
1b5f333
6da56d0
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-16
6da56d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6da56d0
88f3a38
* Sat Sep 28 2019 Paul Howarth <paul@city-fan.org> - 0.05-15
88f3a38
- Spec tidy-up
88f3a38
  - Use author-independent source URL
88f3a38
  - Specify all build requirements
88f3a38
  - Simplify find command using -delete
88f3a38
15761d9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-14
15761d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
15761d9
6d4ac16
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-13
6d4ac16
- Perl 5.30 rebuild
6d4ac16
0773676
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-12
0773676
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0773676
060e2c1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-11
060e2c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
060e2c1
c5c6d84
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-10
c5c6d84
- Perl 5.28 rebuild
c5c6d84
90e19e3
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-9
90e19e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
90e19e3
7d8a2db
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-8
7d8a2db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7d8a2db
e925ecf
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-7
e925ecf
- Perl 5.26 rebuild
e925ecf
98e9605
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-6
98e9605
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
98e9605
cbbbf4b
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-5
cbbbf4b
- Perl 5.24 rebuild
cbbbf4b
81eff09
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-4
81eff09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
81eff09
c9ea33c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-3
c9ea33c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c9ea33c
64f4538
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-2
64f4538
- Perl 5.22 rebuild
64f4538
3c4bb2c
* Tue May 26 2015 Paul Howarth <paul@city-fan.org> - 0.05-1
3c4bb2c
- Update to 0.05
3c4bb2c
  - Fix test error when NO_NETWORK_TESTING is set (CPAN RT#101996, GH#3)
3c4bb2c
61fa211
* Thu Jan 29 2015 Paul Howarth <paul@city-fan.org> - 0.04-1
61fa211
- Update to 0.04
61fa211
  - Test::More prior to 0.88 (included with perl 5.10.1) does not support the
61fa211
    done_testing() function; revert to a test plan to support older perls
61fa211
    (GH#2)
61fa211
6490865
* Mon Jan 26 2015 Paul Howarth <paul@city-fan.org> - 0.03-2
6490865
- Sanitize for Fedora submission
6490865
6490865
* Mon Jan 26 2015 Paul Howarth <paul@city-fan.org> - 0.03-1
6490865
- Initial RPM version