commit 2ecd8dfb2f91c8109c4e147b43427680d7a3ac20 Author: Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx> Date: Mon Jun 27 15:32:51 2011 +0200 Initial import. .gitignore | 1 + perl-HTTP-Exception.spec | 51 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 53 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..68c74a7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/HTTP-Exception-0.03001.tar.gz diff --git a/perl-HTTP-Exception.spec b/perl-HTTP-Exception.spec new file mode 100644 index 0000000..85e8bf9 --- /dev/null +++ b/perl-HTTP-Exception.spec @@ -0,0 +1,51 @@ +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 +BuildArch: noarch +BuildRequires: perl(Exception::Class) +BuildRequires: perl(HTTP::Status) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Plack) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%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 +./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 + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Jun 20 2011 Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx> 0.03001-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..3a32466 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3541f70932c99c0c44a1d0666bfec151 HTTP-Exception-0.03001.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel