Name: perl-POE-Component-Logger Version: 1.10 Release: 1%{?dist} Summary: A POE logging class Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/POE-Component-Logger Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/POE-Component-Logger-%{version}.tar.gz BuildArch: noarch BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Log::Dispatch::Config) >= 0.10 BuildRequires: perl(Log::Dispatch::Configurator) BuildRequires: perl(Log::Dispatch::Output) BuildRequires: perl(POE) >= 0.11 BuildRequires: perl(Test) BuildRequires: perl(Test::More) BuildRequires: perl(Test::NoWarnings) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description POE::Component::Logger provides a simple logging component that uses Log::Dispatch::Config to drive it, allowing you to log to multiple places at once (e.g. to STDERR and Syslog at the same time) and also to flexibly define your logger's output. It is very simple to use, because it creates a Logger::log method (yes, this is namespace corruption, so shoot me). If you don't like this, feel free to post directly to your logger as follows: $kernel->post('logger', 'log', "An error occurred: $!"); All logging is done in the background, so don't expect immediate output - the output will only occur after control goes back to the kernel so it can process the next event. %prep %setup -q -n POE-Component-Logger-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %check make test %files %doc README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Tue Jan 17 2012 Petr Šabata - 1.10-11 - 1.10 bump - Spec cleanup, remove excessive whitespace * Fri Jan 13 2012 Fedora Release Engineering - 1.00-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Jul 19 2011 Petr Sabata - 1.00-10 - Perl mass rebuild * Tue Feb 08 2011 Fedora Release Engineering - 1.00-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 08 2010 Ralf Corsépius - 1.00-8 - Add BR: perl(ExtUtils::MakeMaker) (Fix FTBFS: BZ 660974) - Remove BR: perl. * Thu May 06 2010 Marcela Maslanova - 1.00-7 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 1.00-6 - rebuild against perl 5.10.1 * Sun Jul 26 2009 Fedora Release Engineering - 1.00-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.00-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Mar 06 2008 Tom "spot" Callaway - 1.00-3 Rebuild for new perl * Thu Aug 31 2006 Chris Weyl 1.00-2 - bump for mass rebuild * Sat Jul 8 2006 Chris Weyl 1.00-1 - bump for release * Fri Jul 07 2006 Chris Weyl 1.00-0 - Initial spec file for F-E