commit 73f4973cb0af65f7b1598b8ec2648aed2fc975c6
Author: Szymon Siwek <s...@pld-linux.org>
Date:   Sat Oct 17 11:16:16 2015 +0200

    initial, required by perl-Email-Sender

 perl-Throwable.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
---
diff --git a/perl-Throwable.spec b/perl-Throwable.spec
new file mode 100644
index 0000000..6b7ae47
--- /dev/null
+++ b/perl-Throwable.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Throwable
+%include       /usr/lib/rpm/macros.perl
+Summary:       Throwable - a role for classes that can be thrown
+#Summary(pl.UTF-8):    
+Name:          perl-Throwable
+Version:       0.200013
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       
http://www.cpan.org/modules/by-authors/id/R/RJ/RJBS/Throwable-0.200013.tar.gz
+# Source0-md5: 92d4934f601c2d291a65b0bf2ab08dd3
+# generic URL, check or change before uncommenting
+#URL:          http://search.cpan.org/dist/Throwable/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Devel-StackTrace >= 1.32
+BuildRequires: perl-Module-Runtime >= 0.002
+BuildRequires: perl-Moo
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Throwable is a role for classes that are meant to be thrown as exceptions to
+standard program flow.  It is very simple and does only two things: saves any
+previous value for $@ and calls die $self.
+
+Throwable is implemented with Moo, so you can stick to Moo or use Moose,
+as you prefer.
+
+
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{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 README
+%{perl_vendorlib}//*.pm
+%{perl_vendorlib}/Throwable/
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Throwable.git/commitdiff/2ed0511a6ce832abaa8b052f90c43e82ec7650fb

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to