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