# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Devel %define pnam StackTrace Summary: Devel::StackTrace - stack trace and stack trace frame objects Summary(pl.UTF-8): Devel::StackTrace - śledzenie stosu i ramek obiektów Name: perl-Devel-StackTrace Version: 1.19_02 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-1.1902.tar.gz # Source0-md5: f8a69de98e235bd30cc353e8bc244760 URL: http://search.cpan.org/dist/Devel-StackTrace/ BuildRequires: perl-Module-Build %{?with_tests:BuildRequires: perl-Test-Simple >= 0.46} BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The Devel::StackTrace module contains two classes, Devel::StackTrace and Devel::StackTraceFrame. The goal of this object is to encapsulate the information that can found through using the caller() function, as well as providing a simple interface to this data. %description -l pl.UTF-8 Moduł Devel::StackTrace zawiera dwie klasy: Devel::StackTrace i Devel::StackTraceFrame. Zadaniem tego obiektu jest obudowanie znalezionej przy użyciu funkcji caller() informacji, oraz udostępnienie prostego interfejsu do tych danych. %prep %setup -q -n %{pdir}-%{pnam}-1.1902 %build %{__perl} Build.PL \ installdirs=vendor ./Build %{?with_tests:./Build test} %install rm -rf $RPM_BUILD_ROOT ./Build install \ destdir=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc LICENSE Changes README %{perl_vendorlib}/Devel/StackTrace.pm %{_mandir}/man3/*