3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam StackTrace
8 Summary: Devel::StackTrace - Stack trace and stack trace frame objects
9 Summary(pl): Devel::StackTrace - ¶ledzenie stosu i ramek obiektów
10 Name: perl-%{pdir}-%{pnam}
14 Group: Development/Languages/Perl
15 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: perl >= 5.005
17 %if %{!?_without_tests:1}0
18 BuildRequires: perl(fields)
20 BuildRequires: rpm-perlprov >= 3.0.3-16
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The Devel::StackTrace module contains two classes, Devel::StackTrace
26 and Devel::StackTraceFrame. The goal of this object is to encapsulate
27 the information that can found through using the caller() function,
28 as well as providing a simple interface to this data.
31 Modu³ Devel::StackTrace zawiera dwie klasy: Devel::StackTrace
32 i Devel::StackTraceFrame. Zadaniem tego obiektu jest obudowanie
33 znalezionej przy u¿yciu funkcji caller() informacji, oraz udostêpnienie
34 prostego interfejsu do tych danych.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{!?_without_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
48 %{__make} install DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc LICENSE Changes README
56 %{perl_sitelib}/%{pdir}/%{pnam}.pm