perl-Class-ErrorHandler-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. %define module Class-ErrorHandler
  2. %define name perl-%{module}
  3. %define version 0.03
  4. %define release 1%{_dist_release}
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Summary: Base class for error handling
  9. Summary(ja): Perl 上でエラーを扱うための基本クラス
  10. Group: Development/Libraries
  11. License: GPL or Artistic
  12. URL: http://search.cpan.org/dist/%{module}/
  13. Source: http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/%{module}-%{version}.tar.gz
  14. BuildArch: noarch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: perl(ExtUtils::MakeMaker)
  17. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. Class::ErrorHandler provides an error-handling mechanism that's
  22. generic enough to be used as the base class for a variety of OO classes.
  23. Subclasses inherit its two error-handling methods, error and errstr,
  24. to communicate error messages back to the calling program.
  25. #'
  26. %prep
  27. %setup -q -n %{module}-%{version}
  28. %build
  29. %{__perl} ./Build.PL installdirs=vendor
  30. ./Build
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. ./Build install destdir=$RPM_BUILD_ROOT
  34. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  35. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null
  36. %{_fixperms} $RPM_BUILD_ROOT
  37. %clean
  38. rm -rf $RPM_BUILD_ROOT
  39. %check
  40. ./Build test
  41. %files
  42. %defattr(-,root,root)
  43. %doc Changes LICENSE README.md
  44. %{_mandir}/man3*/*
  45. %{perl_vendorlib}/Class/*
  46. %changelog
  47. * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.03-1
  48. - updated to 0.03
  49. - built with perl 5.16.3
  50. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.01-3
  51. - rebuild with perl-5.12.3
  52. * Thu Mar 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.01-2vl5
  53. - changed Group to Development/Libraries
  54. - added Japanese summary
  55. * Fri May 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-1vl5
  56. - rebuild with perl 5.10
  57. - new versioning policy
  58. * Mon Mar 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl1
  59. - rebuild for VineSeed
  60. * Sun Mar 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.43
  61. - rebuild to release for VinePlus 4.2
  62. * Tue Mar 04 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.42
  63. - built for Vine 4.2 (testing)