Init package
This commit is contained in:
parent
dd9e47e22d
commit
132a4e4d44
BIN
Test2-Plugin-NoWarnings-0.09.tar.gz
Normal file
BIN
Test2-Plugin-NoWarnings-0.09.tar.gz
Normal file
Binary file not shown.
67
perl-Test2-Plugin-NoWarnings.spec
Normal file
67
perl-Test2-Plugin-NoWarnings.spec
Normal file
@ -0,0 +1,67 @@
|
||||
Name: perl-Test2-Plugin-NoWarnings
|
||||
Version: 0.09
|
||||
Release: 1
|
||||
Summary: Fail if tests warn
|
||||
License: Artistic 2.0
|
||||
URL: https://metacpan.org/release/Test2-Plugin-NoWarnings
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Test2-Plugin-NoWarnings-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) > 6.75
|
||||
# Module Runtime
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(parent)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(Test2) >= 1.302167
|
||||
BuildRequires: perl(Test2::API)
|
||||
BuildRequires: perl(Test2::Event)
|
||||
BuildRequires: perl(Test2::Util::HashBase)
|
||||
BuildRequires: perl(warnings)
|
||||
# Test Suite
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(IPC::Run3)
|
||||
BuildRequires: perl(Test2::Require::Module)
|
||||
BuildRequires: perl(Test2::V0)
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
# Optional Tests
|
||||
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
||||
BuildRequires: perl(CPAN::Meta::Prereqs)
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
Loading this plugin causes your tests to fail if there are any warnings while
|
||||
they run. Each warning generates a new failing test and the warning content is
|
||||
outputted via diag.
|
||||
|
||||
This module uses $SIG{__WARN__}, so if the code you're testing sets this, then
|
||||
this module will stop working.
|
||||
|
||||
%prep
|
||||
%setup -q -n Test2-Plugin-NoWarnings-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
%{make_install}
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc Changes CODE_OF_CONDUCT.md README.md
|
||||
%{perl_vendorlib}/Test2/
|
||||
%{_mandir}/man3/Test2::Event::Warning.3*
|
||||
%{_mandir}/man3/Test2::Plugin::NoWarnings.3*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 0.09-1
|
||||
- Init package (Thanks to fedora team)
|
||||
Loading…
x
Reference in New Issue
Block a user