diff --git a/Test-Fatal-0.014.tar.gz b/Test-Fatal-0.014.tar.gz new file mode 100644 index 0000000..9b94591 Binary files /dev/null and b/Test-Fatal-0.014.tar.gz differ diff --git a/perl-Test-Fatal.spec b/perl-Test-Fatal.spec new file mode 100644 index 0000000..ccb8203 --- /dev/null +++ b/perl-Test-Fatal.spec @@ -0,0 +1,55 @@ +Name: perl-Test-Fatal +Version: 0.014 +Release: 12 +Summary: Incredibly simple helpers for testing code with exceptions +License: GPL+ or Artistic +URL: https://metacpan.org/release/Test-Fatal +Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Test-Fatal-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: perl-interpreter, perl-generators, perl(ExtUtils::MakeMaker) +BuildRequires: perl(Carp), perl(Exporter) >= 5.57, perl(strict), perl(Test::Builder) +BuildRequires: perl(Try::Tiny) >= 0.07, perl(warnings), perl(File::Spec), perl(overload) +BuildRequires: perl(Test::Builder::Tester), perl(Test::More) >= 0.96 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)), perl(Test::Builder) + +%description +Test::Fatal is an alternative to the popular Test::Exception. +It does much less, but should allow greater flexibility in +testing exception-throwing code with about the same amount +of typing. +It exports one routine by default: exception. + +%package help +Summary: man files for %{name} +Requires: man + +%description help +This package includes man files for %{name}. + +%prep +%autosetup -n Test-Fatal-%{version} -p1 +chmod -c -x examples/* + +%build +perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT NO_PACKLIST=1 +%{_fixperms} $RPM_BUILD_ROOT + +%check +make test + +%files +%license LICENSE +%doc README examples/ +%{perl_vendorlib}/Test/ + +%files help +%{_mandir}/man*/* + +%changelog +* Sat Jan 11 2020 openEuler Buildteam - 0.014-12 +- Package init