perl-Error-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Summary: Error/exception handling in an OO-ish way with Perl
  2. Summary(ja): エラーや例外をオブジェクト指向的に扱う Perl モジュール
  3. Name: perl-Error
  4. Version: 0.17029
  5. Release: 1%{?_dist_release}
  6. Group: programming
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: Aristic and GPL
  10. URL: https://metacpan.org/pod/Error
  11. Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Error-%{version}.tar.gz
  12. BuildArch: noarch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: perl >= 2:5.34.0
  15. Requires: perl >= 2:5.34.0
  16. %description
  17. The Error package provides two interfaces. Firstly Error provides
  18. a procedural interface to exception handling. Secondly Error is a
  19. base class for errors/exceptions that can either be thrown, for
  20. subsequent catch, or can simply be recorded.
  21. Errors in the class Error should not be thrown directly, but the
  22. user should throw errors from a sub-class of Error
  23. %description -l ja
  24. Errorパッケージはふたつのインターフェースを提供します。まず、
  25. Errorは例外を扱うための手続き型インターフェースを提供します。
  26. またErrorは、throw したり、あとでcatchしたり、もしくは単に
  27. recordしたりするための、エラーや例外のベースクラスとなること
  28. ができます。
  29. Errorクラスのエラーを直接throwするべきではありません。Errorの
  30. サブクラスを使ってエラーを投げるようにしてください。
  31. %prep
  32. %setup -q -n Error-%{version}
  33. %build
  34. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
  35. make
  36. %install
  37. rm -rf %{buildroot}
  38. make DESTDIR=%{buildroot} install
  39. %{_fixperms} $RPM_BUILD_ROOT/*
  40. %check
  41. make test
  42. %clean
  43. rm -rf %{buildroot}
  44. %files
  45. %defattr(-,root,root)
  46. %license LICENSE
  47. %doc README ChangeLog examples
  48. %{perl_vendorlib}/Error*
  49. %{_mandir}/*/*
  50. %changelog
  51. * Thu Nov 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.17029-1
  52. - new upstream release.
  53. - built with perl-5.34.0.
  54. * Thu Jul 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.17022-1
  55. - new upstream release.
  56. - applied versioning presented by upstream.
  57. * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 0.17-2
  58. - updated to 0.17016
  59. - add %%{perl_vendorlib}/Error directory in %%files
  60. * Thu Aug 28 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-1vl5
  61. - applied new versioning policy, spec in utf-8
  62. - built with perl-5.10.0
  63. * Tue Sep 25 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-0vl1
  64. - updated to 0.17009
  65. - changed Group to Development/Libraries
  66. - install module files to vendor_perl dir
  67. * Sat May 10 2003 IWAI Masaharu <iwai@alib.jp> 0.15-0vl1
  68. - first build for Vine Linux