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