660b658
Name:           perl-Log-Dispatch-Perl
660b658
Version:        0.03
660b658
Release:        2%{?dist}
660b658
Summary:        Use core Perl functions for logging
660b658
License:        GPL+ or Artistic
660b658
Group:          Development/Libraries
660b658
URL:            http://search.cpan.org/dist/Log-Dispatch-Perl/
660b658
Source0:        http://www.cpan.org/authors/id/E/EL/ELIZABETH/Log-Dispatch-Perl-%{version}.tar.gz
660b658
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
660b658
BuildArch:      noarch
660b658
BuildRequires:  perl(ExtUtils::MakeMaker)
660b658
BuildRequires:  perl(Test::More)
660b658
BuildRequires:  perl(Log::Dispatch) >= 1.16
660b658
Requires:       perl(Log::Dispatch) >= 1.16
660b658
Requires:	perl(Carp)
660b658
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
660b658
660b658
%description
660b658
The "Log::Dispatch::Perl" module offers a logging alternative using
660b658
standard Perl core functions. It allows you to fall back to the common Perl
660b658
alternatives for logging, such as "warn" and "cluck". It also adds the
660b658
possibility for a logging action to halt the current environment, such as
660b658
with "die" and "croak".
660b658
660b658
%prep
660b658
%setup -q -n Log-Dispatch-Perl-%{version}
660b658
660b658
%build
660b658
%{__perl} Makefile.PL INSTALLDIRS=vendor
660b658
make %{?_smp_mflags}
660b658
660b658
%install
660b658
rm -rf $RPM_BUILD_ROOT
660b658
660b658
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
660b658
660b658
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
660b658
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
660b658
660b658
%{_fixperms} $RPM_BUILD_ROOT/*
660b658
660b658
%check
660b658
make test
660b658
660b658
%clean
660b658
rm -rf $RPM_BUILD_ROOT
660b658
660b658
%files
660b658
%defattr(-,root,root,-)
660b658
%doc CHANGELOG README TODO VERSION
660b658
%{perl_vendorlib}/*
660b658
%{_mandir}/man3/*
660b658
660b658
%changelog
660b658
* Mon Sep 22 2008 Ralf Cors├ępius <corsepiu@fedoraproject.org> 0.03-2
660b658
- Fix License: tag.
660b658
660b658
* Mon Sep 22 2008 Ralf Cors├ępius <corsepiu@fedoraproject.org> 0.03-1
660b658
- Add R: perl(Carp).
660b658
- Add BR: perl(Test::More).
660b658
- Specfile autogenerated by cpanspec 1.77.