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