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