-
Notifications
You must be signed in to change notification settings - Fork 0
/
Log-Dispatch.spec
52 lines (40 loc) · 1.34 KB
/
Log-Dispatch.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
%include perl-header.spec
Summary: Log-Dispatch
Name: perl-module-Log-Dispatch
Version: 2.06
Release: 1
Group: System Environment/Base
Copyright: GPL/Artistic
Source: Log-Dispatch-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-root
Requires: perl
BuildRequires: perl
Requires: perl-module-Module-Build >= 0.18-1
BuildRequires: perl-module-Module-Build >= 0.18-1
%description
Log::Dispatch is a suite of OO modules for logging messages to
multiple outputs, each of which can have a minimum and maximum log
level. It is designed to be easily subclassed, both for creating a
new dispatcher object and particularly for creating new outputs.
It also allows both global (dispatcher level) and local (logging
object) message formatting callbacks which allows greater flexibility
and should reduce the need for subclassing.
Subclassing is only needed to send a message to a different output,
not to change the message format.
Please see the Log::Dispatch documentation for more details.
%prep
%setup -q -n Log-Dispatch-%{version}
%build
%{pbuild}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{perl_prefix}
%{pbuild_install}
rm -f `/usr/local/gnu/bin/find $RPM_BUILD_ROOT -iname perllocal.pod`
rm -f $RPM_BUILD_ROOT/%{global_perl_arch}/perllocal.pod
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,bin,bin)
%doc README Changes LICENSE
%{site_perl}/Log/*