]>
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 | |
8 | Summary: perl(POE::Component::Logger) | |
9 | Name: perl-POE-Component-Logger | |
10 | Version: 1.00 | |
11 | Release: 0.1 | |
12 | License: same as perl | |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
15 | URL: poe.perl.org | |
16 | BuildRequires: perl-devel >= 1:5.8.0 | |
17 | BuildRequires: rpm-perlprov >= 4.1-13 | |
18 | BuildRequires: perl-POE | |
19 | %if %{with tests} | |
20 | BuildRequires: perl-Log-Dispatch-Config | |
21 | %endif | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %define _noautoreq 'perl(anything_fake_or_conditional)' | |
26 | ||
27 | %description | |
28 | POE::Component::Logger, a poe logging class, uses Log::Dispatch::Config | |
29 | ||
30 | %prep | |
31 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
32 | ||
33 | %build | |
34 | %{__perl} Makefile.PL \ | |
35 | INSTALLDIRS=vendor | |
36 | ||
37 | %{__make} | |
38 | ||
39 | %{?with_tests:%{__make} test} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc Changes README | |
53 | %{perl_vendorlib}/POE/Component/Logger.pm | |
54 | %{_mandir}/man3/* |