SPECS: perl-Log-LogLite.spec (NEW) - new

glen glen at pld-linux.org
Sun Oct 30 20:18:38 CET 2005


Author: glen                         Date: Sun Oct 30 19:18:38 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   perl-Log-LogLite.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Log-LogLite.spec
diff -u /dev/null SPECS/perl-Log-LogLite.spec:1.1
--- /dev/null	Sun Oct 30 20:18:38 2005
+++ SPECS/perl-Log-LogLite.spec	Sun Oct 30 20:18:31 2005
@@ -0,0 +1,70 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	autodeps	# don't BR packages needed only for resolving deps
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Log
+%define	pnam	LogLite
+Summary:	Log::LogLite - The C<Log::LogLite> class helps us create simple logs for our application.
+Name:		perl-Log-LogLite
+Version:	0.82
+Release:	0.1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	67e72da51df7423c028b4dc0186f5f52
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+BuildRequires:	perl-IO-LockedFile
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+In order to have a log we have first to create a C<Log::LogLite> object. 
+The c<Log::LogLite> object is created with a logging level. The default 
+logging level is 5. After the C<Log::LogLite> object is created, each call 
+to the C<write> method may write a new line in the log file. If the level
+of the message is lower or equal to the logging level, the message will 
+be written to the log file. The format of the logging messages can be 
+controled by changing the template, and by defining a default message.
+The class uses the IO::LockedFile class.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Log/*.pm
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/10/30 19:18:31  glen
+- new
+
================================================================



More information about the pld-cvs-commit mailing list