%define upstream_name MooseX-Traits %define upstream_version 0.09 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Automatically apply roles at object creation time License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Moose) BuildRequires: perl(Moose::Role) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::More) BuildRequires: perl(Test::use::ok) BuildRequires: perl(namespace::autoclean) Requires: perl(namespace::autoclean) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} %description Often you want to create components that can be added to a class arbitrarily. This module makes it easy for the end user to use these components. Instead of requiring the user to create a named class with the desired roles applied, or applying roles to the instance one-by-one, he can just pass a 'traits' parameter to the class's 'new_with_traits' constructor. This role will then apply the roles in one go, cache the resulting class (for efficiency), and return a new instance. Arguments meant to initialize the applied roles' attributes can also be passed to the constructor. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc Changes %{_mandir}/man3/* %perl_vendorlib/* %changelog * Wed Apr 07 2010 Jérôme Quelin <jquelin@mandriva.org> 0.90.0-1mdv2010.1 + Revision: 532714 - update to 0.09 * Sun Feb 14 2010 Jérôme Quelin <jquelin@mandriva.org> 0.80.0-1mdv2010.1 + Revision: 505680 - update to 0.08 * Fri Aug 28 2009 Michael Scherer <misc@mandriva.org> 0.70.0-2mdv2010.0 + Revision: 422011 - add missing requires, not found by autoreq as there the module is lowercase * Mon Aug 24 2009 Jérôme Quelin <jquelin@mandriva.org> 0.70.0-1mdv2010.0 + Revision: 420470 - adding missing buildrequires: - update to 0.07 * Wed Jul 29 2009 Jérôme Quelin <jquelin@mandriva.org> 0.60.0-1mdv2010.0 + Revision: 404042 - rebuild using %%perl_convert_version * Tue Jun 30 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.06-1mdv2010.0 + Revision: 390838 - update to new version 0.06 * Tue Jun 02 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.05-1mdv2010.0 + Revision: 382297 - update to new version 0.05 * Sun Feb 22 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.03-1mdv2009.1 + Revision: 343969 - import perl-MooseX-Traits * Sun Feb 22 2009 cpan2dist 0.03-1mdv - initial mdv release, generated with cpan2dist