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: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 520a34bfa71d7614ecb9a0c0dea2ef61
17 BuildRequires: perl-devel >= 5.005
18 %if %{!?_without_tests:1}0
19 BuildRequires: perl(fields)
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The Devel::StackTrace module contains two classes, Devel::StackTrace
27 and Devel::StackTraceFrame. The goal of this object is to encapsulate
28 the information that can found through using the caller() function,
29 as well as providing a simple interface to this data.
32 Modu³ Devel::StackTrace zawiera dwie klasy: Devel::StackTrace
33 i Devel::StackTraceFrame. Zadaniem tego obiektu jest obudowanie
34 znalezionej przy u¿yciu funkcji caller() informacji, oraz udostêpnienie
35 prostego interfejsu do tych danych.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{!?_without_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
50 %{__make} install DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc LICENSE Changes README
58 %{perl_vendorlib}/%{pdir}/%{pnam}.pm