1 | %define module Class-ErrorHandler |
---|
2 | %define name perl-%{module} |
---|
3 | %define version 0.03 |
---|
4 | %define release 1%{_dist_release} |
---|
5 | |
---|
6 | Name: %{name} |
---|
7 | Version: %{version} |
---|
8 | Release: %{release} |
---|
9 | Summary: Base class for error handling |
---|
10 | Summary(ja): Perl 上でエラーを扱うための基本クラス |
---|
11 | Group: Development/Libraries |
---|
12 | License: GPL or Artistic |
---|
13 | URL: http://search.cpan.org/dist/%{module}/ |
---|
14 | Source: http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/%{module}-%{version}.tar.gz |
---|
15 | |
---|
16 | BuildArch: noarch |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
19 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | |
---|
24 | %description |
---|
25 | Class::ErrorHandler provides an error-handling mechanism that's |
---|
26 | generic enough to be used as the base class for a variety of OO classes. |
---|
27 | Subclasses inherit its two error-handling methods, error and errstr, |
---|
28 | to communicate error messages back to the calling program. |
---|
29 | |
---|
30 | #' |
---|
31 | %prep |
---|
32 | %setup -q -n %{module}-%{version} |
---|
33 | |
---|
34 | %build |
---|
35 | %{__perl} ./Build.PL installdirs=vendor |
---|
36 | ./Build |
---|
37 | |
---|
38 | %install |
---|
39 | rm -rf $RPM_BUILD_ROOT |
---|
40 | ./Build install destdir=$RPM_BUILD_ROOT |
---|
41 | |
---|
42 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
43 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
44 | %{_fixperms} $RPM_BUILD_ROOT |
---|
45 | |
---|
46 | %clean |
---|
47 | rm -rf $RPM_BUILD_ROOT |
---|
48 | |
---|
49 | %check |
---|
50 | ./Build test |
---|
51 | |
---|
52 | %files |
---|
53 | %defattr(-,root,root) |
---|
54 | %doc Changes LICENSE README.md |
---|
55 | %{_mandir}/man3*/* |
---|
56 | %{perl_vendorlib}/Class/* |
---|
57 | |
---|
58 | %changelog |
---|
59 | * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.03-1 |
---|
60 | - updated to 0.03 |
---|
61 | - built with perl 5.16.3 |
---|
62 | |
---|
63 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.01-3 |
---|
64 | - rebuild with perl-5.12.3 |
---|
65 | |
---|
66 | * Thu Mar 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.01-2vl5 |
---|
67 | - changed Group to Development/Libraries |
---|
68 | - added Japanese summary |
---|
69 | |
---|
70 | * Fri May 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-1vl5 |
---|
71 | - rebuild with perl 5.10 |
---|
72 | - new versioning policy |
---|
73 | |
---|
74 | * Mon Mar 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl1 |
---|
75 | - rebuild for VineSeed |
---|
76 | |
---|
77 | * Sun Mar 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.43 |
---|
78 | - rebuild to release for VinePlus 4.2 |
---|
79 | |
---|
80 | * Tue Mar 04 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.42 |
---|
81 | - built for Vine 4.2 (testing) |
---|
82 | |
---|