perl-Carp-Clan: Package init
This commit is contained in:
commit
39811e69bf
BIN
Carp-Clan-6.06.tar.gz
Normal file
BIN
Carp-Clan-6.06.tar.gz
Normal file
Binary file not shown.
55
perl-Carp-Clan.spec
Normal file
55
perl-Carp-Clan.spec
Normal file
@ -0,0 +1,55 @@
|
||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DB\\)
|
||||
%define perl_version %(eval "`perl -V:version`"; echo $version)
|
||||
|
||||
Name: perl-Carp-Clan
|
||||
Version: 6.06
|
||||
Release: 11
|
||||
Summary: Report errors from perspective of caller of a "clan" of modules
|
||||
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Carp-Clan
|
||||
Source0: https://cpan.metacpan.org/authors/id/K/KE/KENTNL/Carp-Clan-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: coreutils make perl-interpreter perl-generators perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(strict) perl(overload) perl(vars) perl(Test::Exception) perl(Test::More)
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%{perl_version})
|
||||
|
||||
%description
|
||||
This module is based on "'Carp.pm'" from Perl 5.005_03. It has been modified to skip all package
|
||||
names matching the pattern given in the "use" statement inside the "'qw()'" term (or argument list).
|
||||
|
||||
%package help
|
||||
Summary: Help document for the perl-Carp-Clan package
|
||||
|
||||
%description help
|
||||
Help document for the perl-Carp-Clan package.
|
||||
|
||||
%prep
|
||||
%autosetup -n Carp-Clan-%{version} -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc README Changes
|
||||
%license license/{Artistic.txt,GNU_GPL.txt}
|
||||
%{perl_vendorlib}/Carp/
|
||||
|
||||
%files help
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
%changelog
|
||||
* Sat Nov 23 2019 zhangchunyu <zhangchunyu11@huawei.com> - 6.06-11
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user