%define module Devel-SimpleTrace %define name perl-%{module} %define version 0.06 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} Summary: See where you code warns and dies using stack traces License: GPL or Artistic Group: Development/Perl Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module}/ BuildArch: noarch BuildRequires: perl-devel BuildRoot: %{_tmppath}/%{name}-%{version} %description This module can be used to more easily spot the place where a program or a module generates errors. Its use is extremely simple, reduced to just useing it. This is achieved by modifying the functions warn() and die() in order to replace the standard messages by complete stack traces that precisely indicates how and where the error or warning occurred. Other than this, their use should stay unchanged, even when using die() inside eval(). %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %{__make} test %install rm -rf %{buildroot} %{makeinstall_std} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes LICENSE README %{perl_vendorlib}/Devel %{_mandir}/*/* %changelog * Mon Jan 01 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.06-1mdv2007.0 + Revision: 103019 - Import perl-Devel-SimpleTrace * Mon Jan 01 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.06-1mdv2007.1 - first mdv release