]>
Commit | Line | Data |
---|---|---|
8d992727 JB |
1 | # |
2 | # Conditional build: | |
5987ef31 | 3 | %bcond_without tests # do not perform "./Build test" |
3d6d4cda | 4 | # |
285eb83d | 5 | %include /usr/lib/rpm/macros.perl |
00b10aa5 | 6 | %define pdir Log |
7 | %define pnam Dispatch | |
c6d48287 | 8 | Summary: Log::Dispatch Perl module - dispatches messages to multiple Log::Dispatch::* objects |
6d0b8c57 | 9 | Summary(pl.UTF-8): Moduł Perla Log::Dispatch - wysyłanie komunikatów do wielu obiektów Log::Dispatch::* |
3b144bdf | 10 | Name: perl-Log-Dispatch |
c9b9d859 | 11 | Version: 2.20 |
2ccaa442 | 12 | Release: 1 |
2d4097a5 | 13 | License: GPL v1+ or Artistic |
285eb83d | 14 | Group: Development/Languages/Perl |
3d6d4cda | 15 | Source0: http://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz |
c9b9d859 | 16 | # Source0-md5: cef8b522b7b243a4696e33b6de22836b |
3d6d4cda | 17 | URL: http://search.cpan.org/dist/Log-Dispatch/ |
dff92c99 | 18 | BuildRequires: perl-Module-Build >= 0.20 |
8d992727 | 19 | BuildRequires: perl-Params-Validate >= 0.15 |
058ce6d2 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
01bfc268 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
285eb83d | 22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
1cebfe8f JB |
25 | # optional |
26 | %define _noautoreq 'perl(Apache::Log)' 'perl(MIME::Lite)' 'perl(Mail::Send)' 'perl(Mail::Sender)' 'perl(Mail::Sendmail)' | |
27 | ||
285eb83d | 28 | %description |
8d992727 JB |
29 | Log::Dispatch is a suite of OO modules for logging messages to |
30 | multiple outputs, each of which can have a minimum and maximum log | |
31 | level. It is designed to be easily subclassed, both for creating a new | |
32 | dispatcher object and particularly for creating new outputs. | |
285eb83d | 33 | |
ca6a146c JR |
34 | %description -l pl.UTF-8 |
35 | Log::Dispatch to zestaw obiektowo zorientowanych modułów do logowania | |
36 | komunikatów na wiele wyjść, z których każde może mieć podany minimalny | |
37 | i maksymalny poziom logowania. Pakiet ten został zaprojektowany tak, | |
38 | by łatwo można było stworzyć klasy potomne, w celu tworzenia nowych | |
39 | obiektów wysyłających, jak i (szczególnie) nowych wyjść. | |
285eb83d | 40 | |
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
8d992727 | 45 | %{__perl} Build.PL \ |
dff92c99 | 46 | installdirs=vendor \ |
47 | destdir=$RPM_BUILD_ROOT | |
8d992727 JB |
48 | ./Build |
49 | ||
5987ef31 | 50 | %{?with_tests:./Build test} |
285eb83d | 51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
dff92c99 | 54 | ./Build install |
285eb83d | 55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
8d992727 | 61 | %doc Changes README |
3d6d4cda JB |
62 | %{perl_vendorlib}/Log/*.pm |
63 | %{perl_vendorlib}/Log/Dispatch | |
285eb83d | 64 | %{_mandir}/man3/* |