3 %bcond_without tests # do not perform "make test"
6 %define pnam TraceMessages
7 Summary: Log::TraceMessages - Perl extension for trace messages used in debugging
8 Summary(pl.UTF-8): Log::TraceMessages - rozszerzenie Perla do śledzenia komunikatów
9 Name: perl-Log-TraceMessages
12 # same as perl (REMOVE THIS LINE IF NOT TRUE)
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 77687c9858a476628f0299cf4f29c727
17 URL: http://search.cpan.org/dist/Log-TraceMessages/
18 BuildRequires: perl-HTML-FromText
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 This module is a slightly better way to put trace statements into your
26 code than just calling print(). It provides an easy way to turn trace
27 on and off for particular sections of code without having to comment
30 %description -l pl.UTF-8
31 Ten moduł to nieco lepszy sposób umieszczania instrukcji do śledzenia
32 we własnym kodzie niż zwykłe wywoływanie print(). Udostępnia on łatwy
33 sposób włączania i wyłączania śledzenia dla różnych sekcji kodu bez
34 potrzeby zamiany na komentarze kawałków kodu źródłowego.
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 %dir %{perl_vendorlib}/auto/Log
60 %dir %{perl_vendorlib}/auto/Log/TraceMessages
61 %{perl_vendorlib}/auto/Log/TraceMessages/autosplit.ix