SHA256
8
0
forked from pool/perl-SUPER

Compare commits

...

10 Commits

Author SHA256 Message Date
84d935d29e Accepting request 706891 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/706891
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-SUPER?expand=0&rev=14
2019-06-04 10:10:19 +00:00
Lars Vogdt
1479d284d4 Accepting request 706768 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/706768
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-SUPER?expand=0&rev=12
2019-06-02 11:09:07 +00:00
55c9f1e573 Accepting request 321416 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/321416
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-SUPER?expand=0&rev=13
2015-08-10 07:16:28 +00:00
Stephan Kulow
6bcdc336be Accepting request 321397 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/321397
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-SUPER?expand=0&rev=10
2015-08-08 13:39:27 +00:00
Stephan Kulow
95c07c85e9 Accepting request 177589 from devel:languages:perl
- updated to 1.20120705
    - resolved PAUSE packaging nit (Oliver Mengué, RT #77110)
    - converted to dzil (forwarded request 177577 from coolo)

OBS-URL: https://build.opensuse.org/request/show/177589
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-SUPER?expand=0&rev=11
2013-09-25 12:33:58 +00:00
Stephan Kulow
f9b8257813 Accepting request 177577 from home:coolo:update-perl
- updated to 1.20120705
    - resolved PAUSE packaging nit (Oliver Mengué, RT #77110)
    - converted to dzil

OBS-URL: https://build.opensuse.org/request/show/177577
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-SUPER?expand=0&rev=8
2013-06-04 18:31:34 +00:00
Stephan Kulow
69d55bc03f replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-SUPER?expand=0&rev=7
2011-12-06 17:47:42 +00:00
Lars Vogdt
57e012ae3a Autobuild autoformatter for 54650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-SUPER?expand=0&rev=4
2010-12-05 21:16:19 +00:00
Lars Vogdt
713d8b5bab Accepting request 54650 from devel:languages:perl
Accepted submit request 54650 from user coolo

OBS-URL: https://build.opensuse.org/request/show/54650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-SUPER?expand=0&rev=3
2010-12-05 21:16:13 +00:00
Stephan Kulow
1aada613e6 always buildrequire perl-macros if not present, move %perl_requires behind buildroot (script commit)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-SUPER?expand=0&rev=6
2010-12-03 14:50:56 +00:00
5 changed files with 95 additions and 28 deletions

View File

@@ -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
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:685d1ee76e7f0e9006942923bf7df8b11c107132992917593dcf7397d417d39a
size 14909

23
cpanspec.yml Normal file
View 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

View File

@@ -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

View File

@@ -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
# 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)
# 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
Version: 1.20190531
Release: 0
%define cpan_name SUPER
Summary: Control superclass method dispatch
Version: 1.17
Release: 1
License: GPL+ or Artistic
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/SUPER/
Source: http://www.cpan.org/modules/by-module/SUPER/SUPER-%{version}.tar.gz
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl(Module::Build)
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Module::Build)
BuildRequires: perl(Scalar::Util) >= 1.20
BuildRequires: perl(Sub::Identify) >= 0.03
%{perl_requires}
Requires: perl(Scalar::Util) >= 1.20
Requires: perl(Sub::Identify) >= 0.03
%{perl_requires}
%description
When subclassing a class, you occasionally want to dispatch control to the
superclass -- at least conditionally and temporarily. The Perl syntax for
calling your superclass is ugly and unwieldy:
Authors:
--------
Simon Cozens, simon@cpan.org (Creator)
chromatic, <chromatic at wgz dot org> (Maintainer after 1.01)
$self->SUPER::method(@_);
especially when compared to its Ruby equivalent:
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
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build
perl Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE
%changelog