Package init
This commit is contained in:
commit
ead055c3ed
BIN
Carp-1.50.tar.gz
Normal file
BIN
Carp-1.50.tar.gz
Normal file
Binary file not shown.
54
perl-Carp.spec
Normal file
54
perl-Carp.spec
Normal file
@ -0,0 +1,54 @@
|
||||
Name: perl-Carp
|
||||
Version: 1.50
|
||||
Release: 418
|
||||
Summary: Alternative warn and die for modules
|
||||
License: GPL or Artistic
|
||||
URL: https://metacpan.org/release/Carp
|
||||
Source0: https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/Carp-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
#prereq
|
||||
BuildRequires: gcc perl(ExtUtils::MakeMaker) perl-interpreter perl-generators
|
||||
#for test
|
||||
BuildRequires: perl(Test::More) >= 0.47
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
|
||||
|
||||
%global __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.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n Carp-%{version} -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test TEST_VERBOSE=1
|
||||
|
||||
%files
|
||||
%doc README
|
||||
%{perl_vendorlib}/*
|
||||
|
||||
%files help
|
||||
%doc Changes
|
||||
%{_mandir}/man3/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.50-418
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user