Name: perl-MooseX-Traits Version: 0.13 Release: 1%{?dist} Summary: Automatically apply roles at object creation time License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/MooseX-Traits/ Source0: http://www.cpan.org/authors/id/E/ET/ETHER/MooseX-Traits-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 0:5.006 BuildRequires: perl(Carp) BuildRequires: perl(Class::Load) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) BuildRequires: perl(Module::Build) BuildRequires: perl(Moose) BuildRequires: perl(Moose::Role) BuildRequires: perl(MooseX::Role::Parameterized) BuildRequires: perl(namespace::autoclean) BuildRequires: perl(ok) BuildRequires: perl(Sub::Exporter) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::Requires) Requires: perl(Carp) Requires: perl(Class::Load) Requires: perl(Moose::Role) Requires: perl(namespace::autoclean) Requires: perl(Sub::Exporter) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %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 apply roles to the instance one-by-one, he can just create a new class from yours with with_traits, and then instantiate that. %prep %setup -q -n MooseX-Traits-%{version} %build %{__perl} Build.PL --installdirs=vendor ./Build %install rm -rf $RPM_BUILD_ROOT ./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 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes CONTRIBUTING dist.ini LICENSE META.json README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Sun Feb 19 2017 Dave Cross 0.13-1 - Specfile autogenerated by cpanspec 1.78.