Name: perl-MooseX-Emulate-Class-Accessor-Fast Version: 0.00800 Release: 1%{?dist} # lib/MooseX/Adopt/Class/Accessor/Fast.pm -> GPL+ or Artistic # lib/MooseX/Emulate/Class/Accessor/Fast.pm -> GPL+ or Artistic License: GPL+ or Artistic Group: Development/Libraries Summary: Emulate Class::Accessor::Fast behavior using Moose attributes Source: http://search.cpan.org/CPAN/authors/id/G/GR/GRODITI/MooseX-Emulate-Class-Accessor-Fast-%{version}.tar.gz Url: http://search.cpan.org/dist/MooseX-Emulate-Class-Accessor-Fast 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(Moose) >= 0.31 BuildRequires: perl(Moose::Role) BuildRequires: perl(namespace::clean) # tests BuildRequires: perl(Test::More) BuildRequires: perl(Test::Exception) BuildRequires: perl(Class::Accessor::Fast) %description This module attempts to emulate the behavior of Class::Accessor::Fast as accurately as possible using the Moose attribute system. The public API of "Class::Accessor::Fast" is wholly supported, but the private methods are not. If you are only using the public methods (as you should) migration should be a matter of switching your "use base" line to a "with" line. %prep %setup -q -n MooseX-Emulate-Class-Accessor-Fast-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install 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}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README Changes %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Tue Feb 10 2009 Chris Weyl 0.00800-1 - update for submission * Tue Feb 10 2009 Chris Weyl 0.00800-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)