Name: perl-MooseX-ConfigFromFile Version: 0.02 Release: 1%{?dist} Summary: Abstract Moose role for setting attributes from a configfile License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/MooseX-ConfigFromFile/ Source0: http://www.cpan.org/authors/id/B/BL/BLBLACK/MooseX-ConfigFromFile-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Moose) >= 0.35 BuildRequires: perl(MooseX::Types::Path::Class) >= 0.04 Requires: perl(Moose) >= 0.35 Requires: perl(MooseX::Types::Path::Class) >= 0.04 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This is an abstract role which provides an alternate constructor for creating objects using parameters passed in from a configuration file. The actual implementation of reading the configuration file is left to concrete subroles. %prep %setup -q -n MooseX-ConfigFromFile-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$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 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc ChangeLog README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Sun May 17 2009 Dave Cross 0.02-1 - Specfile autogenerated by cpanspec 1.77.