Hello community, here is the log from the commit of package perl-Class-Method-Modifiers for openSUSE:Factory checked in at 2011-10-27 19:22:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Class-Method-Modifiers (Old) and /work/SRC/openSUSE:Factory/.perl-Class-Method-Modifiers.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Class-Method-Modifiers", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Class-Method-Modifiers/perl-Class-Method-Modifiers.changes 2011-09-23 12:36:21.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Class-Method-Modifiers.new/perl-Class-Method-Modifiers.changes 2011-10-27 19:24:21.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Oct 26 19:55:53 UTC 2011 - tabra...@novell.com + +- updated to 1.08 Sun Oct 16 2011 + - document install_modifier (requested by Tokuhiro Matsuno) + +------------------------------------------------------------------- Old: ---- Class-Method-Modifiers-1.07.tar.bz2 New: ---- Class-Method-Modifiers-1.08.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Class-Method-Modifiers.spec ++++++ --- /var/tmp/diff_new_pack.vSiH0X/_old 2011-10-27 19:24:23.000000000 +0200 +++ /var/tmp/diff_new_pack.vSiH0X/_new 2011-10-27 19:24:23.000000000 +0200 @@ -15,32 +15,88 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: perl-Class-Method-Modifiers -%define cpan_name Class-Method-Modifiers -Summary: Provides Moose-like method modifiers -Version: 1.07 +Version: 1.08 Release: 1 License: GPL+ or Artistic -Group: Development/Libraries/Perl +%define cpan_name Class-Method-Modifiers +Summary: provides Moose-like method modifiers Url: http://search.cpan.org/dist/Class-Method-Modifiers/ -#Source: http://www.cpan.org/authors/id/S/SA/SARTAK/Class-Method-Modifiers-%{version}.tar.gz -Source: %{cpan_name}-%{version}.tar.bz2 +Group: Development/Libraries/Perl +Source: http://www.cpan.org/authors/id/S/SA/SARTAK/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(Test::Fatal) +#BuildRequires: perl(Carp) +#BuildRequires: perl(Class::Method::Modifiers) +#BuildRequires: perl(Config) +#BuildRequires: perl(Cwd) +#BuildRequires: perl(Exporter) +#BuildRequires: perl(ExtUtils::Manifest) +#BuildRequires: perl(ExtUtils::MM_Cygwin) +#BuildRequires: perl(ExtUtils::MM_Unix) +#BuildRequires: perl(ExtUtils::MM_Win32) +#BuildRequires: perl(Fcntl) +#BuildRequires: perl(File::Basename) +#BuildRequires: perl(File::Find) +#BuildRequires: perl(FileHandle) +#BuildRequires: perl(File::Path) +#BuildRequires: perl(File::Spec) +#BuildRequires: perl(FindBin) +#BuildRequires: perl(inc::Module::Install) +#BuildRequires: perl(JSON) +#BuildRequires: perl(LWP::Simple) +#BuildRequires: perl(Module::Build) +#BuildRequires: perl(Module::Install::Base) +#BuildRequires: perl(Net::FTP) +#BuildRequires: perl(Parse::CPAN::Meta) +#BuildRequires: perl(Socket) +#BuildRequires: perl(Test::More) +#BuildRequires: perl(vars) +#BuildRequires: perl(YAML::Tiny) +%{perl_requires} %description -Method modifiers are a powerful feature from the CLOS (Common Lisp Object +Method modifiers are a convenient 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. + +One clear benefit of using 'Class::Method::Modifiers' is that you can +define multiple modifiers in a single namespace. These separate modifiers +don't need to know about each other. This makes top-down design easy. Have +a base class that provides the skeleton methods of each operation, and have +plugins modify those methods to flesh out the specifics. + +Parent classes need not know about 'Class::Method::Modifiers'. This means +you should be able to modify methods in _any_ subclass. See the +Term::VT102::ZeroBased manpage for an example of subclassing with CMM. + +In short, 'Class::Method::Modifiers' solves the problem of making sure you +call '$self->SUPER::foo(@_)', and provides a cleaner interface for it. + +As of version 1.00, 'Class::Method::Modifiers' is faster in some cases than +the Moose manpage. See 'benchmark/method_modifiers.pl' in the the Moose +manpage distribution. + %prep %setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -51,18 +107,11 @@ %install %perl_make_install -# do not perl_process_packlist (noarch) -# remove .packlist file -%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch -# remove perllocal.pod file -%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib +%perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files -%defattr(-,root,root,-) +%defattr(-,root,root,755) %doc Changes %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org