]>
Commit | Line | Data |
---|---|---|
e95b98d3 MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
e95b98d3 MP |
5 | %define pdir POE |
6 | %define pnam Component-Logger | |
1a1f295d | 7 | Summary: POE::Component::Logger - a POE logging class |
5722991d | 8 | Summary(pl.UTF-8): POE::Component::Logger - klasa logująca dla POE |
e95b98d3 MP |
9 | Name: perl-POE-Component-Logger |
10 | Version: 1.00 | |
01ba2930 | 11 | Release: 1 |
1a1f295d JB |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
e95b98d3 MP |
14 | Group: Development/Languages/Perl |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
1a1f295d JB |
16 | # Source0-md5: b36cfad2d2d446103cbcf671270681ff |
17 | URL: http://poe.perl.org/ | |
18 | BuildRequires: perl-POE | |
e95b98d3 MP |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
e95b98d3 MP |
21 | %if %{with tests} |
22 | BuildRequires: perl-Log-Dispatch-Config | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
e95b98d3 | 27 | %description |
1a1f295d JB |
28 | A highly flexible logger component for POE that uses Log::Dispatch and |
29 | Log::Dispatch::Config for ultimate flexibility and power. | |
30 | ||
ddf42692 JR |
31 | %description -l pl.UTF-8 |
32 | Bardzo elastyczny komponent logujący dla POE, używający Log::Dispatch | |
33 | i Log::Dispatch::Config dla maksymalnej elastyczności i mocy. | |
e95b98d3 MP |
34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
39 | %{__perl} Makefile.PL \ | |
40 | INSTALLDIRS=vendor | |
41 | ||
42 | %{__make} | |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes README | |
58 | %{perl_vendorlib}/POE/Component/Logger.pm | |
59 | %{_mandir}/man3/* |