perl-Test2-Plugin-NoWarnings-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. Name: perl-Test2-Plugin-NoWarnings
  2. Version: 0.07
  3. Release: 2%{?_dist_release}
  4. Summary: Fail if tests warn
  5. License: Artistic 2.0
  6. URL: https://metacpan.org/release/Test2-Plugin-NoWarnings
  7. Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Test2-Plugin-NoWarnings-%{version}.tar.gz
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. BuildArch: noarch
  11. # Build
  12. BuildRequires: coreutils
  13. BuildRequires: make
  14. BuildRequires: perl >= 2:5.26.2
  15. BuildRequires: perl(ExtUtils::MakeMaker)
  16. # Module Runtime
  17. BuildRequires: perl(Carp)
  18. BuildRequires: perl(parent)
  19. BuildRequires: perl(strict)
  20. BuildRequires: perl(Test2)
  21. BuildRequires: perl(Test2::API)
  22. BuildRequires: perl(Test2::Event)
  23. BuildRequires: perl(Test2::Util::HashBase)
  24. BuildRequires: perl(warnings)
  25. # Test Suite
  26. BuildRequires: perl(Capture::Tiny)
  27. BuildRequires: perl(File::Spec)
  28. BuildRequires: perl(IPC::Run3)
  29. BuildRequires: perl(Test2::Require::Module)
  30. BuildRequires: perl(Test2::V0)
  31. BuildRequires: perl(Test::More)
  32. # Optional Tests
  33. BuildRequires: perl(CPAN::Meta)
  34. BuildRequires: perl(CPAN::Meta::Prereqs)
  35. # Dependencies
  36. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  37. %description
  38. Loading this plugin causes your tests to fail if there are any warnings while
  39. they run. Each warning generates a new failing test and the warning content is
  40. outputted via diag.
  41. This module uses $SIG{__WARN__}, so if the code you're testing sets this, then
  42. this module will stop working.
  43. %prep
  44. %setup -q -n Test2-Plugin-NoWarnings-%{version}
  45. %build
  46. perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
  47. %{make_build}
  48. %install
  49. %{make_install}
  50. %{_fixperms} -c %{buildroot}
  51. %check
  52. make test
  53. %files
  54. %license LICENSE
  55. %doc Changes CODE_OF_CONDUCT.md README.md
  56. %{perl_vendorlib}/Test2/
  57. %{_mandir}/man3/Test2::Event::Warning.3*
  58. %{_mandir}/man3/Test2::Plugin::NoWarnings.3*
  59. %changelog
  60. * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.07-2
  61. - initial build for Vine Linux.
  62. * Mon Apr 22 2019 Paul Howarth <paul@city-fan.org> - 0.07-1
  63. - Update to 0.07
  64. - Reverted back to using the Warning event type, since the bug in the Test2
  65. core that caused this to be a problem has since been fixed
  66. - Replaced use of Test2::Bundle::Extended with Test2::V0
  67. - Package new document CODE_OF_CONDUCT.md
  68. - Modernize spec using %%{make_build} and %%{make_install}
  69. * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-6
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  71. * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-5
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  73. * Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-4
  74. - Perl 5.28 rebuild
  75. * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-3
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  77. * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-2
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  79. * Mon Jun 19 2017 Paul Howarth <paul@city-fan.org> - 0.06-1
  80. - Update to 0.06
  81. - Warnings inside a subtest were not emitted as TAP events, breaking the TAP
  82. and making for great confusion: this is because of a bug in the core TAP
  83. formatter (https://github.com/Test-More/test-more/issues/776); warnings
  84. are now emitted as Ok events instead of Warning events
  85. * Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-3
  86. - Perl 5.26 rebuild
  87. * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-2
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  89. * Tue Nov 8 2016 Paul Howarth <paul@city-fan.org> - 0.05-1
  90. - Update to 0.05
  91. - Skip compile.t on Windows; this test uses IPC::Run3, which doesn't seem to
  92. work well on that platform (CPAN RT#118443)
  93. * Thu Oct 27 2016 Paul Howarth <paul@city-fan.org> - 0.04-2
  94. - We provide Test2::Event::Warning so we don't need to build-require it
  95. * Mon Oct 24 2016 Paul Howarth <paul@city-fan.org> - 0.04-1
  96. - Update to 0.04
  97. - Load Test2::Event::Warning in the plugin instead of relying on Test2 to do
  98. it for us; this should avoid the bug fixed in the previous version and
  99. eliminates the need for the INIT block, which caused its own problems
  100. * Tue Oct 18 2016 Paul Howarth <paul@city-fan.org> - 0.03-1
  101. - Update to 0.03
  102. - Add the $SIG{__WARN__} hook in an INIT block; we really don't want to
  103. trigger this because of a compile-time warning, and because of a bug in
  104. Test::Builder, this can actually cause the warning to be lost entirely
  105. (https://github.com/Test-More/test-more/issues/729)
  106. - The Test2::Event::Warning event now returns true for increments_count,
  107. which means that the test failure caused by a warning will not be output
  108. as a TAP test line; previously this was just seen as a diag line, which
  109. could be quite confusing
  110. (https://github.com/Test-More/test-more/issues/728)
  111. * Mon Sep 19 2016 Paul Howarth <paul@city-fan.org> - 0.02-3
  112. - Drop unused BR: findutils (#1377228)
  113. * Mon Sep 19 2016 Paul Howarth <paul@city-fan.org> - 0.02-2
  114. - Sanitize for Fedora submission
  115. * Sun Sep 18 2016 Paul Howarth <paul@city-fan.org> - 0.02-1
  116. - Initial RPM version