2010-03-01 08:14:05 +00:00
|
|
|
Name: perl-Class-Method-Modifiers
|
|
|
|
Summary: Provides Moose-like method modifiers
|
|
|
|
Version: 1.05
|
|
|
|
Release: 1%{?dist}
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/Class-Method-Modifiers-%{version}.tar.gz
|
|
|
|
URL: http://search.cpan.org/dist/Class-Method-Modifiers
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
|
|
BuildRequires: perl(MRO::Compat)
|
|
|
|
BuildRequires: perl(Test::Exception)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%{?perl_default_subpackage_tests}
|
2008-09-08 18:29:01 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Method modifiers are a powerful feature from the CLOS (Common Lisp Object
|
|
|
|
System) world.
|
|
|
|
|
|
|
|
In its most basic form, a method modifier is just a method that calls
|
|
|
|
'$self->SUPER::foo(@_)'. I for one have trouble remembering that exact
|
|
|
|
invocation, so my classes seldom re-dispatch to their base classes. Very
|
|
|
|
bad!
|
|
|
|
|
|
|
|
'Class::Method::Modifiers' provides three modifiers: 'before', 'around',
|
|
|
|
and 'after'. 'before' and 'after' are run just before and after the method
|
|
|
|
they modify, but can not really affect that original method. 'around' is
|
|
|
|
run in place of the original method, with a hook to easily call that
|
|
|
|
original method. See the 'MODIFIERS' section for more details on how the
|
|
|
|
particular modifiers work.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Class-Method-Modifiers-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2010-03-01 08:14:05 +00:00
|
|
|
make pure_install DESTDIR=%{buildroot}
|
2008-09-08 18:29:01 +00:00
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%clean
|
2009-06-08 05:52:44 +00:00
|
|
|
rm -rf %{buildroot}
|
2008-09-08 18:29:01 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2010-03-01 08:14:05 +00:00
|
|
|
%doc Changes
|
2008-09-08 18:29:01 +00:00
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
%changelog
|
2010-03-01 08:14:05 +00:00
|
|
|
* Mon Mar 01 2010 Chris Weyl <cweyl@alumni.drew.edu> 1.05-1
|
|
|
|
- update by Fedora::App::MaintainerTools 0.004
|
|
|
|
- PERL_INSTALL_ROOT => DESTDIR
|
|
|
|
|
2009-12-04 02:01:49 +00:00
|
|
|
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.04-2
|
|
|
|
- rebuild against perl 5.10.1
|
|
|
|
|
2009-07-31 07:19:17 +00:00
|
|
|
* Fri Jul 31 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.04-1
|
|
|
|
- auto-update to 1.04 (by cpan-spec-update 0.01)
|
|
|
|
|
2009-07-26 04:30:33 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-08 05:52:44 +00:00
|
|
|
* Mon Jun 08 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.02-1
|
|
|
|
- auto-update to 1.02 (by cpan-spec-update 0.01)
|
|
|
|
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
|
|
|
|
|
2009-02-26 13:08:09 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-09-08 21:14:36 +00:00
|
|
|
* Mon Sep 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-3
|
|
|
|
- remove MM version qualifier (F-8's is older)
|
|
|
|
|
2008-09-08 18:34:51 +00:00
|
|
|
* Mon Sep 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-2
|
|
|
|
- bump
|
|
|
|
|
2008-09-08 18:29:01 +00:00
|
|
|
* Sat Sep 06 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-1
|
|
|
|
- initial Fedora packaging
|
|
|
|
- generated with cpan2dist (CPANPLUS::Dist::Fedora version 0.0.1)
|