3 %bcond_without tests # do not perform "make test"
7 Summary: HTTP::Exception - throw HTTP-Errors as (Exception::Class-) Exceptions
8 Name: perl-HTTP-Exception
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 3541f70932c99c0c44a1d0666bfec151
16 URL: http://search.cpan.org/dist/HTTP-Exception/
17 BuildRequires: perl-Module-Build
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Exception-Class >= 1.29
22 BuildRequires: perl-HTTP-Message >= 5.817
23 BuildRequires: perl-Test-Exception >= 0.29
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Every HTTP::Exception is a Exception::Class - Class. So the same
30 mechanisms apply as with Exception::Class-classes. In fact have a look
31 at Exception::Class' docs for more general information on exceptions
32 and Exception::Class::Base for information on what methods a caught
36 %setup -q -n %{pdir}-%{pnam}-%{version}
40 destdir=$RPM_BUILD_ROOT \
44 %{?with_tests:./Build test}
47 rm -rf $RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorlib}/HTTP/*.pm
58 %{perl_vendorlib}/HTTP/Exception