]> git.pld-linux.org Git - packages/perl-Log-Dispatch-Config.git/blob - 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
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "./Build test"
4 #
5 %define         pdir    Log
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
10 Version:        1.04
11 Release:        1
12 # same as perl
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
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
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.
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/*
This page took 0.066821 seconds and 4 git commands to generate.