rpms/perl-Class-Method-Modifiers/devel import.log, NONE, 1.1 perl-Class-Method-Modifiers.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Chris Weyl cweyl at fedoraproject.org
Mon Sep 8 18:29:33 UTC 2008

Author: cweyl

Update of /cvs/extras/rpms/perl-Class-Method-Modifiers/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25173/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log perl-Class-Method-Modifiers.spec 
Log Message:
initial import

--- NEW FILE import.log ---

--- NEW FILE perl-Class-Method-Modifiers.spec ---

Name:       perl-Class-Method-Modifiers 
Version:    1.01 
Release:    1%{?dist}
License:    GPL+ or Artistic
Group:      Development/Libraries
Summary:    Provides Moose-like method modifiers 
Source:     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)
# testing
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)

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

'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.

%setup -q -n Class-Method-Modifiers-%{version}

find t/ -type f -exec perl -pi -e 's|^#!perl|#!/usr/bin/perl|' {} +

%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

rm -rf %{buildroot}

make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'

%{_fixperms} %{buildroot}/*

make test

rm -rf %{buildroot} 

%doc Changes t/

* Sat Sep 06 2008 Chris Weyl <cweyl at alumni.drew.edu> 1.01-1
- initial Fedora packaging
- generated with cpan2dist (CPANPLUS::Dist::Fedora version 0.0.1)

Index: .cvsignore
RCS file: /cvs/extras/rpms/perl-Class-Method-Modifiers/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	8 Sep 2008 15:26:50 -0000	1.1
+++ .cvsignore	8 Sep 2008 18:29:01 -0000	1.2
@@ -0,0 +1 @@

Index: sources
RCS file: /cvs/extras/rpms/perl-Class-Method-Modifiers/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	8 Sep 2008 15:26:50 -0000	1.1
+++ sources	8 Sep 2008 18:29:01 -0000	1.2
@@ -0,0 +1 @@
+f0398c468025d21493745619b1114a46  Class-Method-Modifiers-1.01.tar.gz

More information about the Fedora-perl-devel-list mailing list