%define module Test-NoWarnings %define version 0.082 %define release %mkrel 2 Summary: Make sure you didn't emit any warnings while testing Name: perl-%{module} Version: %{version} Release: %{release} License: LGPL Group: Development/Perl Source0: %{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module}/ BuildRoot: %{_tmppath}/%{name}-buildroot/ Requires: perl BuildRequires: perl-Test-Tester BuildArch: noarch %description In general, your tests shouldn't produce warnings. This modules causes any warnings to be captured and stored. It automatically adds an extra test that will run when your script ends to check that there were no warnings. If there were any warings, the test will give a "not ok" and diagnostics of where, when and what the warning was, including a stack trace of what was going on when the it occurred. %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %check %{__make} test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGES README %{_mandir}/*/* %{perl_vendorlib}/Test/NoWarnings %{perl_vendorlib}/Test/NoWarnings.pm %changelog * Mon Mar 06 2006 Buchan Milne <bgmilne@mandriva.org> 0.082-2mdk - Rebuild - use mkrel * Tue Oct 11 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.082-1mdk - Initial MDV release