]>
Commit | Line | Data |
---|---|---|
e977dbe9 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "./Build test" | |
4 | # | |
c1321356 | 5 | %define pdir Log |
6 | %define pnam Dispatch-Config | |
e977dbe9 | 7 | Summary: Log::Dispatch::Config - Log4j for Perl |
915e1331 | 8 | Summary(pl.UTF-8): Log::Dispatch::Config - Log4j dla Perla |
e977dbe9 | 9 | Name: perl-Log-Dispatch-Config |
8a34fce3 | 10 | Version: 1.04 |
1fe49ef7 | 11 | Release: 1 |
e977dbe9 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
ec576d4a | 15 | Source0: http://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz |
8a34fce3 | 16 | # Source0-md5: ac6f91b838743adb3a47cb09bf8defe5 |
ec576d4a | 17 | URL: http://search.cpan.org/dist/Log-Dispatch-Config/ |
2c512d32 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
e977dbe9 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | %if %{with tests} | |
21 | BuildRequires: perl-AppConfig >= 1.52 | |
22 | BuildRequires: perl-IO-stringy | |
23 | BuildRequires: perl-Log-Dispatch >= 2.00 | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Log::Dispatch::Config is a subclass of Log::Dispatch and provides a | |
30 | way to configure Log::Dispatch object with configuration file | |
31 | (default, in AppConfig format). I mean, this is log4j for Perl, not | |
32 | with all API compatibility though. | |
33 | ||
3e9cb3d5 JR |
34 | %description -l pl.UTF-8 |
35 | Log::Dispatch::Config jest to podklasa Log::Dispatch udostępniająca | |
36 | metodę konfiguracji obiektu Log::Dispatch za pomocą pliku | |
37 | konfiguracyjnego (domyślnie w formacie AppConfig). Oznacza to, że jest | |
607a51cf | 38 | to log4j dla Perla, nie koniecznie zgodne ze wszystkimi API. |
e977dbe9 | 39 | |
40 | %prep | |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | ||
43 | %build | |
44 | %{__perl} Makefile.PL \ | |
45 | INSTALLDIRS=vendor | |
46 | %{__make} | |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc Changes | |
62 | %{perl_vendorlib}/Log/Dispatch/* | |
63 | %{_mandir}/man3/* |