commit 2d39bfda5a6d99c27ad558ade217d7aa03618b87 Author: compile_success <980965867@qq.com> Date: Sat Nov 30 10:39:53 2019 +0800 add package init diff --git a/Test-FailWarnings-0.008.tar.gz b/Test-FailWarnings-0.008.tar.gz new file mode 100644 index 0000000..4458b8c Binary files /dev/null and b/Test-FailWarnings-0.008.tar.gz differ diff --git a/perl-Test-FailWarnings.spec b/perl-Test-FailWarnings.spec new file mode 100644 index 0000000..b844c68 --- /dev/null +++ b/perl-Test-FailWarnings.spec @@ -0,0 +1,51 @@ +Name: perl-Test-FailWarnings +Version: 0.008 +Release: 15 +Summary: Add test failures if warnings are caught +License: ASL 2.0 +URL: https://metacpan.org/release/Test-FailWarnings +Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Test-FailWarnings-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) >= 6.17 perl(strict) +BuildRequires: perl(warnings) perl(Carp) perl(Cwd) perl(File::Spec) perl(Test::More) >= 0.86 +BuildRequires: perl(Capture::Tiny) >= 0.12 perl(constant) perl(File::Spec::Functions) perl(File::Temp) +BuildRequires: perl(IO::Handle) perl(IPC::Open3) perl(lib) perl(List::Util) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%{?perl_default_filter} + +%description +This module hooks $SIG{__WARN__} and converts warnings to Test::More's +fail() calls.Just as with Test::NoWarnings, this does not catch warnings +if otherthings localize $SIG{__WARN__}, as this is designed to catch *unhandled* warnings. + +%package help +Summary: Documention files for perl-Test-FailWarnings +%description help +Documention files for perl-Test-FailWarnings + +%prep +%autosetup -n Test-FailWarnings-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +%make_build + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc LICENSE +%{perl_vendorlib}/* +%exclude %{_libdir}/perl5/vendor_perl/auto/Test/FailWarnings/.packlist + +%files help +%doc Changes CONTRIBUTING README +%{_mandir}/man3/* + +%changelog +* Thu Nov 28 2019 zhujunhao - 0.008-15 +- Package init