package init
This commit is contained in:
parent
64bed72cca
commit
6844373b49
BIN
SUPER-1.20141117.tar.gz
Normal file
BIN
SUPER-1.20141117.tar.gz
Normal file
Binary file not shown.
50
perl-SUPER.spec
Normal file
50
perl-SUPER.spec
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
Name: perl-SUPER
|
||||||
|
Version: 1.20141117
|
||||||
|
Release: 13
|
||||||
|
Summary: Sane superclass method dispatcher
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
URL: https://metacpan.org/release/SUPER
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/SUPER-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: coreutils findutils make perl-interpreter perl-generators
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker) perl(Carp) perl(Scalar::Util) >= 1.20 perl(strict)
|
||||||
|
BuildRequires: perl(Sub::Identify) >= 0.03 perl(warnings) perl(base) perl(lib)
|
||||||
|
BuildRequires: perl(Test::More) >= 0.88 perl(strict)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
Requires: perl(Scalar::Util) >= 1.20 perl(Sub::Identify) >= 0.03
|
||||||
|
|
||||||
|
%description
|
||||||
|
When subclassing a class, you occasionally want to dispatch control to the
|
||||||
|
superclass - at least conditionally and temporarily. This module provides
|
||||||
|
an easier, cleaner way for class methods to access their ancestor's
|
||||||
|
implementation.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n SUPER-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
make pure_install DESTDIR=%{buildroot}
|
||||||
|
find %{buildroot} -type f -name .packlist -delete
|
||||||
|
%{_fixperms} %{buildroot}
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%if 0%{?_licensedir:1}
|
||||||
|
%license LICENSE
|
||||||
|
%else
|
||||||
|
%doc LICENSE
|
||||||
|
%endif
|
||||||
|
%doc Changes README
|
||||||
|
%{perl_vendorlib}/SUPER.pm
|
||||||
|
%{_mandir}/man3/SUPER.3*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jul 2 2020 huanghaitao <huanghaitao8@huawei.com> - 1.20141117-13
|
||||||
|
- package init
|
||||||
Loading…
x
Reference in New Issue
Block a user