Chris Weyl 6d75c22
Name:           perl-POE-Component-Logger
Petr Šabata b2b7cc5
Version:        1.10
4c1a87c
Release:        14%{?dist}
Petr Šabata b2b7cc5
Summary:        A POE logging class
Chris Weyl 6d75c22
Group:          Development/Libraries
Petr Šabata b2b7cc5
License:        GPL+ or Artistic
Petr Šabata b2b7cc5
URL:            http://search.cpan.org/dist/POE-Component-Logger
Petr Šabata 6ed88d1
Source0:        http://search.cpan.org/CPAN/authors/id/D/DO/DOLMEN/POE-Component-Logger-%{version}.tar.gz
4c1a87c
# Added . to default path in test, CPAN RT#116620
4c1a87c
Patch0:         POE-Component-Logger-1.10-Fix-default-path-in-tests.patch
Chris Weyl 6d75c22
BuildArch:      noarch
50e2d50
BuildRequires:  perl-generators
Petr Šabata b2b7cc5
BuildRequires:  perl(base)
Petr Šabata b2b7cc5
BuildRequires:  perl(Carp)
3a7dad9
BuildRequires:  perl(ExtUtils::MakeMaker)
Petr Šabata b2b7cc5
BuildRequires:  perl(Log::Dispatch::Config) >= 0.10
Petr Šabata b2b7cc5
BuildRequires:  perl(Log::Dispatch::Configurator)
Petr Šabata b2b7cc5
BuildRequires:  perl(Log::Dispatch::Output)
Petr Šabata b2b7cc5
BuildRequires:  perl(POE) >= 0.11
Petr Šabata b2b7cc5
BuildRequires:  perl(Test)
Petr Šabata b2b7cc5
BuildRequires:  perl(Test::More)
Petr Šabata b2b7cc5
BuildRequires:  perl(Test::NoWarnings)
Petr Šabata 6ed88d1
Requires:  perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Chris Weyl 6d75c22
Chris Weyl 6d75c22
%description
Chris Weyl 6d75c22
POE::Component::Logger provides a simple logging component that uses
Chris Weyl 6d75c22
Log::Dispatch::Config to drive it, allowing you to log to multiple places at
Chris Weyl 6d75c22
once (e.g. to STDERR and Syslog at the same time) and also to flexibly define
Chris Weyl 6d75c22
your logger's output.
Chris Weyl 6d75c22
Chris Weyl 6d75c22
It is very simple to use, because it creates a Logger::log method (yes, this
Chris Weyl 6d75c22
is namespace corruption, so shoot me). If you don't like this, feel free to
Chris Weyl 6d75c22
post directly to your logger as follows:
Chris Weyl 6d75c22
Chris Weyl 6d75c22
  $kernel->post('logger', 'log', "An error occurred: $!");
Chris Weyl 6d75c22
Chris Weyl 6d75c22
All logging is done in the background, so don't expect immediate output -
Chris Weyl 6d75c22
the output will only occur after control goes back to the kernel so it can
Chris Weyl 6d75c22
process the next event.
Chris Weyl 6d75c22
Chris Weyl 6d75c22
Chris Weyl 6d75c22
%prep
Chris Weyl 6d75c22
%setup -q -n POE-Component-Logger-%{version}
4c1a87c
%patch0 -p1
Chris Weyl 6d75c22
Chris Weyl 6d75c22
%build
Petr Šabata 6ed88d1
perl Makefile.PL INSTALLDIRS=vendor
Chris Weyl 6d75c22
make %{?_smp_mflags}
Chris Weyl 6d75c22
Chris Weyl 6d75c22
%install
Petr Šabata 6ed88d1
make pure_install DESTDIR=%{buildroot}
Petr Šabata 6ed88d1
find %{buildroot} -type f -name .packlist -exec rm -f {} +
Petr Šabata 6ed88d1
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} +
Chris Weyl 6d75c22
chmod -R u+w %{buildroot}/*
Chris Weyl 6d75c22
Chris Weyl 6d75c22
%check
Chris Weyl 6d75c22
make test
Chris Weyl 6d75c22
Chris Weyl 6d75c22
%files
Petr Šabata b2b7cc5
%doc README
Chris Weyl 6d75c22
%{perl_vendorlib}/*
Chris Weyl 6d75c22
%{_mandir}/man3/*.3*
Chris Weyl 6d75c22
Chris Weyl 6d75c22
Chris Weyl 6d75c22
%changelog
4c1a87c
* Thu Aug 04 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-14
4c1a87c
- Added . to default path in test (CPAN RT#116620)
4c1a87c
876083f
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-13
876083f
- Perl 5.24 rebuild
876083f
684c8b4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-12
684c8b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
684c8b4
610e3fe
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-11
610e3fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
610e3fe
7fd5b88
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-10
7fd5b88
- Perl 5.22 rebuild
7fd5b88
b56255d
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-9
b56255d
- Perl 5.20 rebuild
b56255d
ea04a39
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-8
ea04a39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ea04a39
Petr Šabata 6ed88d1
* Thu Oct 10 2013 Petr Šabata <contyk@redhat.com> - 1.10-7
Petr Šabata 6ed88d1
- Update source URL
Petr Šabata 6ed88d1
- Modernize the spec a bit
Petr Šabata 6ed88d1
791f0b6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-6
791f0b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
791f0b6
aafa31b
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 1.10-5
aafa31b
- Perl 5.18 rebuild
aafa31b
8f79159
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-4
8f79159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8f79159
8942636
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
8942636
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8942636
79d6ae9
* Fri Jun 29 2012 Petr Pisar <ppisar@redhat.com> - 1.10-2
79d6ae9
- Perl 5.16 rebuild
79d6ae9
Petr Šabata b2b7cc5
* Tue Jan 17 2012 Petr Šabata <contyk@redhat.com> - 1.10-11
Petr Šabata b2b7cc5
- 1.10 bump
Petr Šabata b2b7cc5
- Spec cleanup, remove excessive whitespace
Petr Šabata b2b7cc5
9980bd8
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-11
9980bd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9980bd8
Petr Sabata 785f328
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.00-10
Petr Sabata 785f328
- Perl mass rebuild
Petr Sabata 785f328
bcd89d0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-9
bcd89d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bcd89d0
3a7dad9
* Wed Dec 08 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.00-8
3a7dad9
- Add BR: perl(ExtUtils::MakeMaker) (Fix FTBFS: BZ 660974)
3a7dad9
- Remove BR: perl.
3a7dad9
d2f290b
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.00-7
d2f290b
- Mass rebuild with perl-5.12.0
d2f290b
1f0e37c
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.00-6
1f0e37c
- rebuild against perl 5.10.1
1f0e37c
4f20972
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-5
4f20972
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4f20972
758dd8c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-4
758dd8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
758dd8c
6e12ef3
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.00-3
6e12ef3
Rebuild for new perl
6e12ef3
Chris Weyl 7639b87
* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.00-2
Chris Weyl 7639b87
- bump for mass rebuild
Chris Weyl 7639b87
Chris Weyl 49886f4
* Sat Jul  8 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.00-1
Chris Weyl 49886f4
- bump for release
Chris Weyl 49886f4
Chris Weyl 6d75c22
* Fri Jul 07 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.00-0
Chris Weyl 6d75c22
- Initial spec file for F-E