%global pkg_name Test-Warnings %global pkg_version 0.026 %global rpm_pkg_version 0.026 %global rpm_pkg_release 1.n0i.1 Summary: Test for warnings and the lack of them Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/modules/by-module/Test/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) BuildRequires: perl(Test::More) >= 0.94 %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. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_perl_path examples/} %build %{perl_build} %install %{__rm} -rf %{buildroot} %{perl_install} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{perl_files} %doc Changes CONTRIBUTING examples/ LICENCE README %changelog * Thu May 03 2018 Marius Feraru - 0.026-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.11 - version 0.026