# # spec file for package perl-Class-Method-Modifiers-Fast # # norootforbuild Name: perl-Class-Method-Modifiers-Fast %define cpan_name %( %{__sed} -e 's,perl-,,' <<< %{name} ) Summary: Provides Moose-like method modifiers Url: http://search.cpan.org/perldoc?Class::Method::Modifiers::Fast Group: Development/Libraries/Perl License: Artistic License Version: 0.041 Release: 1 Vendor: openSUSE-Education Source: %{cpan_name}-%{version}.tar.bz2 BuildRequires: perl-macros BuildRequires: perl(Data::Util) BuildRequires: perl(Test::Exception) BuildRequires: perl(ExtUtils::ParseXS) BuildRequires: perl(Test::use::ok) BuildRequires: perl(Hash::Util::FieldHash::Compat) BuildRequires: perl(Scope::Guard) %{perl_requires} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Method modifiers are a powerful feature from the CLOS (Common Lisp Object System) world. Class::Method::Modifiers::Fast 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. Author: ------- Takatoshi Kitano %prep %setup -n %{cpan_name}-%{version} %build perl Makefile.PL make %{?jobs:-j%jobs} %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean rm -rf %{buildroot} %files -f %{name}.files %defattr(-, root, root) %doc Changes README MANIFEST %changelog