2009-08-10 17:04:13 +02:00
|
|
|
#
|
2010-10-06 12:34:35 +02:00
|
|
|
# spec file for package perl-Test-NoWarnings (Version 1.02)
|
2009-08-10 17:04:13 +02:00
|
|
|
#
|
2010-01-09 11:50:41 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-08-10 17:04:13 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Test-NoWarnings
|
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
|
|
|
Summary: Make sure you didn't emit any warnings while testing
|
2010-09-27 16:04:48 +02:00
|
|
|
Version: 1.02
|
2010-12-13 13:00:35 +01:00
|
|
|
Release: 2
|
2010-01-09 11:50:41 +01:00
|
|
|
License: Artistic
|
2009-08-10 17:04:13 +02:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/perldoc?Test::NoWarnings
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 15:52:34 +01:00
|
|
|
%{perl_requires}
|
2009-08-10 17:04:13 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Test::Tester) >= 0.103
|
|
|
|
Requires: perl(Test::Tester) >= 0.103
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
|
|
%{cpan_name} module for perl
|
|
|
|
In general, your tests shouldn't produce warnings. This modules causes any
|
|
|
|
warnings to be captured and stored. It automatically adds an extra test that
|
|
|
|
will run when your script ends to check that there were no warnings. If there
|
|
|
|
were any warings, the test will give a "not ok" and diagnostics of where, when
|
|
|
|
and what the warning was, including a stack trace of what was going on when the
|
|
|
|
it occurred.
|
|
|
|
If some of your tests are supposed to produce warnings then you should be
|
|
|
|
capturing and checking them with Test::Warn, that way Test::NoWarnings will not
|
|
|
|
see them and so not complain.
|
|
|
|
The test is run by an END block in Test::NoWarnings. It will not be run when
|
|
|
|
any forked children exit.
|
|
|
|
Author: Fergal Daly <fergal@esatclear.ie>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
2010-01-11 17:03:05 +01:00
|
|
|
%{__make} %{?_smp_mflags}
|
2009-08-10 17:04:13 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
# normally you only need to check for doc files
|
|
|
|
%defattr(-,root,root)
|
2010-09-27 16:04:48 +02:00
|
|
|
%doc Changes LICENSE README
|
2009-08-10 17:04:13 +02:00
|
|
|
|
|
|
|
%changelog
|