]> git.pld-linux.org Git - packages/perl-Log-LogLite.git/blame - perl-Log-LogLite.spec
- tabs in preamble
[packages/perl-Log-LogLite.git] / perl-Log-LogLite.spec
CommitLineData
5447f5a7
ER
1#
2# Conditional build:
3%bcond_without autodeps # don't BR packages needed only for resolving deps
4%bcond_without tests # do not perform "make test"
5#
6%include /usr/lib/rpm/macros.perl
7%define pdir Log
8%define pnam LogLite
9c85e991 9Summary: Log::LogLite - class to help us create simple logs for our application
dac46115 10Summary(pl.UTF-8): Log::LogLite - klasa pomagająca tworzyć proste logi z aplikacji
5447f5a7
ER
11Name: perl-Log-LogLite
12Version: 0.82
13Release: 0.1
14# same as perl
15License: GPL v1+ or Artistic
16Group: Development/Languages/Perl
17Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18# Source0-md5: 67e72da51df7423c028b4dc0186f5f52
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with autodeps} || %{with tests}
22BuildRequires: perl-IO-LockedFile
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
9c85e991
JB
28In order to have a log we have first to create a Log::LogLite object.
29The Log::LogLite object is created with a logging level. The default
30logging level is 5. After the Log::LogLite object is created, each
31call to the write method may write a new line in the log file. If the
32level of the message is lower or equal to the logging level, the
33message will be written to the log file. The format of the logging
34messages can be controled by changing the template, and by defining a
35default message. The class uses the IO::LockedFile class.
36
4710351a
JR
37%description -l pl.UTF-8
38W celu stworzenia logu trzeba najpierw utworzyć obiekt Log::LogLite.
39Obiekt Log::LogLite tworzy się z poziomem logowania. Domyślny poziom
40logowania to 5. Po utworzeniu obiektu Log::LogLite każde wywołanie
41metody write może zapisać nową linię w pliku logu. Jeśli poziom
42komunikatu jest mniejszy lub równy poziomowi logowania, komunikat jest
43zapisywany do pliku. Format komunikatów logujących może być sterowany
44poprzez zmianę szablonu i definiowanie domyślnego komunikatu. Ta klasa
45używa klasy IO::LockedFile.
5447f5a7
ER
46
47%prep
48%setup -q -n %{pdir}-%{pnam}-%{version}
49
50%build
51%{__perl} Makefile.PL \
52 INSTALLDIRS=vendor
53%{__make}
54
55%{?with_tests:%{__make} test}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
60%{__make} pure_install \
61 DESTDIR=$RPM_BUILD_ROOT
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
68%doc Changes README
69%{perl_vendorlib}/Log/*.pm
70%{_mandir}/man3/*
This page took 0.046897 seconds and 4 git commands to generate.