source: spec/trunk/SPECS/perl-Class-Method-Modifiers.spec@ 1566

Last change on this file since 1566 was 1367, checked in by tellie, 8 years ago

spec: perl-Class-Method-Modifiers: Release version 2.12-1.

File size: 2.7 KB
Line 
1# Run optional tests
2#%{bcond_without perl_Class_Method_Modifiers_enables_optional_test}
3
4Name: perl-Class-Method-Modifiers
5Summary: Provides Moose-like method modifiers
6Version: 2.12
7Release: 1%{?dist}
8License: GPL+ or Artistic
9Vendor: bww bitwise works GmbH
10URL: http://search.cpan.org/dist/Class-Method-Modifiers
11Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Class-Method-Modifiers-%{version}.tar.gz
12BuildArch: noarch
13# Module Build
14BuildRequires: coreutils
15BuildRequires: findutils
16BuildRequires: make
17#BuildRequires: perl-interpreter
18BuildRequires: perl-generators
19BuildRequires: perl(ExtUtils::MakeMaker)
20BuildRequires: perl(strict)
21BuildRequires: perl(warnings)
22# Module Runtime
23BuildRequires: perl(B)
24BuildRequires: perl(base)
25BuildRequires: perl(Carp)
26BuildRequires: perl(Exporter)
27# Test Suite
28#BuildRequires: perl(File::Spec)
29#BuildRequires: perl(if)
30#BuildRequires: perl(Test::Fatal)
31#BuildRequires: perl(Test::More) >= 0.88
32#BuildRequires: perl(Test::Requires)
33# Optional Test Requirements
34#%if 0%{!?perl_bootstrap:1} && %{with perl_Class_Method_Modifiers_enables_optional_test}
35#BuildRequires: perl(CPAN::Meta) >= 2.120900
36#BuildRequires: perl(Moose)
37#%endif
38# Runtime
39Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
40Requires: perl(B)
41Requires: perl(Carp)
42Requires: perl(Exporter)
43
44# Avoid doc-file dependencies
45%{?perl_default_filter}
46
47%description
48Method modifiers are a powerful feature from the CLOS (Common Lisp Object
49System) world.
50
51In its most basic form, a method modifier is just a method that calls
52'$self->SUPER::foo(@_)'. I for one have trouble remembering that exact
53invocation, so my classes seldom re-dispatch to their base classes. Very
54bad!
55
56'Class::Method::Modifiers' provides three modifiers: 'before', 'around',
57and 'after'. 'before' and 'after' are run just before and after the method
58they modify, but can not really affect that original method. 'around' is
59run in place of the original method, with a hook to easily call that
60original method. See the 'MODIFIERS' section for more details on how the
61particular modifiers work.
62
63%prep
64%setup -q -n Class-Method-Modifiers-%{version}
65
66# Drop unnecessary exec permissions from test files
67chmod -c -x t/*.t
68
69%build
70perl Makefile.PL INSTALLDIRS=vendor
71make %{?_smp_mflags}
72make manifypods
73
74%install
75make pure_install DESTDIR=%{buildroot}
76find %{buildroot} -type f -name .packlist -delete
77%{_fixperms} %{buildroot}
78
79%check
80#make test
81
82%files
83%license LICENSE
84%doc Changes CONTRIBUTING README t/
85%{perl_vendorlib}/Class/
86%{_mandir}/man3/*.3*
87
88%changelog
89* Thu Mar 13 2018 Elbert Pol <elbert.pol@gmail.com> - 2.000006-1
90- initial rpm for OS2
91
Note: See TracBrowser for help on using the repository browser.