packages: perl-Try-Tiny/perl-Try-Tiny.spec (NEW) - initial
amateja
amateja at pld-linux.org
Fri Oct 16 13:56:09 CEST 2009
Author: amateja Date: Fri Oct 16 11:56:09 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/perl-Try-Tiny:
perl-Try-Tiny.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-Try-Tiny/perl-Try-Tiny.spec
diff -u /dev/null packages/perl-Try-Tiny/perl-Try-Tiny.spec:1.1
--- /dev/null Fri Oct 16 13:56:09 2009
+++ packages/perl-Try-Tiny/perl-Try-Tiny.spec Fri Oct 16 13:56:04 2009
@@ -0,0 +1,83 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Try
+%define pnam Tiny
+Summary: Try::Tiny - minimal try/catch with proper localization of $@
+Summary(pl.UTF-8): Try::Tiny - minimaly try/catch z odpowiednią lokalizacją $@
+Name: perl-Try-Tiny
+Version: 0.02
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/Try-Tiny-%{version}.tar.gz
+# Source0-md5: a6ceb75d533046d85c797ad9e3be4212
+URL: http://search.cpan.org/dist/Try-Tiny/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides bare bones try/catch statements that are designed
+to minimize common mistakes with eval blocks, and NOTHING else.
+
+This is unlike TryCatch which provides a nice syntax and avoids adding
+another call stack layer, and supports calling return from the try
+block to return from the parent subroutine. These extra features come
+at a cost of a few dependencies, namely Devel::Declare and
+Scope::Upper which are occasionally problematic, and the additional
+catch filtering uses Moose type constraints which may not be desirable
+either.
+
+The main focus of this module is to provide simple and reliable error
+handling for those having a hard time installing TryCatch, but who
+still want to write correct eval blocks without 5 lines of boilerplate
+each time.
+
+It's designed to work as correctly as possible in light of the various
+pathological edge cases (see BACKGROUND) and to be compatible with any
+style of error values (simple strings, references, objects, overloaded
+objects, etc).
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Try/*.pm
+%{_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 2009/10/16 11:56:04 amateja
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list