%define realname Class-Throwable %define name perl-%{realname} %define version 0.10 %define release %mkrel 4 Summary: A minimal lightweight exception class Name: %{name} Version: %{version} Release: %{release} License: Artistic/GPL Group: Development/Perl URL: http://search.cpan.org/dist/%{realname}/ Source: %{realname}-%{version}.tar.bz2 Buildroot: %{_tmppath}/%{name}-root BuildArch: noarch %description This module implements a minimal lightweight exception object. It is meant to be a compromise between more basic solutions like Carp which can only print information and cannot handle exception objects, and more more complex solutions like Exception::Class which can be used to define complex inline exceptions and has a number of module dependencies. %prep %setup -q -n %{realname}-%{version} %build %__perl Makefile.PL INSTALLDIRS=vendor %make %check %make test %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall_std %files %defattr(-,root,root) %doc README Changes %{_mandir}/*/* %{perl_vendorlib}/Class/* %clean rm -rf $RPM_BUILD_ROOT %changelog * Wed Jul 30 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.10-4mdv2009.0 + Revision: 256031 - rebuild * Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 0.10-2mdv2008.1 + Revision: 136685 - 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.10-2mdv2008.0 + Revision: 86160 - rebuild * Fri Mar 24 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.10-1mdk - First Mandriva release