Christopher Meng 756a4f9
%global pkgname Log-Handler
Christopher Meng 756a4f9
Christopher Meng 22ff536
Name:           perl-Log-Handler
Christopher Meng 22ff536
Version:        0.81
Christopher Meng 22ff536
Release:        1%{?dist}
Christopher Meng 756a4f9
Summary:        Log messages to several outputs
Christopher Meng 756a4f9
License:        GPL+ or Artistic
Christopher Meng 756a4f9
Url:            http://search.cpan.org/dist/Log-Handler
Christopher Meng 756a4f9
Source0:        http://www.cpan.org/modules/by-module/Log/%{pkgname}-%{version}.tar.gz
Christopher Meng 756a4f9
BuildRequires:  perl(Carp)
Christopher Meng 756a4f9
BuildRequires:  perl(Data::Dumper)
Christopher Meng 756a4f9
BuildRequires:  perl(ExtUtils::MakeMaker)
Christopher Meng 756a4f9
BuildRequires:  perl(Fcntl)
Christopher Meng 756a4f9
BuildRequires:  perl(File::Spec)
Christopher Meng 756a4f9
BuildRequires:  perl(Module::Build) >= 0.360.0
Christopher Meng 756a4f9
BuildRequires:  perl(POSIX)
Christopher Meng 756a4f9
BuildRequires:  perl(Params::Validate)
Christopher Meng 756a4f9
BuildRequires:  perl(Sys::Hostname)
Christopher Meng 756a4f9
BuildRequires:  perl(Test::More)
Christopher Meng 756a4f9
BuildRequires:  perl(Time::HiRes)
Christopher Meng 756a4f9
BuildRequires:  perl(UNIVERSAL)
Christopher Meng 756a4f9
#Tests only.
Christopher Meng 756a4f9
BuildRequires:  perl(Email::Date)
Christopher Meng 756a4f9
BuildRequires:  perl(Test::Pod)
Christopher Meng 756a4f9
BuildRequires:  perl(Test::Pod::Coverage)
Christopher Meng 756a4f9
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Christopher Meng 756a4f9
BuildArch:      noarch
Christopher Meng 756a4f9
Christopher Meng 756a4f9
%description
Christopher Meng 756a4f9
This module is a object oriented handler for logging, tracing and debugging. 
Christopher Meng 756a4f9
It is very easy to use and provides a simple interface for multiple output 
Christopher Meng 756a4f9
objects with lots of configuration parameters. You can easily filter the 
Christopher Meng 756a4f9
amount of logged information on a per-output base, define priorities, create 
Christopher Meng 756a4f9
patterns to format the messages and reload the complete logging machine.
Christopher Meng 756a4f9
Christopher Meng 756a4f9
%prep
Christopher Meng 756a4f9
%setup -qn %{pkgname}-%{version} 
Christopher Meng 756a4f9
Christopher Meng 756a4f9
%build
Christopher Meng 756a4f9
%{__perl} Makefile.PL INSTALLDIRS=vendor
Christopher Meng 756a4f9
make %{?_smp_mflags}
Christopher Meng 756a4f9
Christopher Meng 756a4f9
%install
Christopher Meng 756a4f9
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Christopher Meng 756a4f9
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
Christopher Meng 756a4f9
%{_fixperms} %{buildroot}/*
Christopher Meng 756a4f9
Christopher Meng 756a4f9
%check
Christopher Meng 756a4f9
make test
Christopher Meng 756a4f9
Christopher Meng 756a4f9
%files
Christopher Meng 22ff536
%doc ChangeLog LICENCE README examples
Christopher Meng 756a4f9
%{perl_vendorlib}/*
Christopher Meng 756a4f9
%{_mandir}/man3/*
Christopher Meng 756a4f9
Christopher Meng 756a4f9
%changelog
Christopher Meng 22ff536
* Sun Nov 03 2013 Christopher Meng <rpm@cicku.me> - 0.81-1
Christopher Meng 22ff536
- New version.
Christopher Meng 22ff536
faf0f1d
* Mon Aug 05 2013 Petr Pisar <ppisar@redhat.com> - 0.78-3
faf0f1d
- Perl 5.18 rebuild
faf0f1d
b475b4b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.78-2
b475b4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b475b4b
Christopher Meng 756a4f9
* Sun Mar 17 2013 Christopher Meng <rpm@cicku.me> - 0.78-1
Christopher Meng 756a4f9
- Initial Package.