Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > media > contrib-release-src > by-pkgid > 5916258da3161f52cdb16f8673e96665 > files > 2

perl-Mail-Mbox-MessageParser-1.5000-1mdv2008.0.src.rpm

%define	module	Mail-Mbox-MessageParser
%define	name	perl-%{module}
%define	version	1.5000
%define	release	%mkrel 1

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	A fast and simple mbox folder reader 
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Mail/%{module}-%{version}.tar.bz2
%if %{mdkversion} < 1010
Buildrequires:	perl-devel
%endif
BuildRequires:	perl(FileHandle::Unget)
BuildArch:	noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
This module implements a fast but simple mbox folder reader. One of three
implementations (Cache, Grep, Perl) will be used depending on the wishes of the
user and the system configuration. The first implementation is a cached-based
one which stores email information about mailboxes on the file system.
Subsequent accesses will be faster because no analysis of the mailbox will be
needed. The second implementation is one based on GNU grep, and is
significantly faster than the Perl version for mailboxes which contain very
large (10MB) emails. The final implementation is a fast Perl-based one which
should always be applicable.

The Cache implementation is about 6 times faster than the standard Perl
implementation. The Grep implementation is about 4 times faster than the
standard Perl implementation. If you have GNU grep, it's best to enable both
the Cache and Grep implementations. If the cache information is available,
you'll get very fast speeds. Otherwise, you'll take about a 1/3 performance hit
when the Grep version is used instead.

The overriding requirement for this module is speed. If you wish more
sophisticated parsing, use Mail::MboxParser (which is based on this module) or
Mail::Box.

%prep
%setup -q -n %{module}-%{version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
%{__make} test

%install
rm -rf %{buildroot}
%makeinstall_std

%clean 
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES LICENSE README
%{perl_vendorlib}/Mail
%{_mandir}/man3/*



%changelog
* Wed May 02 2007 Olivier Thauvin <nanardon@mandriva.org> 1.5000-1mdv2008.0
+ Revision: 20264
- 1.5000

  + Mandriva <devel@mandriva.com>


* Mon Aug 28 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.4005-1mdv2007.0
- New version 1.4005

* Thu Jun 01 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.4003-1mdv2007.0
- New release 1.4003
- this is a noarch package

* Wed May 03 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.4002-2mdk
- Fix According to perl Policy
	- BuildRequires
	- Source URL

* Mon Mar 06 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.4002-1mdk
- New release 1.4002

* Wed Dec 14 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.4001-2mdk
- spec cleanup
- don't ship empty directories
- %%mkrel
- better summary and description

* Thu Aug 18 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.4001-1mdk
- New release 1.4001

* Sun Jul 10 2005 Oden Eriksson <oeriksson@mandriva.com> 1.4000-1mdk
- initial Mandriva package