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