3 %bcond_with tests # perform "make test"
4 # "i'm dumb therefore i fail"
6 %include /usr/lib/rpm/macros.perl
7 Summary: CGI::LogCarp perl module
8 Summary(pl.UTF-8): Moduł perla CGI::LogCarp
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/CGI/LogCarp-%{version}.tar.gz
15 # Source0-md5: 850d4b10812339a95fd4b21680a4c692
16 BuildRequires: rpm-perlprov >= 4.1-13
17 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 CGI::LogCarp redefines the STDERR stream and allows the definition of
23 new STDBUG and STDLOG streams in such a way that all messages are
24 formatted similar to an HTTPD error log.
26 %description -l pl.UTF-8
27 CGI::LogCarp redefiniuje strumień STDERR i umożliwia zdefiniowanie
28 nowych strumieni STDEBUG i STDLOG w taki sposób, żeby wszystkie
29 informacje były formatowane w podobnym stylu jak logi serwera httpd.
32 %setup -q -n LogCarp-%{version}
35 %{__perl} Makefile.PL \
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc Changes README TODO
53 %{perl_vendorlib}/CGI/LogCarp.pm