3 %bcond_without tests # do not perform "./Build test"
7 Summary: Log::Dispatch Perl module - dispatches messages to multiple Log::Dispatch::* objects
8 Summary(pl.UTF-8): Moduł Perla Log::Dispatch - wysyłanie komunikatów do wielu obiektów Log::Dispatch::*
9 Name: perl-Log-Dispatch
12 License: Artistic v2.0
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 3369ffd45dc098ef6c74622ceee7ad74
16 URL: http://search.cpan.org/dist/Log-Dispatch/
17 BuildRequires: perl-Dist-CheckConflicts >= 0.02
18 BuildRequires: perl-Params-Validate >= 1.03
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: rpmbuild(macros) >= 1.663
23 BuildRequires: perl-Devel-GlobalDestruction
24 BuildRequires: perl-Sys-Syslog >= 0.28
25 BuildRequires: perl-Test-Fatal
26 BuildRequires: perl-Test-Needs
27 BuildRequires: perl-Test-Requires
28 BuildRequires: perl-Test-Simple >= 0.96
29 BuildRequires: perl-Specio >= 0.32
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _noautoreq_perl MIME::Lite Mail::Send Mail::Sender Mail::Sendmail
38 Log::Dispatch is a suite of OO modules for logging messages to
39 multiple outputs, each of which can have a minimum and maximum log
40 level. It is designed to be easily subclassed, both for creating a new
41 dispatcher object and particularly for creating new outputs.
43 %description -l pl.UTF-8
44 Log::Dispatch to zestaw obiektowo zorientowanych modułów do logowania
45 komunikatów na wiele wyjść, z których każde może mieć podany minimalny
46 i maksymalny poziom logowania. Pakiet ten został zaprojektowany tak,
47 by łatwo można było stworzyć klasy potomne, w celu tworzenia nowych
48 obiektów dyspozytorów, jak i (w szczególności) nowych wyjść.
51 %setup -q -n %{pdir}-%{pnam}-%{version}
54 %{__perl} Makefile.PL \
59 %{?with_tests:%{__make} test}
62 rm -rf $RPM_BUILD_ROOT
65 DESTDIR=$RPM_BUILD_ROOT
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
72 %doc Changes README.md
73 %{perl_vendorlib}/Log/Dispatch.pm
74 %{perl_vendorlib}/Log/Dispatch
75 %{_mandir}/man3/Log::Dispatch*.3pm*