]> git.pld-linux.org Git - packages/perl-Log-Dispatch.git/blame - perl-Log-Dispatch.spec
- updated URL and macros
[packages/perl-Log-Dispatch.git] / perl-Log-Dispatch.spec
CommitLineData
8d992727
JB
1#
2# Conditional build:
2c3fba9d 3%bcond_without tests # unit tests
3d6d4cda 4#
00b10aa5 5%define pdir Log
6%define pnam Dispatch
c6d48287 7Summary: Log::Dispatch Perl module - dispatches messages to multiple Log::Dispatch::* objects
6d0b8c57 8Summary(pl.UTF-8): Moduł Perla Log::Dispatch - wysyłanie komunikatów do wielu obiektów Log::Dispatch::*
3b144bdf 9Name: perl-Log-Dispatch
e6b0f44c 10Version: 2.70
2ccaa442 11Release: 1
90d22ef1 12License: Artistic v2.0
285eb83d 13Group: Development/Languages/Perl
3d6d4cda 14Source0: http://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz
e6b0f44c 15# Source0-md5: 3369ffd45dc098ef6c74622ceee7ad74
2c3fba9d 16URL: https://metacpan.org/dist/Log-Dispatch
90d22ef1
JB
17BuildRequires: perl-Dist-CheckConflicts >= 0.02
18BuildRequires: perl-Params-Validate >= 1.03
058ce6d2 19BuildRequires: perl-devel >= 1:5.8.0
01bfc268 20BuildRequires: rpm-perlprov >= 4.1-13
2c3fba9d 21BuildRequires: rpmbuild(macros) >= 1.745
721b98b1
MK
22%if %{with tests}
23BuildRequires: perl-Devel-GlobalDestruction
90d22ef1 24BuildRequires: perl-Sys-Syslog >= 0.28
721b98b1 25BuildRequires: perl-Test-Fatal
2c3fba9d 26BuildRequires: perl-Test-Needs
721b98b1 27BuildRequires: perl-Test-Requires
90d22ef1 28BuildRequires: perl-Test-Simple >= 0.96
5a66b4b4 29BuildRequires: perl-Specio >= 0.32
721b98b1 30%endif
285eb83d 31BuildArch: noarch
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
1cebfe8f 34# optional
90d22ef1 35%define _noautoreq_perl MIME::Lite Mail::Send Mail::Sender Mail::Sendmail
1cebfe8f 36
285eb83d 37%description
8d992727
JB
38Log::Dispatch is a suite of OO modules for logging messages to
39multiple outputs, each of which can have a minimum and maximum log
40level. It is designed to be easily subclassed, both for creating a new
41dispatcher object and particularly for creating new outputs.
285eb83d 42
ca6a146c
JR
43%description -l pl.UTF-8
44Log::Dispatch to zestaw obiektowo zorientowanych modułów do logowania
45komunikatów na wiele wyjść, z których każde może mieć podany minimalny
46i maksymalny poziom logowania. Pakiet ten został zaprojektowany tak,
47by łatwo można było stworzyć klasy potomne, w celu tworzenia nowych
90d22ef1 48obiektów dyspozytorów, jak i (w szczególności) nowych wyjść.
285eb83d 49
50%prep
51%setup -q -n %{pdir}-%{pnam}-%{version}
52
53%build
0204c52e 54%{__perl} Makefile.PL \
90d22ef1
JB
55 INSTALLDIRS=vendor
56
0204c52e 57%{__make}
8d992727 58
0204c52e 59%{?with_tests:%{__make} test}
285eb83d 60
61%install
62rm -rf $RPM_BUILD_ROOT
90d22ef1
JB
63
64%{__make} install \
65 DESTDIR=$RPM_BUILD_ROOT
285eb83d 66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
f5fb490f 72%doc Changes README.md
90d22ef1 73%{perl_vendorlib}/Log/Dispatch.pm
3d6d4cda 74%{perl_vendorlib}/Log/Dispatch
90d22ef1 75%{_mandir}/man3/Log::Dispatch*.3pm*
This page took 0.236184 seconds and 4 git commands to generate.