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