Name: perl-HTTP-Exception Version: 0.03001 Release: 1%{?dist} Summary: Throw HTTP-Errors as (Exception::Class-) Exceptions License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/HTTP-Exception/ Source0: http://www.cpan.org/authors/id/T/TM/TMUELLER/HTTP-Exception-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Exception::Class) >= 1.29 BuildRequires: perl(HTTP::Status) >= 5.817 BuildRequires: perl(Module::Build) BuildRequires: perl(Test::Exception) >= 0.29 BuildRequires: perl(Test::More) >= 0.88 Requires: perl(Exception::Class) >= 1.29 Requires: perl(HTTP::Status) >= 5.817 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Every HTTP::Exception is a Exception::Class - Class. So the same mechanisms apply as with Exception::Class-classes. In fact have a look at Exception::Class' docs for more general information on exceptions and Exception::Class::Base for information on what methods a caught exception also has. %prep %setup -q -n HTTP-Exception-%{version} %build %{__perl} Build.PL installdirs=vendor ./Build %install rm -rf $RPM_BUILD_ROOT ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check ./Build test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Tue Nov 23 2010 Dave Cross 0.03001-1 - Specfile autogenerated by cpanspec 1.78.