forked from pool/perl-Mail-Mbox-MessageParser
		
	
		
			
				
	
	
		
			107 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			107 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
#
 | 
						|
# spec file for package perl-Mail-Mbox-MessageParser (Version 1.5000)
 | 
						|
#
 | 
						|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
 | 
						|
# 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
 | 
						|
 | 
						|
 | 
						|
Name:           perl-Mail-Mbox-MessageParser
 | 
						|
BuildRequires:  perl-FileHandle-Unget
 | 
						|
Version:        1.5000
 | 
						|
Release:        51
 | 
						|
Summary:        A fast and simple mbox folder reader
 | 
						|
License:        GPL v2 or later
 | 
						|
Url:            http://cpan.org/modules/by-module/Mail/
 | 
						|
Group:          Development/Libraries/Perl
 | 
						|
Requires:       perl-FileHandle-Unget
 | 
						|
AutoReqProv:    on
 | 
						|
Source:         Mail-Mbox-MessageParser-%{version}.tar.bz2
 | 
						|
Patch:          Mail-Mbox-MessageParser-1.5000-perl5.10.diff
 | 
						|
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}
 | 
						|
%patch
 | 
						|
 | 
						|
%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}
 | 
						|
 | 
						|
%changelog
 | 
						|
* Thu Feb 21 2008 anicka@suse.cz
 | 
						|
- fix build with perl 5.10
 | 
						|
* Mon Jan 15 2007 anicka@suse.cz
 | 
						|
- 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.
 | 
						|
* Thu Sep 14 2006 anicka@suse.cz
 | 
						|
- 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.
 | 
						|
* Wed Jul 12 2006 anicka@suse.cz
 | 
						|
- 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.
 | 
						|
* Wed Jan 25 2006 mls@suse.de
 | 
						|
- converted neededforbuild to BuildRequires
 | 
						|
* Wed Aug 03 2005 cthiel@suse.de
 | 
						|
- update to version 1.4001
 | 
						|
* Sun Jul 31 2005 cthiel@suse.de
 | 
						|
- update to version 1.4000
 | 
						|
* Mon Jul 18 2005 rommel@suse.de
 | 
						|
- update to version 1.2130 (requirement by grepmail)
 | 
						|
* Tue Jun 22 2004 rommel@suse.de
 | 
						|
- initial checkin
 |