Chris Weyl 8c74349
Name:           perl-Class-Method-Modifiers
Chris Weyl 8c74349
Summary:        Provides Moose-like method modifiers
bbfb2a2
Version:        2.03
d19f4bc
Release:        3%{?dist}
Chris Weyl 8c74349
License:        GPL+ or Artistic
Chris Weyl 8c74349
Group:          Development/Libraries
bbfb2a2
Source0:        http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Class-Method-Modifiers-%{version}.tar.gz
Chris Weyl 8c74349
URL:            http://search.cpan.org/dist/Class-Method-Modifiers
Chris Weyl 8c74349
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl 8c74349
BuildArch:      noarch
Chris Weyl 8c74349
4f766da
BuildRequires:  perl(Class::MOP)
4f766da
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.36
07bd4b6
BuildRequires:  perl(Test::Fatal)
Chris Weyl 8c74349
BuildRequires:  perl(Test::More)
Chris Weyl 8c74349
0554a15
# obsolete/provide old tests subpackage
0554a15
# can be removed during F19 development cycle
0554a15
Obsoletes:      %{name}-tests < 1.08-3
0554a15
Provides:       %{name}-tests = %{version}-%{release}
Chris Weyl 8c74349
Chris Weyl 8c74349
%{?perl_default_filter}
Chris Weyl bea50ed
Chris Weyl bea50ed
%description
Chris Weyl bea50ed
Method modifiers are a powerful feature from the CLOS (Common Lisp Object
Chris Weyl bea50ed
System) world.
Chris Weyl bea50ed
Chris Weyl bea50ed
In its most basic form, a method modifier is just a method that calls
Chris Weyl bea50ed
'$self->SUPER::foo(@_)'. I for one have trouble remembering that exact
Chris Weyl bea50ed
invocation, so my classes seldom re-dispatch to their base classes. Very
Chris Weyl bea50ed
bad!
Chris Weyl bea50ed
Chris Weyl bea50ed
'Class::Method::Modifiers' provides three modifiers: 'before', 'around',
Chris Weyl bea50ed
and 'after'. 'before' and 'after' are run just before and after the method
Chris Weyl bea50ed
they modify, but can not really affect that original method. 'around' is
Chris Weyl bea50ed
run in place of the original method, with a hook to easily call that
Chris Weyl bea50ed
original method. See the 'MODIFIERS' section for more details on how the
Chris Weyl bea50ed
particular modifiers work.
Chris Weyl bea50ed
Chris Weyl bea50ed
%prep
Chris Weyl bea50ed
%setup -q -n Class-Method-Modifiers-%{version}
Chris Weyl bea50ed
Chris Weyl bea50ed
%build
Chris Weyl bea50ed
%{__perl} Makefile.PL INSTALLDIRS=vendor
Chris Weyl bea50ed
make %{?_smp_mflags}
Chris Weyl bea50ed
Chris Weyl bea50ed
%install
Chris Weyl 8c74349
make pure_install DESTDIR=%{buildroot}
Chris Weyl bea50ed
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
Chris Weyl bea50ed
Chris Weyl bea50ed
%{_fixperms} %{buildroot}/*
Chris Weyl bea50ed
Chris Weyl bea50ed
%check
Chris Weyl bea50ed
make test
Chris Weyl bea50ed
Chris Weyl bea50ed
%files
bbfb2a2
%doc Changes LICENSE README t/
Chris Weyl bea50ed
%{perl_vendorlib}/*
Chris Weyl bea50ed
%{_mandir}/man3/*.3*
Chris Weyl bea50ed
Chris Weyl bea50ed
%changelog
d19f4bc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-3
d19f4bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d19f4bc
ccbf1b7
* Fri Aug 02 2013 Petr Pisar <ppisar@redhat.com> - 2.03-2
ccbf1b7
- Perl 5.18 rebuild
ccbf1b7
bbfb2a2
* Fri Feb 15 2013 Iain Arnell <iarnell@gmail.com> 2.03-1
bbfb2a2
- update to latest upstream version
bbfb2a2
23453c7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.00-2
23453c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
23453c7
2efb4c3
* Sat Jan 05 2013 Iain Arnell <iarnell@gmail.com> 2.00-1
2efb4c3
- update to latest upstream version
2efb4c3
3533d3d
* Sun Oct 28 2012 Iain Arnell <iarnell@gmail.com> 1.12-1
3533d3d
- update to latest upstream version
3533d3d
2d83444
* Sat Oct 27 2012 Iain Arnell <iarnell@gmail.com> 1.10-1
2d83444
- update to latest upstream version
2d83444
05c7b13
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-3
05c7b13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
05c7b13
0b92521
* Fri Jun 22 2012 Petr Pisar <ppisar@redhat.com> - 1.09-2
0b92521
- Perl 5.16 rebuild
0b92521
4f766da
* Tue Apr 03 2012 Iain Arnell <iarnell@gmail.com> 1.09-1
4f766da
- update to latest upstream version
4f766da
0554a15
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> 1.08-3
0554a15
- drop tests subpackage; move tests to main package documentation
0554a15
ac22108
* Tue Jan 17 2012 Iain Arnell <iarnell@gmail.com> - 1.08-2
ac22108
- rebuilt again for F17 mass rebuild
ac22108
e4a68df
* Fri Jan 13 2012 Iain Arnell <iarnell@gmail.com> 1.08-1
e4a68df
- update to latest upstream version
e4a68df
ae915d2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-3
ae915d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ae915d2
d06e86b
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.07-2
d06e86b
- Perl mass rebuild
d06e86b
07bd4b6
* Sun Mar 13 2011 Iain Arnell <iarnell@gmail.com> 1.07-1
07bd4b6
- update to latest upstream version
07bd4b6
- clean up spec for modern rpmbuild
07bd4b6
ca324b3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-4
ca324b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ca324b3
9b83957
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.05-3
9b83957
- 661697 rebuild for fixing problems with vendorach/lib
9b83957
721ff52
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.05-2
721ff52
- Mass rebuild with perl-5.12.0
721ff52
Chris Weyl 8c74349
* Mon Mar 01 2010 Chris Weyl <cweyl@alumni.drew.edu> 1.05-1
Chris Weyl 8c74349
- update by Fedora::App::MaintainerTools 0.004
Chris Weyl 8c74349
- PERL_INSTALL_ROOT => DESTDIR
Chris Weyl 8c74349
bb5ff18
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.04-2
bb5ff18
- rebuild against perl 5.10.1
bb5ff18
Chris Weyl 0f3c8f2
* Fri Jul 31 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.04-1
Chris Weyl 0f3c8f2
- auto-update to 1.04 (by cpan-spec-update 0.01)
Chris Weyl 0f3c8f2
dcd45ae
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-2
dcd45ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
dcd45ae
Chris Weyl 06795d3
* Mon Jun 08 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.02-1
Chris Weyl 06795d3
- auto-update to 1.02 (by cpan-spec-update 0.01)
Chris Weyl 06795d3
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
Chris Weyl 06795d3
9cfc1dc
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-4
9cfc1dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9cfc1dc
Chris Weyl 0193316
* Mon Sep 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-3
Chris Weyl 0193316
- remove MM version qualifier (F-8's is older)
Chris Weyl 0193316
Chris Weyl c5dd38b
* Mon Sep 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-2
Chris Weyl c5dd38b
- bump
Chris Weyl c5dd38b
Chris Weyl bea50ed
* Sat Sep 06 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-1
Chris Weyl bea50ed
- initial Fedora packaging
Chris Weyl bea50ed
- generated with cpan2dist (CPANPLUS::Dist::Fedora version 0.0.1)