[521] | 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 | |
---|
| 15 | %description |
---|
| 16 | In general, your tests shouldn't produce warnings. This module causes any |
---|
| 17 | warnings to be captured and stored. It automatically adds an extra test |
---|
| 18 | that will run when your script ends to check that there were no warnings. |
---|
| 19 | If there were any warings, the test will give a "not ok" and diagnostics of |
---|
| 20 | where, when and what the warning was, including a stack trace of what was |
---|
| 21 | going on when the it occurred. |
---|
| 22 | |
---|
| 23 | %prep |
---|
| 24 | %setup -q -n Test-NoWarnings-%{version} |
---|
| 25 | |
---|
| 26 | %build |
---|
| 27 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 28 | make %{?_smp_mflags} |
---|
| 29 | |
---|
| 30 | %install |
---|
| 31 | rm -rf $RPM_BUILD_ROOT |
---|
| 32 | |
---|
| 33 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
---|
| 34 | |
---|
| 35 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; |
---|
| 36 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
| 37 | |
---|
| 38 | %{_fixperms} $RPM_BUILD_ROOT/* |
---|
| 39 | |
---|
| 40 | %check |
---|
| 41 | make test |
---|
| 42 | |
---|
| 43 | %clean |
---|
| 44 | rm -rf $RPM_BUILD_ROOT |
---|
| 45 | |
---|
| 46 | %files |
---|
| 47 | %defattr(-,root,root,-) |
---|
| 48 | %doc CHANGES LGPL README |
---|
| 49 | %{perl_vendorlib}/* |
---|
| 50 | %{_mandir}/man3/* |
---|
| 51 | |
---|
| 52 | %changelog |
---|
| 53 | * Thu Nov 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.084-1 |
---|
| 54 | - updated to 0.084 |
---|
| 55 | - applied new versioning policy |
---|
| 56 | |
---|
| 57 | * Wed Sep 26 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.083-2vl1 |
---|
| 58 | - initial build for Vine Linux |
---|
| 59 | |
---|
| 60 | * Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.083-2 |
---|
| 61 | - BR ExtUtils::MakeMaker. |
---|
| 62 | |
---|
| 63 | * Tue Dec 26 2006 Steven Pritchard <steve@kspei.com> 0.083-1 |
---|
| 64 | - Update to 0.083. |
---|
| 65 | - Use fixperms macro instead of our own chmod incantation. |
---|
| 66 | |
---|
| 67 | * Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 0.082-2 |
---|
| 68 | - Fix find option order. |
---|
| 69 | |
---|
| 70 | * Sat Apr 08 2006 Steven Pritchard <steve@kspei.com> 0.082-1 |
---|
| 71 | - Specfile autogenerated by cpanspec 1.64. |
---|
| 72 | - Fix License. |
---|
| 73 | - Drop explicit dependency on perl(Test::Tester). (Seems to be bogus.) |
---|