packages: perl-HTTP-Exception/perl-HTTP-Exception.spec (NEW) - new

zbyniu zbyniu at pld-linux.org
Wed Jan 25 11:23:36 CET 2012


Author: zbyniu                       Date: Wed Jan 25 10:23:36 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/perl-HTTP-Exception:
   perl-HTTP-Exception.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/perl-HTTP-Exception/perl-HTTP-Exception.spec
diff -u /dev/null packages/perl-HTTP-Exception/perl-HTTP-Exception.spec:1.1
--- /dev/null	Wed Jan 25 11:23:36 2012
+++ packages/perl-HTTP-Exception/perl-HTTP-Exception.spec	Wed Jan 25 11:23:31 2012
@@ -0,0 +1,76 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	HTTP
+%define		pnam	Exception
+%include	/usr/lib/rpm/macros.perl
+Summary:	HTTP::Exception - throw HTTP-Errors as (Exception::Class-) Exceptions
+#Summary(pl.UTF-8):	
+Name:		perl-HTTP-Exception
+Version:	0.03001
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	3541f70932c99c0c44a1d0666bfec151
+# generic URL, check or change before uncommenting
+#URL:		http://search.cpan.org/dist/HTTP-Exception/
+BuildRequires:	perl-Module-Build
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Exception-Class >= 1.29
+BuildRequires:	perl-HTTP-Message >= 5.817
+BuildRequires:	perl-Test-Exception >= 0.29
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/HTTP/*.pm
+%{perl_vendorlib}/HTTP/Exception
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 10:23:31  zbyniu
+- new
+
================================================================


More information about the pld-cvs-commit mailing list