Name: perl-Test-Warnings Version: 0.016 Release: 1%{?dist} Summary: Test for warnings and the lack of them License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-Warnings/ Source0: http://www.cpan.org/authors/id/E/ET/ETHER/Test-Warnings-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 0:5.006 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(parent) BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::More) >= 0.94 BuildRequires: perl(version) Requires: perl(parent) Requires: perl(Test::Builder) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description If you've ever tried to use Test::NoWarnings to confirm there are no warnings generated by your tests, combined with the convenience of done_testing to not have to declare a test count, you'll have discovered that these two features do not play well together, as the test count will be calculated before the warnings test is run, resulting in a TAP error. (See examples/test_nowarnings.pl in this distribution for a demonstration.) %prep %setup -q -n Test-Warnings-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes CONTRIBUTING dist.ini LICENSE META.json README README.md weaver.ini %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Tue Sep 02 2014 Dave Cross 0.016-1 - Specfile autogenerated by cpanspec 1.78.