2007-01-15 14:31:17 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package perl-Mail-Mbox-MessageParser (Version 1.5000)
|
|
|
|
|
#
|
2008-02-22 00:44:07 +00:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 14:31:17 +00:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
|
#
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2008-02-22 00:44:07 +00:00
|
|
|
|
2007-01-15 14:31:17 +00:00
|
|
|
Name: perl-Mail-Mbox-MessageParser
|
|
|
|
|
BuildRequires: perl-FileHandle-Unget
|
|
|
|
|
Version: 1.5000
|
2008-02-22 00:44:07 +00:00
|
|
|
Release: 51
|
2007-01-15 14:31:17 +00:00
|
|
|
Summary: A fast and simple mbox folder reader
|
2008-02-22 00:44:07 +00:00
|
|
|
License: GPL v2 or later
|
|
|
|
|
Url: http://cpan.org/modules/by-module/Mail/
|
2007-01-15 14:31:17 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
|
Requires: perl-FileHandle-Unget
|
2008-02-22 00:44:07 +00:00
|
|
|
AutoReqProv: on
|
2007-01-15 14:31:17 +00:00
|
|
|
Source: Mail-Mbox-MessageParser-%{version}.tar.bz2
|
2008-02-22 00:44:07 +00:00
|
|
|
Patch: Mail-Mbox-MessageParser-1.5000-perl5.10.diff
|
2007-01-15 14:31:17 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Mail::Mbox::MessageParser is a feature-poor but very fast mbox parser.
|
|
|
|
|
It uses the best of three strategies for parsing a mailbox: either
|
|
|
|
|
using cached folder information, GNU grep, or highly optimized Perl.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
David Coppit <david@coppit.org>
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Mail-Mbox-MessageParser-%{version}
|
2008-02-22 00:44:07 +00:00
|
|
|
%patch
|
2007-01-15 14:31:17 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=site \
|
|
|
|
|
BZIP=/usr/bin/bzip2 BZIP2=/usr/bin/bzip2 DIFF=/usr/bin/diff GREP=/usr/bin/grep GZIP=/usr/bin/gzip TZIP=
|
|
|
|
|
make
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr (-, root, root)
|
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
|
%{perl_vendorlib}/Mail
|
|
|
|
|
%{perl_vendorarch}/auto/Mail
|
|
|
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
|
|
2008-02-22 00:44:07 +00:00
|
|
|
%changelog
|
|
|
|
|
* Thu Feb 21 2008 anicka@suse.cz
|
|
|
|
|
- fix build with perl 5.10
|
|
|
|
|
* Mon Jan 15 2007 anicka@suse.cz
|
2007-01-15 14:31:17 +00:00
|
|
|
- update to 1.5000
|
|
|
|
|
* The Cache and Grep implementations now detect when changes
|
|
|
|
|
have occurred to the file being parsed, and automatically
|
|
|
|
|
invalidate their cache values and revert to the Perl
|
|
|
|
|
implementation. NOTE: This works well for appending to
|
|
|
|
|
the mailbox, but undefined behavior occurs if modifications are
|
|
|
|
|
made to the mailbox at locations earlier than the current
|
|
|
|
|
position.
|
|
|
|
|
* Changed the reset test so that it doesn't create output with
|
|
|
|
|
inconsistent line endings in the case of a dos mailbox.
|
|
|
|
|
* Fixed a bug where occasionally the reading of the next email
|
|
|
|
|
will go into an infinite loop when reading from standard input.
|
|
|
|
|
* read_next_email now returns undef on end of file.
|
|
|
|
|
* Simplified code by removing end_of_file attribute of parser
|
|
|
|
|
objects.
|
2008-02-22 00:44:07 +00:00
|
|
|
* Thu Sep 14 2006 anicka@suse.cz
|
2007-01-15 14:31:17 +00:00
|
|
|
- update to 1.4005
|
|
|
|
|
* Fixed a bug where emails with a line near the end that start
|
|
|
|
|
with "From " would cause the Grep implementation to go into
|
|
|
|
|
an infinite loop.
|
|
|
|
|
* Fixed some minor coding style issues.
|
2008-02-22 00:44:07 +00:00
|
|
|
* Wed Jul 12 2006 anicka@suse.cz
|
2007-01-15 14:31:17 +00:00
|
|
|
- update to 1.4004
|
|
|
|
|
* Fixed a bug where, when emails are incomplete, the Perl parser
|
|
|
|
|
would cache incorrect information, causing the Cache
|
|
|
|
|
implementation to go into an infinite loop when it tried
|
|
|
|
|
to use the invalid information.
|
|
|
|
|
* Improved the behavior for multi-part emails that lack a valid
|
|
|
|
|
ending boundaries.
|
2008-02-22 00:44:07 +00:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-15 14:31:17 +00:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-02-22 00:44:07 +00:00
|
|
|
* Wed Aug 03 2005 cthiel@suse.de
|
2007-01-15 14:31:17 +00:00
|
|
|
- update to version 1.4001
|
2008-02-22 00:44:07 +00:00
|
|
|
* Sun Jul 31 2005 cthiel@suse.de
|
2007-01-15 14:31:17 +00:00
|
|
|
- update to version 1.4000
|
2008-02-22 00:44:07 +00:00
|
|
|
* Mon Jul 18 2005 rommel@suse.de
|
2007-01-15 14:31:17 +00:00
|
|
|
- update to version 1.2130 (requirement by grepmail)
|
2008-02-22 00:44:07 +00:00
|
|
|
* Tue Jun 22 2004 rommel@suse.de
|
2007-01-15 14:31:17 +00:00
|
|
|
- initial checkin
|