forked from pool/perl-SUPER
Compare commits
10 Commits
2afc6cbe43
...
84d935d29e
Author | SHA256 | Date | |
---|---|---|---|
84d935d29e | |||
|
1479d284d4 | ||
55c9f1e573 | |||
|
6bcdc336be | ||
|
95c07c85e9 | ||
|
f9b8257813 | ||
|
69d55bc03f | ||
|
57e012ae3a | ||
|
713d8b5bab | ||
|
1aada613e6 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0250172e67128b80e76acb4f280481c5a2ce7bd74a1f4e96684a18c58a74c2e2
|
|
||||||
size 8096
|
|
3
SUPER-1.20190531.tar.gz
Normal file
3
SUPER-1.20190531.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:685d1ee76e7f0e9006942923bf7df8b11c107132992917593dcf7397d417d39a
|
||||||
|
size 14909
|
23
cpanspec.yml
Normal file
23
cpanspec.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
#description_paragraphs: 3
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
#patches:
|
||||||
|
# foo.patch: -p1
|
||||||
|
# bar.patch:
|
||||||
|
#preamble: |-
|
||||||
|
# BuildRequires: gcc-c++
|
||||||
|
#post_prep: |-
|
||||||
|
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||||
|
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||||
|
#post_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
#license: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
@@ -1,3 +1,33 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jun 1 05:23:16 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
- updated to 1.20190531
|
||||||
|
see /usr/share/doc/packages/perl-SUPER/Changes
|
||||||
|
|
||||||
|
1.20190531 2019-05-31 16:57:30-07:00 America/Los_Angeles
|
||||||
|
- allow main->SUPER::... to work when SUPER.pm is loaded (PR #1, Charles McGarvey)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 8 09:02:39 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.20141117
|
||||||
|
see /usr/share/doc/packages/perl-SUPER/Changes
|
||||||
|
|
||||||
|
1.20141117 2014-11-17 09:12:01-08:00 America/Los_Angeles
|
||||||
|
- improved export mechanism
|
||||||
|
- removed useless Exporter tests
|
||||||
|
- improved docs (RT #79681)
|
||||||
|
|
||||||
|
1.20141116 2014-11-16 14:07:18-08:00 America/Los_Angeles
|
||||||
|
- resolved Test::More changes (RT #97939)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 4 18:06:37 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.20120705
|
||||||
|
- resolved PAUSE packaging nit (Oliver Mengué, RT #77110)
|
||||||
|
- converted to dzil
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 30 19:20:46 UTC 2010 - coolo@novell.com
|
Tue Nov 30 19:20:46 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-SUPER (Version 1.17)
|
# spec file for package perl-SUPER
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,63 +12,77 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: perl-SUPER
|
Name: perl-SUPER
|
||||||
|
Version: 1.20190531
|
||||||
|
Release: 0
|
||||||
%define cpan_name SUPER
|
%define cpan_name SUPER
|
||||||
Summary: Control superclass method dispatch
|
Summary: Control superclass method dispatch
|
||||||
Version: 1.17
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Release: 1
|
|
||||||
License: GPL+ or Artistic
|
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/SUPER/
|
Url: https://metacpan.org/release/%{cpan_name}
|
||||||
Source: http://www.cpan.org/modules/by-module/SUPER/SUPER-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/%{cpan_name}-%{version}.tar.gz
|
||||||
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl(Module::Build)
|
|
||||||
%if 0%{?suse_version} < 1120
|
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
%endif
|
BuildRequires: perl(Module::Build)
|
||||||
BuildRequires: perl(Scalar::Util) >= 1.20
|
BuildRequires: perl(Scalar::Util) >= 1.20
|
||||||
BuildRequires: perl(Sub::Identify) >= 0.03
|
BuildRequires: perl(Sub::Identify) >= 0.03
|
||||||
%{perl_requires}
|
|
||||||
Requires: perl(Scalar::Util) >= 1.20
|
Requires: perl(Scalar::Util) >= 1.20
|
||||||
Requires: perl(Sub::Identify) >= 0.03
|
Requires: perl(Sub::Identify) >= 0.03
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
When subclassing a class, you occasionally want to dispatch control to the
|
When subclassing a class, you occasionally want to dispatch control to the
|
||||||
superclass -- at least conditionally and temporarily. The Perl syntax for
|
superclass -- at least conditionally and temporarily. The Perl syntax for
|
||||||
calling your superclass is ugly and unwieldy:
|
calling your superclass is ugly and unwieldy:
|
||||||
|
|
||||||
Authors:
|
$self->SUPER::method(@_);
|
||||||
--------
|
|
||||||
Simon Cozens, simon@cpan.org (Creator)
|
especially when compared to its Ruby equivalent:
|
||||||
chromatic, <chromatic at wgz dot org> (Maintainer after 1.01)
|
|
||||||
|
super;
|
||||||
|
|
||||||
|
It's even worse in that the normal Perl redispatch mechanism only
|
||||||
|
dispatches to the parent of the class containing the method _at compile
|
||||||
|
time_. That doesn't work very well for mixins and roles.
|
||||||
|
|
||||||
|
This module provides nicer equivalents, along with the universal method
|
||||||
|
'super' to determine a class' own superclass. This allows you to do things
|
||||||
|
such as:
|
||||||
|
|
||||||
|
goto &{$_[0]->super('my_method')};
|
||||||
|
|
||||||
|
if you don't like wasting precious stack frames.
|
||||||
|
|
||||||
|
If you are using roles or mixins or otherwise pulling in methods from other
|
||||||
|
packages that need to dispatch to their super methods, or if you want to
|
||||||
|
pass different arguments to the super method, use the 'SUPER()' method:
|
||||||
|
|
||||||
|
$self->SUPER( qw( other arguments here ) );
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Build.PL installdirs=vendor
|
perl Build.PL installdirs=vendor
|
||||||
./Build
|
./Build build flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
./Build install destdir=%{buildroot} create_packlist=0
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user