]> git.pld-linux.org Git - packages/perl-Log-Dispatch-FileRotate.git/blob - perl-Log-Dispatch-FileRotate.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Log-Dispatch-FileRotate.git] / perl-Log-Dispatch-FileRotate.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test": very long
4 #
5 %define         pdir    Log
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
10 Version:        1.19
11 Release:        1
12 License:        Artistic
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
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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
29 with additions.
30
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.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor \
43         < /dev/null
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes
60 %{perl_vendorlib}/Log/Dispatch/FileRotate.pm
61 %{_mandir}/man3/Log::Dispatch::FileRotate.3pm*
This page took 0.155743 seconds and 4 git commands to generate.