perl-Class-ErrorHandler-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. %define module Class-ErrorHandler
  2. %define name perl-%{module}
  3. %define version 0.01
  4. %define release 2%{_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. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. Class::ErrorHandler provides an error-handling mechanism that's
  20. generic enough to be used as the base class for a variety of OO classes.
  21. Subclasses inherit its two error-handling methods, error and errstr,
  22. to communicate error messages back to the calling program.
  23. #'
  24. %prep
  25. %setup -q -n %{module}-%{version}
  26. %build
  27. CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor"
  28. %{__make}
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. %makeinstall DESTDIR=$RPM_BUILD_ROOT
  32. rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
  33. # rm -rf %{buildroot}%{perl_vendorarch}
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %check
  37. %{__make} test
  38. %files
  39. %defattr(-,root,root)
  40. %doc README Changes
  41. %{_mandir}/man3*/*
  42. %{perl_vendorlib}/Class/*
  43. %changelog
  44. * Thu Mar 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.01-2vl5
  45. - changed Group to Development/Libraries
  46. - added Japanese summary
  47. * Fri May 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-1vl5
  48. - rebuild with perl 5.10
  49. - new versioning policy
  50. * Mon Mar 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl1
  51. - rebuild for VineSeed
  52. * Sun Mar 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.43
  53. - rebuild to release for VinePlus 4.2
  54. * Tue Mar 04 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.42
  55. - built for Vine 4.2 (testing)