3 %bcond_without tests # do not perform "make test"
7 Summary: Log::Fu - Simplified and developer-friendly screen logging
8 Summary(pl.UTF-8): Log::Fu - uproszczone i przyjazne dla programistów logowanie na ekranie
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 28354f432e52e5d9b4553259da920068
17 URL: http://search.cpan.org/dist/Log-Fu/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Constant-Generate >= 0.04
22 BuildRequires: perl-Dir-Self
23 BuildRequires: perl-Test-Simple
25 Requires: perl-Constant-Generate >= 0.04
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This is a simple interface for console logging. It provides a few
31 functions, log_info, log_debug, log_warn, log_crit, and log_err. They
32 all take strings as arguments, and can take as many arguments as you
33 so desire (so any concatenation is done for you).
35 A message is printed to standard error (or to $target if specified),
36 prefixed with the filename, line number, and originating subroutine of
39 %description -l pl.UTF-8
40 Ten moduł to prosty interfejs do logowania na konsoli. Udostępnia
41 kilka funkcji: log_info, log_debug, log_warn, log_crit i log_err.
42 Wszystkie jako argumenty przyjmują łańcuchy w dowolnej liczbie
43 (łączenie ich jest wykonywane za programistę).
45 Komunikat jest wypisywany na standardowe wyjście diagnostyczne (lub
46 $target, jeśli został podany) i jest poprzedzany nazwą pliku, numerem
47 linii i procedurą, z której pochodzi komunikat.
50 %setup -q -n %{pdir}-%{pnam}-%{version}
53 %{__perl} Makefile.PL \
57 %{?with_tests:%{__make} test}
60 rm -rf $RPM_BUILD_ROOT
62 %{__make} pure_install \
63 DESTDIR=$RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorlib}/Log/Fu.pm
72 %{perl_vendorlib}/Log/Fu
73 %{_mandir}/man3/Log::Fu.3pm*