3 %bcond_without tests # do not perform "./Build test"
6 %define pnam Dispatch-Config
7 Summary: Log::Dispatch::Config - Log4j for Perl
8 Summary(pl.UTF-8): Log::Dispatch::Config - Log4j dla Perla
9 Name: perl-Log-Dispatch-Config
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: ac6f91b838743adb3a47cb09bf8defe5
17 URL: http://search.cpan.org/dist/Log-Dispatch-Config/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-AppConfig >= 1.52
22 BuildRequires: perl-IO-stringy
23 BuildRequires: perl-Log-Dispatch >= 2.00
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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
38 to log4j dla Perla, nie koniecznie zgodne ze wszystkimi API.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/Log/Dispatch/*