0c7d34
# Enable dumping a stack trace
0c7d34
%if 0%{?rhel}
0c7d34
%bcond_with perl_Test_NoWarnings_enables_stack_trace
0c7d34
%else
0c7d34
%bcond_without perl_Test_NoWarnings_enables_stack_trace
0c7d34
%endif
0c7d34
0c7d34
Name:           perl-Test-NoWarnings
0c7d34
Version:        1.04
0c7d34
Release:        27%{?dist}
0c7d34
Summary:        Make sure you didn't emit any warnings while testing
0c7d34
License:        LGPLv2+
0c7d34
URL:            https://metacpan.org/release/Test-NoWarnings
0c7d34
Source0:        https://cpan.metacpan.org/authors/id/A/AD/ADAMK/Test-NoWarnings-%{version}.tar.gz
0c7d34
BuildArch:      noarch
0c7d34
BuildRequires:  coreutils
0c7d34
BuildRequires:  make
0c7d34
BuildRequires:  perl-generators
0c7d34
BuildRequires:  perl-interpreter
0c7d34
BuildRequires:  perl(:VERSION) >= 5.6
0c7d34
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
0c7d34
BuildRequires:  perl(strict)
0c7d34
# Run-time:
0c7d34
BuildRequires:  perl(Carp)
0c7d34
BuildRequires:  perl(Exporter)
0c7d34
BuildRequires:  perl(Test::Builder) >= 0.86
0c7d34
BuildRequires:  perl(warnings)
0c7d34
BuildRequires:  perl(vars)
0c7d34
%if %{with perl_Test_NoWarnings_enables_stack_trace}
0c7d34
# Optional run-time:
0c7d34
BuildRequires:  perl(Devel::StackTrace)
0c7d34
%endif
0c7d34
# Tests:
0c7d34
BuildRequires:  perl(Test::More) >= 0.47
0c7d34
BuildRequires:  perl(Test::Tester) >= 0.107
0c7d34
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
0c7d34
%if %{with perl_Test_NoWarnings_enables_stack_trace}
0c7d34
Suggests:       perl(Devel::StackTrace)
0c7d34
%endif
0c7d34
0c7d34
%description
0c7d34
In general, your tests shouldn't produce warnings. This module causes any
0c7d34
warnings to be captured and stored. It automatically adds an extra test
0c7d34
that will run when your script ends to check that there were no warnings.
0c7d34
If there were any warnings, the test will give a "not ok" and diagnostics of
0c7d34
where, when and what the warning was, including a stack trace of what was
0c7d34
going on when the it occurred.
0c7d34
0c7d34
%prep
0c7d34
%setup -q -n Test-NoWarnings-%{version}
0c7d34
0c7d34
%build
0c7d34
perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1 INSTALLDIRS=vendor
0c7d34
%{make_build}
0c7d34
0c7d34
%install
0c7d34
%{make_install}
0c7d34
%{_fixperms} $RPM_BUILD_ROOT/*
0c7d34
0c7d34
%check
0c7d34
make test
0c7d34
0c7d34
%files
0c7d34
%license LICENSE
0c7d34
%doc Changes README
0c7d34
%{perl_vendorlib}/*
0c7d34
%{_mandir}/man3/*
0c7d34
0c7d34
%changelog
0c7d34
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.04-27
0c7d34
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
0c7d34
  Related: rhbz#1991688
0c7d34
0c7d34
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.04-26
0c7d34
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
0c7d34
0c7d34
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-25
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0c7d34
0c7d34
* Wed Jul 29 2020 Petr Pisar <ppisar@redhat.com> - 1.04-24
0c7d34
- Modernize a spec file
0c7d34
0c7d34
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-23
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0c7d34
0c7d34
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-22
0c7d34
- Perl 5.32 rebuild
0c7d34
0c7d34
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-21
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0c7d34
0c7d34
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-20
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0c7d34
0c7d34
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-19
0c7d34
- Perl 5.30 rebuild
0c7d34
0c7d34
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-18
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0c7d34
0c7d34
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-17
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0c7d34
0c7d34
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-16
0c7d34
- Perl 5.28 rebuild
0c7d34
0c7d34
* Wed Apr 04 2018 Petr Pisar <ppisar@redhat.com> - 1.04-15
0c7d34
- Modernize spec file
0c7d34
0c7d34
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-14
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0c7d34
0c7d34
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-13
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0c7d34
0c7d34
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-12
0c7d34
- Perl 5.26 rebuild
0c7d34
0c7d34
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-11
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0c7d34
0c7d34
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-10
0c7d34
- Perl 5.24 rebuild
0c7d34
0c7d34
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-9
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0c7d34
0c7d34
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-8
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0c7d34
0c7d34
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-7
0c7d34
- Perl 5.22 rebuild
0c7d34
0c7d34
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-6
0c7d34
- Perl 5.20 rebuild
0c7d34
0c7d34
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-5
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0c7d34
0c7d34
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-4
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0c7d34
0c7d34
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.04-3
0c7d34
- Perl 5.18 rebuild
0c7d34
0c7d34
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-2
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0c7d34
0c7d34
* Sat Jan 05 2013 Iain Arnell <iarnell@gmail.com> 1.04-1
0c7d34
- update to latest upstream version
0c7d34
- clean up spec for modern rpmbuild
0c7d34
0c7d34
* Thu Nov 08 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1.02-7
0c7d34
- Update dependencies
0c7d34
0c7d34
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-6
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0c7d34
0c7d34
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.02-5
0c7d34
- Perl 5.16 rebuild
0c7d34
0c7d34
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-4
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0c7d34
0c7d34
* Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.02-3
0c7d34
- Perl mass rebuild
0c7d34
0c7d34
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-2
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0c7d34
0c7d34
* Wed Dec 08 2010 Steven Pritchard <steve@kspei.com> 1.02-1
0c7d34
- Update to 1.02.
0c7d34
- Update Source0 URL.
0c7d34
- BR Test::Builder and Test::More, plus update versioned Test::Tester BR.
0c7d34
- CHANGES renamed to Changes, and LGPL renamed to LICENSE.
0c7d34
0c7d34
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.084-7
0c7d34
- Mass rebuild with perl-5.12.0
0c7d34
0c7d34
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 0.084-6
0c7d34
- rebuild against perl 5.10.1
0c7d34
0c7d34
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.084-5
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0c7d34
0c7d34
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.084-4
0c7d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0c7d34
0c7d34
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.084-3
0c7d34
- Rebuild for perl 5.10 (again)
0c7d34
0c7d34
* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.084-2
0c7d34
- rebuild for new perl
0c7d34
0c7d34
* Sat Jan 12 2008 Steven Pritchard <steve@kspei.com> 0.084-1
0c7d34
- Update to 0.084.
0c7d34
- Update License.
0c7d34
- BR Devel::StackTrace.
0c7d34
0c7d34
* Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.083-2
0c7d34
- BR ExtUtils::MakeMaker.
0c7d34
0c7d34
* Tue Dec 26 2006 Steven Pritchard <steve@kspei.com> 0.083-1
0c7d34
- Update to 0.083.
0c7d34
- Use fixperms macro instead of our own chmod incantation.
0c7d34
0c7d34
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 0.082-2
0c7d34
- Fix find option order.
0c7d34
0c7d34
* Sat Apr 08 2006 Steven Pritchard <steve@kspei.com> 0.082-1
0c7d34
- Specfile autogenerated by cpanspec 1.64.
0c7d34
- Fix License.
0c7d34
- Drop explicit dependency on perl(Test::Tester).  (Seems to be bogus.)