3 %bcond_without tests # do perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Devel::Trace - print out each line before it is executed (like `sh -x')
9 Summary(pl.UTF-8): Devel::Trace - wypisywanie każdej linii przed wykonaniem (jak `sh -x')
10 Name: perl-Devel-Trace
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 1138fe5d16b446dca3d55ccea37d8b96
17 URL: http://www.plover.com/~mjd/perl/Trace/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 If you run your program with `perl -d:Trace program', this module will
25 print a message to standard error just before each line is executed.
26 This is is something like the shell's `-x' option.
28 %description -l pl.UTF-8
29 Jeśli uruchomi się program poprzez `perl -d:Trace program', ten moduł
30 będzie wypisywał na standardowe wyjście diagnostyczne komunikat przed
31 wykonaniem każdej linii. Jest to coś w rodzaju opcji `-x' powłoki.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} -pi -e 's@<STDIN>;@#<STDIN>;@' test.pl
39 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %{perl_vendorlib}/Devel/Trace.pm