3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
8 Summary: Log::LogLite - class to help us create simple logs for our application
9 Summary(pl.UTF-8): Log::LogLite - klasa pomagająca tworzyć proste logi z aplikacji
10 Name: perl-Log-LogLite
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 67e72da51df7423c028b4dc0186f5f52
18 URL: http://search.cpan.org/dist/Log-LogLite/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 %if %{with autodeps} || %{with tests}
22 BuildRequires: perl-IO-LockedFile
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 In order to have a log we have first to create a Log::LogLite object.
29 The Log::LogLite object is created with a logging level. The default
30 logging level is 5. After the Log::LogLite object is created, each
31 call to the write method may write a new line in the log file. If the
32 level of the message is lower or equal to the logging level, the
33 message will be written to the log file. The format of the logging
34 messages can be controled by changing the template, and by defining a
35 default message. The class uses the IO::LockedFile class.
37 %description -l pl.UTF-8
38 W celu stworzenia logu trzeba najpierw utworzyć obiekt Log::LogLite.
39 Obiekt Log::LogLite tworzy się z poziomem logowania. Domyślny poziom
40 logowania to 5. Po utworzeniu obiektu Log::LogLite każde wywołanie
41 metody write może zapisać nową linię w pliku logu. Jeśli poziom
42 komunikatu jest mniejszy lub równy poziomowi logowania, komunikat jest
43 zapisywany do pliku. Format komunikatów logujących może być sterowany
44 poprzez zmianę szablonu i definiowanie domyślnego komunikatu. Ta klasa
45 używa klasy IO::LockedFile.
48 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} Makefile.PL \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
60 %{__make} pure_install \
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/Log/*.pm