3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
7 Summary: SUPER - control superclass method dispatch
8 Summary(pl.UTF-8): SUPER - przekazywanie sterowania do metod klasy nadrzędnej
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/SUPER/%{pdir}-%{version}.tar.gz
15 # Source0-md5: aa54aa7e9148c368091e34559587f3b2
16 URL: http://search.cpan.org/dist/SUPER/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 %if %{with autodeps} || %{with tests}
20 BuildRequires: perl-Sub-Identify
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 When subclassing a class, you occasionally want to dispatch control to
27 the superclass -- at least conditionally and temporarily. The Perl
28 syntax for calling your superclass is ugly and unwieldy:
30 $self->SUPER::method(@_);
32 especially when compared to its Ruby equivalent:
36 It's even worse in that the normal Perl redispatch mechanism only
37 dispatches to the parent of the class containing the method at compile
38 time. That doesn't work very well for mixins and roles.
40 # %description -l pl.UTF-8
44 %setup -q -n %{pdir}-%{version}
48 destdir=$RPM_BUILD_ROOT \
52 %{?with_tests:./Build test}
55 rm -rf $RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}//*.pm