perl-Test-RequiresInternet-vl.spec 3.9 KB

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