5c48b84
Name:           perl-Log-Any-Adapter-Dispatch
5c48b84
Version:        0.06
5c48b84
Release:        1%{?dist}
5c48b84
Summary:        Log::Any::Adapter::Dispatch Perl module
5c48b84
License:        GPL+ or Artistic
5c48b84
Group:          Development/Libraries
5c48b84
URL:            http://search.cpan.org/dist/Log-Any-Adapter-Dispatch/
5c48b84
Source0:        http://www.cpan.org/authors/id/J/JS/JSWARTZ/Log-Any-Adapter-Dispatch-%{version}.tar.gz
5c48b84
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5c48b84
BuildArch:      noarch
5c48b84
BuildRequires:  perl(ExtUtils::MakeMaker)
5c48b84
BuildRequires:  perl(Log::Any::Adapter)
5c48b84
BuildRequires:  perl(Log::Dispatch) >= 2.26
5c48b84
BuildRequires:  perl(Test::More)
5c48b84
Requires:       perl(Log::Dispatch) >= 2.26
5c48b84
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
5c48b84
5c48b84
%description
5c48b84
This Log::Any adapter uses Log::Dispatch for logging.
5c48b84
5c48b84
%prep
5c48b84
%setup -q -n Log-Any-Adapter-Dispatch-%{version}
5c48b84
5c48b84
%build
5c48b84
# --skipdeps causes ExtUtils::AutoInstall not to try auto-installing
5c48b84
%{__perl} Makefile.PL INSTALLDIRS=vendor  --skipdeps
5c48b84
make %{?_smp_mflags}
5c48b84
5c48b84
%install
5c48b84
rm -rf $RPM_BUILD_ROOT
5c48b84
5c48b84
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
5c48b84
5c48b84
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
5c48b84
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
5c48b84
5c48b84
%{_fixperms} $RPM_BUILD_ROOT/*
5c48b84
5c48b84
%check
5c48b84
make test
5c48b84
5c48b84
%clean
5c48b84
rm -rf $RPM_BUILD_ROOT
5c48b84
5c48b84
%files
5c48b84
%defattr(-,root,root,-)
5c48b84
%doc Changes README
5c48b84
%{perl_vendorlib}/*
5c48b84
%{_mandir}/man3/*
5c48b84
5c48b84
%changelog
5c48b84
* Sun Feb 06 2011 Ralf Cors├ępius <corsepiu@fedoraproject.org> 0.06-1
5c48b84
- Initial Fedora package.