commit 19201cc8cfb7c0ca854531e3087299f0fc6f6a94 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:52:49 2019 +0800 Package init diff --git a/Try-Tiny-0.30.tar.gz b/Try-Tiny-0.30.tar.gz new file mode 100644 index 0000000..d879b14 Binary files /dev/null and b/Try-Tiny-0.30.tar.gz differ diff --git a/perl-Try-Tiny.spec b/perl-Try-Tiny.spec new file mode 100644 index 0000000..3344751 --- /dev/null +++ b/perl-Try-Tiny.spec @@ -0,0 +1,46 @@ +%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/ + +Name: perl-Try-Tiny +Summary: Minimal try/catch with proper preservation of $@ +Version: 0.30 +Release: 5 +License: MIT +URL: https://metacpan.org/release/Try-Tiny +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Try-Tiny-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: coreutils findutils perl-generators perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) perl(Carp) perl(constant) perl(Exporter) >= 5.57 perl(strict) +BuildRequires: perl(Sub::Util) perl(warnings) perl(File::Spec) perl(Test::More) >= 0.96 + +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(Sub::Util) + +%description +This module provides bare bones try/catch statements that are designed to minimize common mistakes with +eval blocks, and NOTHING else. + +%prep +%autosetup -n Try-Tiny-%{version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -delete +%{_fixperms} -c $RPM_BUILD_ROOT + +%check +make test + +%files +%doc LICENCE Changes CONTRIBUTING README t/ +%{perl_vendorlib}/Try/ +%{_mandir}/man3/Try::Tiny.3* + +%changelog +* Wed Oct 23 2019 Huiming Xie - 0.30-5 +- init package +