|
|
6f0d573 |
Name: perl-Log-Dispatch-FileRotate
|
|
|
25a78ec |
Version: 1.15
|
|
|
6f0d573 |
Release: 1%{?dist}
|
|
|
6f0d573 |
Summary: Log to files that archive/rotate themselves
|
|
|
6f0d573 |
|
|
|
6f0d573 |
Group: Development/Libraries
|
|
|
25a78ec |
License: GPL or Artistic
|
|
|
6f0d573 |
URL: http://search.cpan.org/dist/Log-Dispatch-FileRotate/
|
|
|
6f0d573 |
Source0: http://www.cpan.org/authors/id/M/MA/MARKPF/Log-Dispatch-FileRotate-%{version}.tar.gz
|
|
|
6f0d573 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
6f0d573 |
|
|
|
6f0d573 |
BuildArch: noarch
|
|
|
6f0d573 |
BuildRequires: perl(Date::Manip)
|
|
|
6f0d573 |
BuildRequires: perl(Log::Dispatch)
|
|
|
6f0d573 |
# See comment in the %check section
|
|
|
6f0d573 |
# BuildRequires: perl(Log::Log4perl) >= 0.23
|
|
|
6f0d573 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
6f0d573 |
|
|
|
6f0d573 |
%description
|
|
|
6f0d573 |
This module provides a simple object for logging to files under the
|
|
|
6f0d573 |
Log::Dispatch::* system, and automatically rotating them according to
|
|
|
6f0d573 |
different constraints. This is basically a Log::Dispatch::File wrapper
|
|
|
6f0d573 |
with additions.
|
|
|
6f0d573 |
|
|
|
6f0d573 |
|
|
|
6f0d573 |
%prep
|
|
|
6f0d573 |
%setup -q -n Log-Dispatch-FileRotate-%{version}
|
|
|
6f0d573 |
|
|
|
6f0d573 |
|
|
|
6f0d573 |
%build
|
|
|
6f0d573 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
6f0d573 |
make %{?_smp_mflags}
|
|
|
6f0d573 |
|
|
|
6f0d573 |
|
|
|
6f0d573 |
%install
|
|
|
6f0d573 |
rm -rf $RPM_BUILD_ROOT
|
|
|
6f0d573 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
6f0d573 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
6f0d573 |
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
6f0d573 |
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
6f0d573 |
|
|
|
6f0d573 |
|
|
|
6f0d573 |
%check
|
|
|
6f0d573 |
# Test suite disabled: circular dependencies with Log::Log4perl
|
|
|
6f0d573 |
# make test
|
|
|
6f0d573 |
|
|
|
6f0d573 |
|
|
|
6f0d573 |
%clean
|
|
|
6f0d573 |
rm -rf $RPM_BUILD_ROOT
|
|
|
6f0d573 |
|
|
|
6f0d573 |
|
|
|
6f0d573 |
%files
|
|
|
6f0d573 |
%defattr(-,root,root,-)
|
|
|
6f0d573 |
%doc Changes README
|
|
|
6f0d573 |
%{perl_vendorlib}/Log/Dispatch/
|
|
|
6f0d573 |
%{_mandir}/man3/*.3pm*
|
|
|
6f0d573 |
|
|
|
6f0d573 |
|
|
|
6f0d573 |
%changelog
|
|
|
25a78ec |
* Wed Apr 26 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.15-1
|
|
|
25a78ec |
- Update to 1.15.
|
|
|
25a78ec |
- The author corrected the licensing terms (License: GPL or Artistic).
|
|
|
25a78ec |
|
|
|
6f0d573 |
* Mon Apr 24 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.14-1
|
|
|
6f0d573 |
- Update to 1.14.
|
|
|
6f0d573 |
- License: Artistic.
|
|
|
6f0d573 |
|
|
|
6f0d573 |
* Mon Apr 24 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.13-2
|
|
|
6f0d573 |
- The license is: GPL or Artistic.
|
|
|
6f0d573 |
License information: http://rt.cpan.org/Public/Bug/Display.html?id=14563.
|
|
|
6f0d573 |
|
|
|
6f0d573 |
* Sun Sep 11 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.13-1
|
|
|
6f0d573 |
- First build.
|