1 | %define module Class-ErrorHandler |
---|
2 | %define name perl-%{module} |
---|
3 | %define version 0.01 |
---|
4 | %define release 2%{_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 | BuildArch: noarch |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | |
---|
18 | Vendor: Project Vine |
---|
19 | Distribution: Vine Linux |
---|
20 | |
---|
21 | %description |
---|
22 | Class::ErrorHandler provides an error-handling mechanism that's |
---|
23 | generic enough to be used as the base class for a variety of OO classes. |
---|
24 | Subclasses inherit its two error-handling methods, error and errstr, |
---|
25 | to communicate error messages back to the calling program. |
---|
26 | |
---|
27 | #' |
---|
28 | %prep |
---|
29 | %setup -q -n %{module}-%{version} |
---|
30 | |
---|
31 | %build |
---|
32 | CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" |
---|
33 | %{__make} |
---|
34 | |
---|
35 | %install |
---|
36 | rm -rf $RPM_BUILD_ROOT |
---|
37 | %makeinstall DESTDIR=$RPM_BUILD_ROOT |
---|
38 | rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
---|
39 | # rm -rf %{buildroot}%{perl_vendorarch} |
---|
40 | |
---|
41 | %clean |
---|
42 | rm -rf $RPM_BUILD_ROOT |
---|
43 | |
---|
44 | %check |
---|
45 | %{__make} test |
---|
46 | |
---|
47 | %files |
---|
48 | %defattr(-,root,root) |
---|
49 | %doc README Changes |
---|
50 | %{_mandir}/man3*/* |
---|
51 | %{perl_vendorlib}/Class/* |
---|
52 | |
---|
53 | %changelog |
---|
54 | * Thu Mar 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.01-2vl5 |
---|
55 | - changed Group to Development/Libraries |
---|
56 | - added Japanese summary |
---|
57 | |
---|
58 | * Fri May 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-1vl5 |
---|
59 | - rebuild with perl 5.10 |
---|
60 | - new versioning policy |
---|
61 | |
---|
62 | * Mon Mar 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl1 |
---|
63 | - rebuild for VineSeed |
---|
64 | |
---|
65 | * Sun Mar 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.43 |
---|
66 | - rebuild to release for VinePlus 4.2 |
---|
67 | |
---|
68 | * Tue Mar 04 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.42 |
---|
69 | - built for Vine 4.2 (testing) |
---|
70 | |
---|