]>
Commit | Line | Data |
---|---|---|
9a302047 | 1 | # |
beb2f428 | 2 | # Conditional build: |
5bff824a | 3 | %bcond_without tests # do not perform "make test" |
9a302047 | 4 | # |
bcd51169 | 5 | %define pdir Log |
6 | %define pnam Log4perl | |
bd5964d0 | 7 | Summary: Log::Log4perl Perl module - adds logging capabilities |
7489ed94 | 8 | Summary(pl.UTF-8): Moduł Perla Log::Log4perl - dostarczenie obsługi logowania |
64e5ba3a | 9 | Name: perl-Log-Log4perl |
df39ecb8 | 10 | Version: 1.46 |
6f002d3e | 11 | Release: 1 |
6bf7ed57 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
94118236 | 14 | Group: Development/Languages/Perl |
210c786e | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
df39ecb8 MK |
16 | # Source0-md5: d247d2327d7f32dca09cbeb51a953fc5 |
17 | URL: http://mschilli.github.io/log4perl/ | |
f5e866dd | 18 | %if %{with tests} |
8c17d7be JB |
19 | BuildRequires: perl(File::Path) >= 2.06_06 |
20 | BuildRequires: perl(File::Spec) >= 0.82 | |
21 | BuildRequires: perl-DBD-CSV >= 0.33 | |
22 | BuildRequires: perl-DBD-SQLite | |
23 | BuildRequires: perl-DBI >= 1.607 | |
94118236 | 24 | BuildRequires: perl-Log-Dispatch |
8c17d7be JB |
25 | #BuildRequires: perl-Log-Dispatch-FileRotate >= 1.10 |
26 | BuildRequires: perl-SQL-Statement >= 1.20 | |
27 | BuildRequires: perl-Test-Simple >= 0.45 | |
f5e866dd | 28 | BuildRequires: perl-XML-DOM >= 1.43 |
8c17d7be | 29 | #BuildRequires: perl-rrdtool |
8304e994 | 30 | %endif |
7e5bf2d2 | 31 | BuildRequires: perl-devel >= 1:5.8.0 |
beb2f428 | 32 | BuildRequires: rpm-perlprov >= 4.1-13 |
8c17d7be | 33 | BuildRequires: rpmbuild(macros) >= 1.663 |
f5e866dd | 34 | Requires: perl-XML-DOM >= 1.43 |
94118236 | 35 | BuildArch: noarch |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
94118236 | 37 | |
8304e994 | 38 | # used conditionally |
8c17d7be | 39 | %define _noautoreq_perl XML::DOM LWP::UserAgent Log::Dispatch::FileRotate Log::Log4Perl.* RRDs |
8304e994 | 40 | |
94118236 | 41 | %description |
42 | Log::Log4perl lets you remote-control and fine-tune the logging | |
43 | behaviour of your system from the outside. It implements the widely | |
44 | popular (Java-based) Log4j logging package in pure Perl. | |
45 | ||
94fc159a JR |
46 | %description -l pl.UTF-8 |
47 | Log::Log4perl pozwala na zdalne sterowanie i szczegółowe dostosowanie | |
48 | sposobu logowania z zewnątrz. Jest implementacją popularnego (opartego | |
49 | na Javie) pakietu logującego Log4j w czystym Perlu. | |
7cecb05f | 50 | |
94118236 | 51 | %prep |
52 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
53 | ||
54 | %build | |
55 | %{__perl} Makefile.PL < /dev/null \ | |
8a515a6b | 56 | INSTALLDIRS=vendor |
94118236 | 57 | %{__make} |
beb2f428 | 58 | |
f5e866dd | 59 | %{?with_tests:%{__make} test} |
94118236 | 60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
9a302047 | 64 | %{__make} install \ |
65 | DESTDIR=$RPM_BUILD_ROOT | |
94118236 | 66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
8c17d7be | 72 | %doc Changes LICENSE |
b039f8fe | 73 | %attr(755,root,root) %{_bindir}/l4p-tmpl |
8c17d7be JB |
74 | %{perl_vendorlib}/Log/Log4perl.pm |
75 | %{perl_vendorlib}/Log/Log4perl | |
76 | %{_mandir}/man1/l4p-tmpl.1p* | |
77 | %{_mandir}/man3/Log::Log4perl*.3pm* |