commit 4f3876b7acca7091137931a75835deafcd41b674 Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Wed Apr 6 05:08:32 2011 +0200 initial import (rhbz#693042) .gitignore | 1 + perl-MooseX-ChainedAccessors.spec | 60 +++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..af3f3dd 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MooseX-ChainedAccessors-0.02.tar.gz diff --git a/perl-MooseX-ChainedAccessors.spec b/perl-MooseX-ChainedAccessors.spec new file mode 100644 index 0000000..7356e12 --- /dev/null +++ b/perl-MooseX-ChainedAccessors.spec @@ -0,0 +1,60 @@ +Name: perl-MooseX-ChainedAccessors +Version: 0.02 +Release: 1%{?dist} +Summary: Accessor class for chained accessors with Moose +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/MooseX-ChainedAccessors/ +Source0: http://www.cpan.org/authors/id/P/PE/PERLER/MooseX-ChainedAccessors-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Moose) +BuildRequires: perl(Moose::Role) +BuildRequires: perl(Pod::Coverage::TrustPod) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Script) +BuildRequires: perl(Try::Tiny) +BuildRequires: perl(warnings) +# for release testing, but they mostly fail +#BuildRequires: perl(Test::HasVersion) +#BuildRequires: perl(Test::Kwalitee) +#BuildRequires: perl(Test::MinimumVersion) +#BuildRequires: perl(Test::Pod) +#BuildRequires: perl(Test::Pod::Coverage) +#BuildRequires: perl(Test::Portability::Files) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +MooseX::ChainedAccessors is a Moose Trait which allows for method chaining +on accessors by returning $self on write/set operations. + +%prep +%setup -q -n MooseX-ChainedAccessors-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Apr 02 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.02-1 +- Specfile autogenerated by cpanspec 1.79. diff --git a/sources b/sources index e69de29..9a50b2c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3065e304a4ce14d5898d3669b8912540 MooseX-ChainedAccessors-0.02.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel