source: projects/specs/trunk/p/perl-Test-RequiresInternet/perl-Test-RequiresInternet-vl.spec @ 12120

Revision 12120, 3.9 KB checked in by tomop, 5 years ago (diff)

perl-5.26 and friends

Line 
1Name:           perl-Test-RequiresInternet
2Version:        0.05
3Release:        13%{?_dist_release}
4Summary:        Easily test network connectivity
5License:        GPL+ or Artistic
6URL:            https://metacpan.org/release/Test-RequiresInternet
7Source0:        https://cpan.metacpan.org/authors/id/M/MA/MALLEN/Test-RequiresInternet-%{version}.tar.gz
8BuildArch:      noarch
9
10Vendor:         Project Vine
11Distribution:   Vine Linux
12
13# Build
14BuildRequires:  perl >= 2:5.26.0
15BuildRequires:  perl(ExtUtils::MakeMaker)
16# Module
17BuildRequires:  perl(Socket)
18BuildRequires:  perl(strict)
19BuildRequires:  perl(warnings)
20# Test Suite
21BuildRequires:  perl(Test::More)
22# Runtime
23Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
24
25%description
26This module is intended to easily test network connectivity before functional
27tests begin to non-local Internet resources. It does not require any modules
28beyond those supplied in core Perl.
29
30If you do not specify a host/port pair, then the module defaults to using
31www.google.com on port 80. You may optionally specify the port by its name, as
32in http or ldap. If you do this, the test module will attempt to look up the
33port number using getservbyname. If you do specify a host and port, they must
34be specified in pairs. It is a fatal error to omit one or the other.
35
36If the environment variable NO_NETWORK_TESTING is set, then the tests will be
37skipped without attempting any socket connections.
38
39If the sockets cannot connect to the specified hosts and ports, the exception
40is caught, reported and the tests skipped.
41
42%prep
43%setup -q -n Test-RequiresInternet-%{version}
44
45%build
46perl Makefile.PL INSTALLDIRS=vendor
47make %{?_smp_mflags}
48
49%install
50make pure_install DESTDIR=%{buildroot}
51find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
52%{_fixperms} %{buildroot}
53
54%check
55make 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
Note: See TracBrowser for help on using the repository browser.