3 %bcond_with tests # perform "make test": very long
6 %define pnam Dispatch-FileRotate
7 Summary: Log::Dispatch::FileRotate - log to files that archive/rotate themselves
8 Summary(pl.UTF-8): Log::Dispatch::FileRotate - logowanie do plików, które są archiwizowane lub podlegają rotacji
9 Name: perl-Log-Dispatch-FileRotate
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 8fabfe387bb070580f7c97c18853ae25
16 URL: http://search.cpan.org/dist/Log-Dispatch-FileRotate/
17 BuildRequires: perl-Date-Manip
18 BuildRequires: perl-Log-Dispatch
19 %{?with_tests:BuildRequires: perl-Log-Log4perl}
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module provides a simple object for logging to files under the
27 Log::Dispatch::* system, and automatically rotating them according to
28 different constraints. This is basically a Log::Dispatch::File wrapper
31 %description -l pl.UTF-8
32 Niniejszy moduł udostępnia prosty obiekt obsługujący logowanie do
33 plików w systemie Log::Dispatch::* i dokonujący automatycznej rotacji
34 tych plików na podstawie różnych reguł. W zasadzie jest to nakładka na
35 Log::Dispatch::File zawierająca dodatki.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Log/Dispatch/FileRotate.pm
61 %{_mandir}/man3/Log::Dispatch::FileRotate.3pm*