Name: perl-MooseX-Clone Version: 0.05 Release: 2%{?dist} Summary: Fine grained cloning support for Moose objects License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/MooseX-Clone/ Source0: http://www.cpan.org/authors/id/N/NU/NUFFIN/MooseX-Clone-%{version}.tar.gz # https://rt.cpan.org/Public/Bug/Display.html?id=55003 Patch0: MooseX-Clone-0.05-rt55003.patch BuildArch: noarch BuildRequires: perl(Data::Visitor) >= 0.24 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Hash::Util::FieldHash::Compat) BuildRequires: perl(Moose) >= 0.74 BuildRequires: perl(namespace::clean) >= 0.08 BuildRequires: perl(Test::use::ok) Requires: perl(Data::Visitor) >= 0.24 Requires: perl(Moose) >= 0.74 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?perl_default_filter} %description Out of the box Moose only provides very barebones cloning support in order to maximize flexibility. This role provides a clone method that makes use of the low level cloning support already in Moose and adds selective deep cloning based on introspection on top of that. Attributes with the Clone trait will handle cloning of data within the object, typically delegating to the attribute value's own clone method. %prep %setup -q -n MooseX-Clone-%{version} %patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %defattr(-,root,root,-) %doc Changes %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Tue Jul 20 2010 Iain Arnell 0.05-2 - apply patch for rt #55003 to fix erroneous provides * Tue Jul 20 2010 Iain Arnell 0.05-1 - Specfile autogenerated by cpanspec 1.78.