3 %bcond_without tests # do not perform "make test"
6 Summary: Throwable - a role for classes that can be thrown
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-authors/id/R/RJ/RJBS/Throwable-%{version}.tar.gz
14 # Source0-md5: 92d4934f601c2d291a65b0bf2ab08dd3
15 URL: https://github.com/rjbs/Throwable
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-Class-Method-Modifiers
20 BuildRequires: perl-Devel-StackTrace >= 1.32
21 BuildRequires: perl-Module-Runtime >= 0.002
22 BuildRequires: perl-Moo
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Throwable is a role for classes that are meant to be thrown as
29 exceptions to standard program flow. It is very simple and does only
30 two things: saves any previous value for $@ and calls die $self.
32 Throwable is implemented with Moo, so you can stick to Moo or use
36 %setup -q -n %{pdir}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
47 %{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/*.pm
57 %{perl_vendorlib}/StackTrace
58 %{perl_vendorlib}/Throwable