[521] | 1 | %define module Class-ErrorHandler |
---|
| 2 | %define name perl-%{module} |
---|
| 3 | %define version 0.01 |
---|
[3736] | 4 | %define release 3%{_dist_release} |
---|
[521] | 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 |
---|
[3736] | 54 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.01-3 |
---|
| 55 | - rebuild with perl-5.12.3 |
---|
| 56 | |
---|
[521] | 57 | * Thu Mar 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.01-2vl5 |
---|
| 58 | - changed Group to Development/Libraries |
---|
| 59 | - added Japanese summary |
---|
| 60 | |
---|
| 61 | * Fri May 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-1vl5 |
---|
| 62 | - rebuild with perl 5.10 |
---|
| 63 | - new versioning policy |
---|
| 64 | |
---|
| 65 | * Mon Mar 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl1 |
---|
| 66 | - rebuild for VineSeed |
---|
| 67 | |
---|
| 68 | * Sun Mar 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.43 |
---|
| 69 | - rebuild to release for VinePlus 4.2 |
---|
| 70 | |
---|
| 71 | * Tue Mar 04 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.42 |
---|
| 72 | - built for Vine 4.2 (testing) |
---|
| 73 | |
---|