diff --git a/SUPER-1.20141117.tar.gz b/SUPER-1.20141117.tar.gz new file mode 100644 index 0000000..0fc7ced Binary files /dev/null and b/SUPER-1.20141117.tar.gz differ diff --git a/perl-SUPER.spec b/perl-SUPER.spec new file mode 100644 index 0000000..74ed4ce --- /dev/null +++ b/perl-SUPER.spec @@ -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 - 1.20141117-13 +- package init diff --git a/perl-SUPER.yaml b/perl-SUPER.yaml new file mode 100644 index 0000000..9692f79 --- /dev/null +++ b/perl-SUPER.yaml @@ -0,0 +1,4 @@ +version_control: metacpan +src_repo: SUPER +tag_prefix: "^" +seperator: "."