%define module Class-ErrorHandler %define name perl-%{module} %define version 0.01 %define release %mkrel 5 Name: %{name} Version: %{version} Release: %{release} Summary: Base class for error handling License: GPL or Artistic Group: Development/Perl Source0: %{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Class::ErrorHandler provides an error-handling mechanism that's generic enough to be used as the base class for a variety of OO classes. Subclasses inherit its two error-handling methods, error and errstr, to communicate error messages back to the calling program. %prep %setup -q -n %{module}-%{version} %build %__perl Makefile.PL INSTALLDIRS=vendor %__make %check %__make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc Changes README %{perl_vendorlib}/Class/* %{_mandir}/*/* %changelog * Wed Jul 30 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.01-5mdv2009.0 + Revision: 255950 - rebuild * Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 0.01-3mdv2008.1 + Revision: 136683 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sat Sep 15 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.01-3mdv2008.0 + Revision: 86107 - rebuild * Mon Aug 28 2006 Olivier Thauvin <nanardon@mandriva.org> + 2006-08-28 14:35:05 (58390) - mkrel * Mon Aug 28 2006 Olivier Thauvin <nanardon@mandriva.org> + 2006-08-28 14:32:49 (58383) Import perl-Class-ErrorHandler * Tue Jun 07 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.01-1mdk - Initial Mandriva release.