1 | %define pkgver 0.17022 |
---|
2 | |
---|
3 | Summary: Error/exception handling in an OO-ish way with Perl |
---|
4 | Name: perl-Error |
---|
5 | Version: %{pkgver} |
---|
6 | Release: 1%{?_dist_release} |
---|
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 |
---|
68 | %dir %{perl_vendorlib}/Error |
---|
69 | %{_mandir}/*/* |
---|
70 | |
---|
71 | %changelog |
---|
72 | * Thu Jul 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.17022-1 |
---|
73 | - new upstream release. |
---|
74 | - applied versioning presented by upstream. |
---|
75 | |
---|
76 | * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 0.17-2 |
---|
77 | - updated to 0.17016 |
---|
78 | - add %%{perl_vendorlib}/Error directory in %%files |
---|
79 | |
---|
80 | * Thu Aug 28 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-1vl5 |
---|
81 | - applied new versioning policy, spec in utf-8 |
---|
82 | - built with perl-5.10.0 |
---|
83 | |
---|
84 | * Tue Sep 25 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-0vl1 |
---|
85 | - updated to 0.17009 |
---|
86 | - changed Group to Development/Libraries |
---|
87 | - install module files to vendor_perl dir |
---|
88 | |
---|
89 | * Sat May 10 2003 IWAI Masaharu <iwai@alib.jp> 0.15-0vl1 |
---|
90 | - first build for Vine Linux |
---|