]> git.pld-linux.org Git - packages/perl-Log-Dispatch.git/blob - perl-Log-Dispatch.spec
c354f20a40173cb48892912ffe127e8840c5620e
[packages/perl-Log-Dispatch.git] / perl-Log-Dispatch.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "./Build test"
4
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Log
7 %define         pnam    Dispatch
8 Summary:        Log::Dispatch Perl module - dispatches messages to multiple Log::Dispatch::* objects
9 Summary(pl.UTF-8):      Moduł Perla Log::Dispatch - wysyłanie komunikatów do wielu obiektów Log::Dispatch::*
10 Name:           perl-Log-Dispatch
11 Version:        2.18
12 Release:        1
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  bee5bcd1d598d006dc10491e542aea12
17 BuildRequires:  perl-Module-Build >= 0.20
18 BuildRequires:  perl-Params-Validate >= 0.15
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 # optional
25 %define         _noautoreq      'perl(Apache::Log)' 'perl(MIME::Lite)' 'perl(Mail::Send)' 'perl(Mail::Sender)' 'perl(Mail::Sendmail)'
26
27 %description
28 Log::Dispatch is a suite of OO modules for logging messages to
29 multiple outputs, each of which can have a minimum and maximum log
30 level. It is designed to be easily subclassed, both for creating a new
31 dispatcher object and particularly for creating new outputs.
32
33 %description -l pl.UTF-8
34 Log::Dispatch to zestaw obiektowo zorientowanych modułów do logowania
35 komunikatów na wiele wyjść, z których każde może mieć podany minimalny
36 i maksymalny poziom logowania. Pakiet ten został zaprojektowany tak,
37 by łatwo można było stworzyć klasy potomne, w celu tworzenia nowych
38 obiektów wysyłających, jak i (szczególnie) nowych wyjść.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Build.PL \
45         installdirs=vendor \
46         destdir=$RPM_BUILD_ROOT
47 ./Build
48
49 %{?with_tests:./Build test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 ./Build install
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc Changes README
61 %{perl_vendorlib}/%{pdir}/*.pm
62 %{perl_vendorlib}/%{pdir}/%{pnam}
63 %{_mandir}/man3/*
This page took 0.051016 seconds and 3 git commands to generate.