perl-Test-NoWarnings-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Name: perl-Test-NoWarnings
  2. Version: 0.084
  3. Release: 1%{?_dist_release}
  4. Summary: Make sure you didn't emit any warnings while testing
  5. License: LGPL
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Test-NoWarnings/
  8. Source0: http://www.cpan.org/authors/id/F/FD/FDALY/Test-NoWarnings-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: perl(Test::Tester) >= 0.103
  13. Requires: perl >= %(eval "`%{__perl} -V:version`"; echo $version)
  14. %description
  15. In general, your tests shouldn't produce warnings. This module causes any
  16. warnings to be captured and stored. It automatically adds an extra test
  17. that will run when your script ends to check that there were no warnings.
  18. If there were any warings, the test will give a "not ok" and diagnostics of
  19. where, when and what the warning was, including a stack trace of what was
  20. going on when the it occurred.
  21. %prep
  22. %setup -q -n Test-NoWarnings-%{version}
  23. %build
  24. %{__perl} Makefile.PL INSTALLDIRS=vendor
  25. make %{?_smp_mflags}
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  29. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
  30. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
  31. %{_fixperms} $RPM_BUILD_ROOT/*
  32. %check
  33. make test
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc CHANGES LGPL README
  39. %{perl_vendorlib}/*
  40. %{_mandir}/man3/*
  41. %changelog
  42. * Thu Nov 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.084-1
  43. - updated to 0.084
  44. - applied new versioning policy
  45. * Wed Sep 26 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.083-2vl1
  46. - initial build for Vine Linux
  47. * Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.083-2
  48. - BR ExtUtils::MakeMaker.
  49. * Tue Dec 26 2006 Steven Pritchard <steve@kspei.com> 0.083-1
  50. - Update to 0.083.
  51. - Use fixperms macro instead of our own chmod incantation.
  52. * Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 0.082-2
  53. - Fix find option order.
  54. * Sat Apr 08 2006 Steven Pritchard <steve@kspei.com> 0.082-1
  55. - Specfile autogenerated by cpanspec 1.64.
  56. - Fix License.
  57. - Drop explicit dependency on perl(Test::Tester). (Seems to be bogus.)