Name: perl-Ouch Version: 0.0300 Release: 1%{?dist} Summary: Exceptions that don't hurt License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Ouch/ Source0: http://www.cpan.org/authors/id/R/RI/RIZEN/Ouch-%{version}.tar.gz BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(parent) BuildRequires: perl(overload) # Tests BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Ouch provides a class for exception handling that doesn't require a lot of boilerplate, nor any up front definition. If Exception::Class is working for you, great! But if you want something that is faster, easier to use, requires less typing, and has no prereqs, but still gives you much of that same functionality, then Ouch is for you. %prep %setup -q -n Ouch-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %defattr(-,root,root,-) %doc Changes dist.ini LICENSE README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Apr 18 2011 Petr Sabata <psabata@redhat.com> 0.0300-1 - Specfile autogenerated by cpanspec 1.78 - Buildroot stuff removed