diff --git a/Carp-1.50.tar.gz b/Carp-1.50.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..51b2cb091ce417bd544bd230b3c2d4a6c3985ade Binary files /dev/null and b/Carp-1.50.tar.gz differ diff --git a/perl-Carp.spec b/perl-Carp.spec new file mode 100644 index 0000000000000000000000000000000000000000..43807605aef7e4e9c586c62f230e3b8ee1b1318d --- /dev/null +++ b/perl-Carp.spec @@ -0,0 +1,62 @@ +%define anolis_release 1 + +Name: perl-Carp +Version: 1.50 +Release: %{anolis_release}%{?dist} +Summary: Alternative warn and die for modules +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Carp/ +Source0: https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/Carp-%{version}.tar.gz +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(warnings) +BuildRequires: perl(strict) +# Run-time: +BuildRequires: perl(Exporter) +# Tests: +BuildRequires: perl(B) +BuildRequires: perl(Config) +BuildRequires: perl(Data::Dumper) +# IPC::Open3 >= 1.0103 in reality, but the provides is 2-digit number only +BuildRequires: perl(IPC::Open3) +BuildRequires: perl(overload) +BuildRequires: perl(Test::More) >= 0.47 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +# Do not export private DB module stub +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DB\\) + +%description +The Carp routines are useful in your own modules because they act like +die() or warn(), but with a message which is more likely to be useful to a +user of your module. In the case of cluck, confess, and longmess that +context is a summary of every call in the call-stack. For a shorter message +you can use carp or croak which report the error as being from where your +module was called. There is no guarantee that that is where the error was, +but it is a good educated guess. + +%prep +%autosetup -n Carp-%{version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Mar 08 2022 Jacob Wang 1.50-1 +- Initial version from upstream 1.50