1 | Name: perl-Try-Tiny |
---|
2 | Summary: Minimal try/catch with proper localization of $@ |
---|
3 | Version: 0.11 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | License: MIT |
---|
6 | Group: Development/Libraries |
---|
7 | Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-%{version}.tar.gz |
---|
8 | URL: http://search.cpan.org/dist/Try-Tiny |
---|
9 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
10 | BuildArch: noarch |
---|
11 | |
---|
12 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
13 | BuildRequires: perl(Test::More) |
---|
14 | |
---|
15 | # obsolete/provide old tests subpackage |
---|
16 | # can be removed during F19 development cycle |
---|
17 | Obsoletes: %{name}-tests < 0.11-3 |
---|
18 | Provides: %{name}-tests = %{version}-%{release} |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | Packager: shaolin |
---|
23 | |
---|
24 | %{?perl_default_filter} |
---|
25 | |
---|
26 | %description |
---|
27 | The main focus of this module is to provide simple and reliable error |
---|
28 | handling for those having a hard time installing TryCatch, but who still |
---|
29 | want to write correct 'eval' blocks without 5 lines of boilerplate each |
---|
30 | time. |
---|
31 | |
---|
32 | %prep |
---|
33 | %setup -q -n Try-Tiny-%{version} |
---|
34 | |
---|
35 | %build |
---|
36 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
37 | make %{?_smp_mflags} |
---|
38 | |
---|
39 | %install |
---|
40 | rm -rf %{buildroot} |
---|
41 | make pure_install DESTDIR=%{buildroot} |
---|
42 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
43 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
44 | |
---|
45 | %{_fixperms} %{buildroot}/* |
---|
46 | |
---|
47 | %check |
---|
48 | make test |
---|
49 | |
---|
50 | %clean |
---|
51 | rm -rf %{buildroot} |
---|
52 | |
---|
53 | %files |
---|
54 | %doc Changes t/ |
---|
55 | %{perl_vendorlib}/Try/ |
---|
56 | %{_mandir}/man3/Try::Tiny.3pm* |
---|
57 | |
---|
58 | %changelog |
---|
59 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.11-1 |
---|
60 | - initial build for Vine Linux |
---|
61 | |
---|
62 | * Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> 0.11-3 |
---|
63 | - drop tests subpackage; move tests to main package documentation |
---|
64 | |
---|
65 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2 |
---|
66 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
67 | |
---|
68 | * Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> 0.11-1 |
---|
69 | - update to latest upstream version |
---|
70 | |
---|
71 | * Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.09-2 |
---|
72 | - Perl mass rebuild |
---|
73 | |
---|
74 | * Fri Mar 18 2011 Iain Arnell <iarnell@gmail.com> 0.09-1 |
---|
75 | - update to latest upstream version |
---|
76 | - clean up spec for modern rpmbuild |
---|
77 | |
---|
78 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-2 |
---|
79 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
80 | |
---|
81 | * Mon Nov 1 2010 Paul Howarth <paul@city-fan.org> 0.07-1 |
---|
82 | - update to 0.07: |
---|
83 | - allow multiple finally blocks |
---|
84 | - pass the error, if any, to finally blocks when called |
---|
85 | - documentation fixes and clarifications |
---|
86 | - this release by RJBS -> update source URL |
---|
87 | |
---|
88 | * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-2 |
---|
89 | - Mass rebuild with perl-5.12.0 |
---|
90 | |
---|
91 | * Tue Mar 02 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.04-1 |
---|
92 | - update by Fedora::App::MaintainerTools 0.004 |
---|
93 | - PERL_INSTALL_ROOT => DESTDIR |
---|
94 | - updating to latest GA CPAN version (0.04) |
---|
95 | |
---|
96 | * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.02-2 |
---|
97 | - rebuild against perl 5.10.1 |
---|
98 | |
---|
99 | * Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.02-1 |
---|
100 | - submission |
---|
101 | |
---|
102 | * Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.02-0 |
---|
103 | - initial RPM packaging |
---|
104 | - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8) |
---|