perl-Log-Dispatch-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. %define pkgname Log-Dispatch
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 2.68
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{pkgname}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: yasumichi
  14. Summary: Log::Dispatch - Dispatches messages to one or more outputs
  15. Summary(ja): Log::Dispatch - 1 つ以上の出力へのメッセージの急送
  16. # Dependency
  17. Requires: perl
  18. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  19. BuildRequires: perl
  20. %description
  21. This module manages a set of Log::Dispatch::* output objects that can be
  22. logged to via a unified interface.
  23. The idea is that you create a Log::Dispatch object and then add various
  24. logging objects to it (such as a file logger or screen logger). Then you
  25. call the log method of the dispatch object, which passes the message to each
  26. of the objects, which in turn decide whether or not to accept the message
  27. and what to do with it.
  28. This makes it possible to call single method and send a message to a log
  29. file, via email, to the screen, and anywhere else, all with very little code
  30. needed on your part, once the dispatching object has been created.
  31. %description -l ja
  32. このモジュールは、統一されたインターフェース経由でログを記録できる
  33. Log::Dispatch::* 出力オブジェクトのセットを管理します。
  34. このアイディアは、Log::Dispatch オブジェクトを作成し、(ファイルロガーや
  35. スクリーンロガーといった)さまざまなログ記録オブジェクトを追加します。
  36. それから、dispatch オブジェクトのメソッドを呼び出します。このメソッドは、
  37. メッセージをそれぞれのオブジェクトへ渡し、それぞれのオブジェクトはメッセージ
  38. を受理すべきかどうか決定します。
  39. これにより単一のメソッドを呼び出して一旦、dispatching オブジェクトが生成され
  40. たならば、ログファイル、E-メール経由、画面やその他すべてに僅かなコードで
  41. メッセージを送信できます。
  42. %prep
  43. %setup -q -n %{pkgname}-%{version}
  44. %build
  45. perl Makefile.PL
  46. %{__make}
  47. %install
  48. %{__rm} -rf ${RPM_BUILD_ROOT}
  49. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  50. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  51. sed "s@^$RPM_BUILD_ROOT@@g" |
  52. grep -v ^%{_mandir} |
  53. grep -v perllocal.pod |
  54. grep -v "\.packlist" > %{name}.files
  55. if [ "$(cat %{name}.files)X" = "X" ] ; then
  56. echo "ERROR: EMPTY FILE LIST"
  57. exit -1
  58. fi
  59. # remove unnecessary files.
  60. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  61. %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Log/Dispatch/.packlist
  62. %clean
  63. %{__rm} -rf ${RPM_BUILD_ROOT}
  64. %files -f %{name}.files
  65. %defattr(-,root,root)
  66. %license LICENSE
  67. %doc Changes README
  68. %doc %{_mandir}/man3/*
  69. %changelog
  70. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.68-1
  71. - new upstream release.
  72. - rebuilt with perl-5.26.
  73. * Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.41-1
  74. - update to 2.41
  75. * Sat Jan 21 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.29-1
  76. - initial build for Vine Linux