[3121] | 1 | %define pkgver 0.17016 |
---|
[521] | 2 | |
---|
| 3 | Summary: Error/exception handling in an OO-ish way with Perl |
---|
| 4 | Name: perl-Error |
---|
| 5 | Version: 0.17 |
---|
[3121] | 6 | Release: 2%{?_dist_release} |
---|
[521] | 7 | License: Aristic and GPL |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/U/UA/UARUN/Error-%{pkgver}.tar.gz |
---|
| 10 | Url: http://search.cpan.org/dist/Error/ |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 12 | BuildRequires: perl >= 5.005 |
---|
| 13 | Requires: perl >= 5.005 |
---|
| 14 | Vendor: Project Vine |
---|
| 15 | Distribution: Vine Linux |
---|
| 16 | BuildArch: noarch |
---|
| 17 | SUmmary(ja): エラーや例外をオブジェクト指向的に扱う Perl モジュール |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | The Error package provides two interfaces. Firstly Error provides |
---|
| 21 | a procedural interface to exception handling. Secondly Error is a |
---|
| 22 | base class for errors/exceptions that can either be thrown, for |
---|
| 23 | subsequent catch, or can simply be recorded. |
---|
| 24 | |
---|
| 25 | Errors in the class Error should not be thrown directly, but the |
---|
| 26 | user should throw errors from a sub-class of Error |
---|
| 27 | |
---|
| 28 | %description -l ja |
---|
| 29 | Errorパッケージはふたつのインターフェースを提供します。まず、 |
---|
| 30 | Errorは例外を扱うための手続き型インターフェースを提供します。 |
---|
| 31 | またErrorは、throw したり、あとでcatchしたり、もしくは単に |
---|
| 32 | recordしたりするための、エラーや例外のベースクラスとなること |
---|
| 33 | ができます。 |
---|
| 34 | |
---|
| 35 | Errorクラスのエラーを直接throwするべきではありません。Errorの |
---|
| 36 | サブクラスを使ってエラーを投げるようにしてください。 |
---|
| 37 | |
---|
| 38 | %prep |
---|
| 39 | %setup -q -n Error-%{pkgver} |
---|
| 40 | |
---|
| 41 | %build |
---|
| 42 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 43 | make |
---|
| 44 | |
---|
| 45 | %check |
---|
| 46 | make test |
---|
| 47 | |
---|
| 48 | %clean |
---|
| 49 | rm -rf %{buildroot} |
---|
| 50 | |
---|
| 51 | %install |
---|
| 52 | rm -rf %{buildroot} |
---|
| 53 | make DESTDIR=%{buildroot} install |
---|
| 54 | |
---|
| 55 | find %{buildroot}%{_prefix} -type f -print | |
---|
| 56 | sed "s@^%{buildroot}@@g" | |
---|
| 57 | grep -v ^%{_mandir} | |
---|
| 58 | grep -v perllocal.pod | |
---|
| 59 | grep -v "\.packlist" > %{name}.files |
---|
| 60 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 61 | echo "ERROR: EMPTY FILE LIST" |
---|
| 62 | exit -1 |
---|
| 63 | fi |
---|
| 64 | |
---|
| 65 | %files -f %{name}.files |
---|
| 66 | %defattr(-,root,root) |
---|
| 67 | %doc README ChangeLog examples |
---|
[3121] | 68 | %dir %{perl_vendorlib}/Error |
---|
[521] | 69 | %{_mandir}/*/* |
---|
| 70 | |
---|
| 71 | %changelog |
---|
[3121] | 72 | * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 0.17-2 |
---|
| 73 | - updated to 0.17016 |
---|
| 74 | - add %%{perl_vendorlib}/Error directory in %%files |
---|
| 75 | |
---|
[521] | 76 | * Thu Aug 28 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-1vl5 |
---|
| 77 | - applied new versioning policy, spec in utf-8 |
---|
| 78 | - built with perl-5.10.0 |
---|
| 79 | |
---|
| 80 | * Tue Sep 25 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-0vl1 |
---|
| 81 | - updated to 0.17009 |
---|
| 82 | - changed Group to Development/Libraries |
---|
| 83 | - install module files to vendor_perl dir |
---|
| 84 | |
---|
| 85 | * Sat May 10 2003 IWAI Masaharu <iwai@alib.jp> 0.15-0vl1 |
---|
| 86 | - first build for Vine Linux |
---|