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