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