Package init
This commit is contained in:
commit
19201cc8cf
BIN
Try-Tiny-0.30.tar.gz
Normal file
BIN
Try-Tiny-0.30.tar.gz
Normal file
Binary file not shown.
46
perl-Try-Tiny.spec
Normal file
46
perl-Try-Tiny.spec
Normal file
@ -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 <xiehuiming@huawei.com> - 0.30-5
|
||||
- init package
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user