3 %bcond_without tests # do not perform "make test"
7 Summary: Log::Any -- Bringing loggers and listeners together
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 610f81b7b74859a105790347472dce34
16 URL: http://search.cpan.org/dist/Log-Any/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Log::Any allows CPAN modules to safely and efficiently log messages,
24 while letting the application choose (or decline to choose) a logging
25 mechanism such as Log::Dispatch or Log::Log4perl.
27 Log::Any has a very tiny footprint and no dependencies beyond Perl
28 5.6, which makes it appropriate for even small CPAN modules to use. It
29 defaults to 'null' logging activity, so a module can safely log
30 without worrying about whether the application has chosen (or will
31 ever choose) a logging mechanism.
33 The application, in turn, may choose one or more logging mechanisms
34 via Log::Any::Adapter.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/Log/*.pm
59 %{perl_vendorlib}/Log/Any