Accepting request 83481 from devel:languages:perl
- updated to 1.03 - Test::Builder and Test::Tester dependencies were the wrong way around, corrected (ADAMK) OBS-URL: https://build.opensuse.org/request/show/83481 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-NoWarnings?expand=0&rev=14
This commit is contained in:
commit
0c8453a636
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:900cb2c47c1b68b60ab8a0e5b2c5d52294c4951b5fa70b721a87311d85977d1c
|
|
||||||
size 15264
|
|
3
Test-NoWarnings-1.03.tar.gz
Normal file
3
Test-NoWarnings-1.03.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f808ae0ba90bbb83ef0de0fccdaa7c82dc95f161b2ee333098e9f40b8d06f4a9
|
||||||
|
size 18007
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 19 09:22:10 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.03
|
||||||
|
- Test::Builder and Test::Tester dependencies were the wrong way
|
||||||
|
around, corrected (ADAMK)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 15 09:10:02 UTC 2011 - cfarrell@novell.com
|
Tue Mar 15 09:10:02 UTC 2011 - cfarrell@novell.com
|
||||||
|
|
||||||
|
@ -15,46 +15,48 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Test-NoWarnings
|
Name: perl-Test-NoWarnings
|
||||||
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
Version: 1.03
|
||||||
Summary: Make sure you didn't emit any warnings while testing
|
Release: 1
|
||||||
Version: 1.02
|
|
||||||
Release: 7
|
|
||||||
License: LGPLv2.1+
|
License: LGPLv2.1+
|
||||||
|
%define cpan_name Test-NoWarnings
|
||||||
|
Summary: Make sure you didn't emit any warnings while testing
|
||||||
|
Url: http://search.cpan.org/dist/Test-NoWarnings/
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/perldoc?Test::NoWarnings
|
Source: http://www.cpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz
|
||||||
Source: %{cpan_name}-%{version}.tar.bz2
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Test::Tester) >= 0.103
|
BuildRequires: perl(Test::Builder) >= 0.86
|
||||||
Requires: perl(Test::Tester) >= 0.103
|
BuildRequires: perl(Test::Tester) >= 0.107
|
||||||
|
#BuildRequires: perl(Test::NoWarnings)
|
||||||
|
#BuildRequires: perl(Test::NoWarnings::Warning)
|
||||||
|
Requires: perl(Test::Builder) >= 0.86
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
%{cpan_name} module for perl
|
|
||||||
In general, your tests shouldn't produce warnings. This modules causes any
|
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
|
warnings to be captured and stored. It automatically adds an extra test
|
||||||
will run when your script ends to check that there were no warnings. If there
|
that will run when your script ends to check that there were no warnings.
|
||||||
were any warings, the test will give a "not ok" and diagnostics of where, when
|
If there were any warings, the test will give a "not ok" and diagnostics of
|
||||||
and what the warning was, including a stack trace of what was going on when the
|
where, when and what the warning was, including a stack trace of what was
|
||||||
it occurred.
|
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
|
If some of your tests *are supposed to* produce warnings then you should be
|
||||||
see them and so not complain.
|
capturing and checking them with the Test::Warn manpage, that way the
|
||||||
The test is run by an END block in Test::NoWarnings. It will not be run when
|
Test::NoWarnings manpage will not see them and so not complain.
|
||||||
any forked children exit.
|
|
||||||
Author: Fergal Daly <fergal@esatclear.ie>
|
The test is run by an END block in Test::NoWarnings. It will not be run
|
||||||
|
when any forked children exit.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -65,12 +67,8 @@ CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
|||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
# normally you only need to check for doc files
|
%defattr(-,root,root,755)
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc Changes LICENSE README
|
%doc Changes LICENSE README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user