perl-Test-Fatal-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. Summary: Incredibly simple helpers for testing code with exceptions
  2. Name: perl-Test-Fatal
  3. Version: 0.014
  4. Release: 1%{?_dist_release}
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. Url: http://search.cpan.org/dist/Test-Fatal/
  8. Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-%{version}.tar.gz
  9. Patch0: Test-Fatal-0.008-old-EU::MM.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
  11. BuildArch: noarch
  12. BuildRequires: perl(Carp)
  13. BuildRequires: perl(Exporter)
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. BuildRequires: perl(Test::Builder::Tester)
  16. BuildRequires: perl(Test::More)
  17. BuildRequires: perl(Test::Pod)
  18. BuildRequires: perl(Try::Tiny)
  19. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. Test::Fatal is an alternative to the popular Test::Exception. It does much
  24. less, but should allow greater flexibility in testing exception-throwing code
  25. with about the same amount of typing.
  26. %prep
  27. %setup -q -n Test-Fatal-%{version}
  28. %build
  29. perl Makefile.PL INSTALLDIRS=vendor
  30. make %{?_smp_mflags}
  31. %install
  32. rm -rf %{buildroot}
  33. make pure_install DESTDIR=%{buildroot}
  34. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  35. find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
  36. %{_fixperms} %{buildroot}
  37. %check
  38. make test RELEASE_TESTING=1
  39. %clean
  40. rm -rf %{buildroot}
  41. %files
  42. %defattr(-,root,root,-)
  43. %license LICENSE
  44. %doc Changes README
  45. %{perl_vendorlib}/Test/
  46. %{_mandir}/man3/Test::Fatal.3pm*
  47. %changelog
  48. * Fri May 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.014-1
  49. - new upstream release.
  50. - rebuilt with perl-5.26.
  51. * Mon Jun 30 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.010-2
  52. - build with Perl 5.16
  53. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.010-1
  54. - initial build for Vine Linux
  55. * Thu Feb 16 2012 Paul Howarth <paul@city-fan.org> 0.010-1
  56. - Update to 0.010
  57. - Avoid tickling an overloading bug in perl 5.6 during testing
  58. (CPAN RT#74847)
  59. * Fri Feb 10 2012 Paul Howarth <paul@city-fan.org> 0.009-1
  60. - Update to 0.009
  61. - Advise against using isnt(exception{...},undef)
  62. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 0.008-2
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  64. * Mon Nov 7 2011 Paul Howarth <paul@city-fan.org> 0.008-1
  65. - Update to 0.008
  66. - Revert the mistake by which 0.004 allowed blocks after "exception" as well
  67. as "success"
  68. - BR: perl(Carp)
  69. - Update patch for building with ExtUtils::MakeMaker < 6.30
  70. * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> 0.006-2
  71. - Perl mass rebuild
  72. * Thu Jun 2 2011 Paul Howarth <paul@city-fan.org> 0.006-1
  73. - Update to 0.006
  74. - Crank back the Test::More and Exporter requirements (CPAN RT#62699)
  75. - Add lives_ok and dies_ok emulation (CPAN RT#67598)
  76. - Versions patch replaced by workaround for old ExtUtils::MakeMaker
  77. - BR: perl(Test::Builder::Tester)
  78. * Tue Apr 26 2011 Paul Howarth <paul@city-fan.org> 0.005-1
  79. - Update to 0.005
  80. - Fix the logic that picks tests for 5.13.1+
  81. * Tue Apr 26 2011 Paul Howarth <paul@city-fan.org> 0.004-1
  82. - Update to 0.004
  83. - success blocks now allow trailing blocks like finally, catch, etc.
  84. - Remove remaining uses of macros for commands
  85. - Re-order %%install section to conventional position in spec
  86. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 0.003-2
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  88. * Fri Oct 29 2010 Paul Howarth <paul@city-fan.org> 0.003-1
  89. - Update to 0.003
  90. - More tests for false exceptions, especially on 5.13
  91. - Update versions patch
  92. * Thu Oct 28 2010 Paul Howarth <paul@city-fan.org> 0.002-1
  93. - Update to 0.002
  94. - Add tests for handling of false exceptions
  95. - Fix precedence error in documentation
  96. - Update versions patch
  97. * Wed Oct 27 2010 Paul Howarth <paul@city-fan.org> 0.001-2
  98. - Sanitize spec for Fedora submission
  99. * Tue Oct 26 2010 Paul Howarth <paul@city-fan.org> 0.001-1
  100. - Initial RPM version