]> git.pld-linux.org Git - packages/perl-Log-Dispatch-Config.git/blame - perl-Log-Dispatch-Config.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Log-Dispatch-Config.git] / perl-Log-Dispatch-Config.spec
CommitLineData
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 7Summary: Log::Dispatch::Config - Log4j for Perl
915e1331 8Summary(pl.UTF-8): Log::Dispatch::Config - Log4j dla Perla
e977dbe9 9Name: perl-Log-Dispatch-Config
8a34fce3 10Version: 1.04
1fe49ef7 11Release: 1
e977dbe9 12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
ec576d4a 15Source0: http://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz
8a34fce3 16# Source0-md5: ac6f91b838743adb3a47cb09bf8defe5
ec576d4a 17URL: http://search.cpan.org/dist/Log-Dispatch-Config/
2c512d32 18BuildRequires: perl-devel >= 1:5.8.0
e977dbe9 19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-AppConfig >= 1.52
22BuildRequires: perl-IO-stringy
23BuildRequires: perl-Log-Dispatch >= 2.00
24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Log::Dispatch::Config is a subclass of Log::Dispatch and provides a
30way to configure Log::Dispatch object with configuration file
31(default, in AppConfig format). I mean, this is log4j for Perl, not
32with all API compatibility though.
33
3e9cb3d5
JR
34%description -l pl.UTF-8
35Log::Dispatch::Config jest to podklasa Log::Dispatch udostępniająca
36metodę konfiguracji obiektu Log::Dispatch za pomocą pliku
37konfiguracyjnego (domyślnie w formacie AppConfig). Oznacza to, że jest
607a51cf 38to 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
51rm -rf $RPM_BUILD_ROOT
52
53%{__make} install \
54 DESTDIR=$RPM_BUILD_ROOT
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
61%doc Changes
62%{perl_vendorlib}/Log/Dispatch/*
63%{_mandir}/man3/*
This page took 0.092538 seconds and 4 git commands to generate.