]> git.pld-linux.org Git - packages/perl-Try-Tiny.git/commitdiff
- initial auto/th/perl-Try-Tiny-0_02-1
authoramateja <amateja@pld-linux.org>
Fri, 16 Oct 2009 11:56:04 +0000 (11:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Try-Tiny.spec -> 1.1

perl-Try-Tiny.spec [new file with mode: 0644]

diff --git a/perl-Try-Tiny.spec b/perl-Try-Tiny.spec
new file mode 100644 (file)
index 0000000..768d69d
--- /dev/null
@@ -0,0 +1,72 @@
+#
+# 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/*
This page took 0.550541 seconds and 4 git commands to generate.