Name: perl-MooseX-SemiAffordanceAccessor Version: 0.03 Release: 1%{?dist} # lib/MooseX/SemiAffordanceAccessor.pm -> GPL+ or Artistic # lib/MooseX/SemiAffordanceAccessor/Role/Attribute.pm -> GPL+ or Artistic License: GPL+ or Artistic Group: Development/Libraries Summary: Name your accessors foo() and set_foo() Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/MooseX-SemiAffordanceAccessor-%{version}.tar.gz Url: http://search.cpan.org/dist/MooseX-SemiAffordanceAccessor 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) BuildRequires: perl(Module::Build::Compat) #BuildRequires: perl(Moose) >= 0.55_04 BuildRequires: perl(Moose) >= 0.56 BuildRequires: perl(Test::More) %description This module does not provide any methods. Simply loading it changes the default naming policy for the loading class so that accessors are separated into get and set methods. The get methods have the same name as the accessor, while set methods are prefixed with "set_".If you define an attribute with a leading underscore, then the set method will start with "_set_".If you explicitly set a "reader" or "writer" name when creating an attribute, then that attribute's naming scheme is left unchanged. %prep %setup -q -n MooseX-SemiAffordanceAccessor-%{version} # sigh find lib/ -type f -exec perl -pi -e 's/0\.5504/0.55/' {} ';' %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 Changes README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Sun Jun 07 2009 Chris Weyl 0.03-1 - submission * Sun Jun 07 2009 Chris Weyl 0.03-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)