Name: perl-MooseX-Log-Log4perl Version: 0.31 Release: 1%{?dist} # see lib/MooseX/Log/Log4perl.pm License: GPL+ or Artistic Group: Development/Libraries Summary: A Logging Role for Moose based on Log::Log4perl Source: http://search.cpan.org/CPAN/authors/id/L/LA/LAMMEL/MooseX-Log-Log4perl-%{version}.tar.gz Url: http://search.cpan.org/dist/MooseX-Log-Log4perl BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(IO::Scalar) BuildRequires: perl(Log::Log4perl) BuildRequires: perl(Moose) BuildRequires: perl(Test::More) # optional tests BuildRequires: perl(Test::Pod) %description A logging role building a very lightweight wrapper to Log::Log4perl for use with your the Moose classes. The initialization of the Log4perl instance must be performed prior to logging the first log message. Otherwise the default initialization will happen, probably not doing the things you expect. For compatibility the 'logger' attribute can be accessed to use a common interface for application logging. For simple logging needs use MooseX::Log::Log4perl::Easy to directly add log_ methods to your class instance. %prep %setup -q -n MooseX-Log-Log4perl-%{version} perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README Changes t/ %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Mon Nov 03 2008 Chris Weyl 0.31-1 - touch-up for submission * Sun Nov 02 2008 Chris Weyl 0.31-0.1 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5)