From cce7ebdceb84bf35beeb4a17bd996965553dead2 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Tue, 19 Jul 2022 15:23:08 +0900 Subject: [PATCH] Bump to perl-Error 0.17029 Change-Id: I57ff51b1e05dce466380cde9bbd55745f38636ea --- packaging/perl-Error.manifest | 5 +++++ packaging/perl-Error.spec | 49 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 packaging/perl-Error.manifest create mode 100644 packaging/perl-Error.spec diff --git a/packaging/perl-Error.manifest b/packaging/perl-Error.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/perl-Error.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/perl-Error.spec b/packaging/perl-Error.spec new file mode 100644 index 0000000..e21398b --- /dev/null +++ b/packaging/perl-Error.spec @@ -0,0 +1,49 @@ +Name: perl-Error +Version: 0.17029 +Release: 0 +License: GPL-1.0 or Artistic-1.0 +Summary: Error/exception handling in an OO-ish way +Url: http://search.cpan.org/dist/Error/ +Group: Development/Libraries/Perl +Source: %{name}-%{version}.tar.gz +Source1001: perl-Error.manifest + +BuildRequires: perl +BuildRequires: perl(Module::Build) +BuildRequires: perl-macros +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(warnings) + +BuildArch: noarch + +Requires: perl(Scalar::Util) +Requires: perl(warnings) + +%description +The 'Error' package provides two interfaces. Firstly 'Error' provides a +procedural interface to exception handling. Secondly 'Error' is a base +class for errors/exceptions that can either be thrown, for subsequent +catch, or can simply be recorded. + +Errors in the class 'Error' should not be thrown directly, but the user +should throw errors from a sub-class of 'Error'. + +%prep +%setup -q -n %{name}-%{version} +cp %{SOURCE1001} . + +%build +perl Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} + +%check +./Build test + +%install +./Build install destdir=%{buildroot} create_packlist=0 +%remove_docs +%perl_gen_filelist + +%files -f %{name}.files +%manifest %{name}.manifest +%license LICENSE -- 2.7.4