1 | Name: perl-Test-RequiresInternet |
---|
2 | Version: 0.05 |
---|
3 | Release: 13%{?_dist_release} |
---|
4 | Summary: Easily test network connectivity |
---|
5 | License: GPL+ or Artistic |
---|
6 | URL: https://metacpan.org/release/Test-RequiresInternet |
---|
7 | Source0: https://cpan.metacpan.org/authors/id/M/MA/MALLEN/Test-RequiresInternet-%{version}.tar.gz |
---|
8 | BuildArch: noarch |
---|
9 | |
---|
10 | Vendor: Project Vine |
---|
11 | Distribution: Vine Linux |
---|
12 | |
---|
13 | # Build |
---|
14 | BuildRequires: perl >= 2:5.26.0 |
---|
15 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
16 | # Module |
---|
17 | BuildRequires: perl(Socket) |
---|
18 | BuildRequires: perl(strict) |
---|
19 | BuildRequires: perl(warnings) |
---|
20 | # Test Suite |
---|
21 | BuildRequires: perl(Test::More) |
---|
22 | # Runtime |
---|
23 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
24 | |
---|
25 | %description |
---|
26 | This module is intended to easily test network connectivity before functional |
---|
27 | tests begin to non-local Internet resources. It does not require any modules |
---|
28 | beyond those supplied in core Perl. |
---|
29 | |
---|
30 | If you do not specify a host/port pair, then the module defaults to using |
---|
31 | www.google.com on port 80. You may optionally specify the port by its name, as |
---|
32 | in http or ldap. If you do this, the test module will attempt to look up the |
---|
33 | port number using getservbyname. If you do specify a host and port, they must |
---|
34 | be specified in pairs. It is a fatal error to omit one or the other. |
---|
35 | |
---|
36 | If the environment variable NO_NETWORK_TESTING is set, then the tests will be |
---|
37 | skipped without attempting any socket connections. |
---|
38 | |
---|
39 | If the sockets cannot connect to the specified hosts and ports, the exception |
---|
40 | is caught, reported and the tests skipped. |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q -n Test-RequiresInternet-%{version} |
---|
44 | |
---|
45 | %build |
---|
46 | perl Makefile.PL INSTALLDIRS=vendor |
---|
47 | make %{?_smp_mflags} |
---|
48 | |
---|
49 | %install |
---|
50 | make pure_install DESTDIR=%{buildroot} |
---|
51 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
52 | %{_fixperms} %{buildroot} |
---|
53 | |
---|
54 | %check |
---|
55 | make test |
---|
56 | |
---|
57 | %files |
---|
58 | %if 0%{?_licensedir:1} |
---|
59 | %license LICENSE |
---|
60 | %else |
---|
61 | %doc LICENSE |
---|
62 | %endif |
---|
63 | %doc Changes README |
---|
64 | %{perl_vendorlib}/Test/ |
---|
65 | %{_mandir}/man3/Test::RequiresInternet.3* |
---|
66 | |
---|
67 | %changelog |
---|
68 | * Fri May 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.05-13 |
---|
69 | - initial build for Vine Linux. |
---|
70 | |
---|
71 | * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-12 |
---|
72 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
---|
73 | |
---|
74 | * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-11 |
---|
75 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
76 | |
---|
77 | * Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-10 |
---|
78 | - Perl 5.28 rebuild |
---|
79 | |
---|
80 | * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-9 |
---|
81 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
82 | |
---|
83 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-8 |
---|
84 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
85 | |
---|
86 | * Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-7 |
---|
87 | - Perl 5.26 rebuild |
---|
88 | |
---|
89 | * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-6 |
---|
90 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
91 | |
---|
92 | * Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-5 |
---|
93 | - Perl 5.24 rebuild |
---|
94 | |
---|
95 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-4 |
---|
96 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
97 | |
---|
98 | * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-3 |
---|
99 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
100 | |
---|
101 | * Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-2 |
---|
102 | - Perl 5.22 rebuild |
---|
103 | |
---|
104 | * Tue May 26 2015 Paul Howarth <paul@city-fan.org> - 0.05-1 |
---|
105 | - Update to 0.05 |
---|
106 | - Fix test error when NO_NETWORK_TESTING is set (CPAN RT#101996, GH#3) |
---|
107 | |
---|
108 | * Thu Jan 29 2015 Paul Howarth <paul@city-fan.org> - 0.04-1 |
---|
109 | - Update to 0.04 |
---|
110 | - Test::More prior to 0.88 (included with perl 5.10.1) does not support the |
---|
111 | done_testing() function; revert to a test plan to support older perls |
---|
112 | (GH#2) |
---|
113 | |
---|
114 | * Mon Jan 26 2015 Paul Howarth <paul@city-fan.org> - 0.03-2 |
---|
115 | - Sanitize for Fedora submission |
---|
116 | |
---|
117 | * Mon Jan 26 2015 Paul Howarth <paul@city-fan.org> - 0.03-1 |
---|
118 | - Initial RPM version |
---|