e9e9672
Summary:	A fast and simple mbox folder reader
e9e9672
Name:		perl-Mail-Mbox-MessageParser
b7f08ab
Version:	1.5002
19b931c
Release:	2%{?dist}
0bb4a6b
License:	GPL+
e9e9672
Group:		Development/Libraries
4085633
Url:		http://search.cpan.org/dist/Mail-Mbox-MessageParser/
4085633
Source0:	http://search.cpan.org/CPAN/authors/id/D/DC/DCOPPIT/Mail-Mbox-MessageParser-%{version}.tar.gz
e9e9672
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e9e9672
BuildArch:	noarch
64cb6f0
Requires:	grep, gzip, bzip2, /usr/bin/diff
e9e9672
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
b52ea36
BuildRequires:	grep, gzip, bzip2, /usr/bin/diff
b52ea36
BuildRequires:	perl(ExtUtils::MakeMaker), perl(FileHandle::Unget)
b7f08ab
BuildRequires:	perl(Test::More), perl(Text::Diff)
e9e9672
e9e9672
%description
e9e9672
Mail::Mbox::MessageParser is a feature-poor but very fast mbox parser. It uses
e9e9672
the best of three strategies for parsing a mailbox: either using cached folder
e9e9672
information, GNU grep, or highly optimized Perl.
e9e9672
e9e9672
%prep
e9e9672
%setup -q -n Mail-Mbox-MessageParser-%{version}
e9e9672
e9e9672
%build
e9e9672
%{__perl} Makefile.PL INSTALLDIRS=vendor \
64cb6f0
	DIFF=/usr/bin/diff \
e9e9672
	BZIP=%{__bzip2} \
e9e9672
	BZIP2=%{__bzip2} \
e9e9672
	GREP=%{__grep} \
e9e9672
	GZIP=%{__gzip} \
e9e9672
	--default
e9e9672
%{__make} %{?_smp_mflags}
e9e9672
e9e9672
%check
e9e9672
%{__make} test
e9e9672
e9e9672
%install
e9e9672
%{__rm} -rf %{buildroot}
e9e9672
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
64cb6f0
/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
b7f08ab
/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null
e9e9672
%{__chmod} -R u+w %{buildroot}/*
e9e9672
e9e9672
%clean
e9e9672
%{__rm} -rf %{buildroot}
e9e9672
e9e9672
%files
5c12011
%defattr(-,root,root,-)
e9e9672
%doc README CHANGES anonymize_mailbox LICENSE
e9e9672
%{perl_vendorlib}/Mail/
b7f08ab
%{_mandir}/man3/Mail::Mbox::MessageParser.3pm*
b7f08ab
%{_mandir}/man3/Mail::Mbox::MessageParser::Cache.3pm*
b7f08ab
%{_mandir}/man3/Mail::Mbox::MessageParser::Grep.3pm*
b7f08ab
%{_mandir}/man3/Mail::Mbox::MessageParser::MetaInfo.3pm*
b7f08ab
%{_mandir}/man3/Mail::Mbox::MessageParser::Perl.3pm*
e9e9672
e9e9672
%changelog
19b931c
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.5002-2
19b931c
- rebuild against perl 5.10.1
19b931c
b7f08ab
* Wed Sep  2 2009 Paul Howarth <paul@city-fan.org> 1.5002-1 
b7f08ab
- Update to 1.5002 
b7f08ab
  - perl 5.10 patch upstreamed 
b7f08ab
  - disable the grep interface, known to be buggy 
b7f08ab
  - fix infinite loop in emails of less than 200 characters (CPAN RT#33493) 
b7f08ab
  - update Makefile.PL for versions of Module::Install > 0.88 
b7f08ab
  - instead of returning an error for an empty mailbox, a valid mailbox is 
b7f08ab
    returned that immediately fails the end_of_mailbox check (CPAN RT#43665) 
b7f08ab
  - fix missing "m" modifier issue exposed by Perl 5.10 (CPAN RT#33004) 
b7f08ab
  - added some debugging information for the "cache data not validated" error 
b7f08ab
  - fix an off-by-one error that could cause warnings about undefined values 
b7f08ab
- BuildRequire perl(Test::More) and perl(Text::Diff) 
b7f08ab
67cface
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-8
67cface
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
67cface
5f77608
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-7
5f77608
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5f77608
4085633
* Thu Nov 20 2008 Paul Howarth <paul@city-fan.org> 1.5000-6
4085633
- Project upstream has moved from Sourceforge to Google Code but Google Code
4085633
  site is content-free so use standard CPAN URLs instead
4085633
567fe5a
* Sat Feb  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.5000-5
4085633
- Fix for perl 5.10 (Andreas K├Ânig)
567fe5a
58a0604
* Thu Feb  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.5000-4
4085633
- Rebuild for new perl
58a0604
0bb4a6b
* Mon Aug 13 2007 Paul Howarth <paul@city-fan.org> 1.5000-3
0bb4a6b
- Clarify license as GPL (unspecified version)
0bb4a6b
db7084c
* Thu Mar  8 2007 Paul Howarth <paul@city-fan.org> 1.5000-2
b52ea36
- Buildrequire perl(ExtUtils::MakeMaker)
db7084c
5c12011
* Tue Feb 27 2007 Paul Howarth <paul@city-fan.org> 1.5000-1
5c12011
- Update to 1.5000
5c12011
- Fix argument order for find with -depth
5c12011
- Permission fixes no longer needed in %%prep
5c12011
- Buildreq various utils for running test suite
5c12011
3e9b2a1
* Fri Aug 25 2006 Paul Howarth <paul@city-fan.org> 1.4005-1
3e9b2a1
- Update to 1.4005
3e9b2a1
3e770ad
* Wed Jul 12 2006 Paul Howarth <paul@city-fan.org> 1.4004-1
3e770ad
- Update to 1.4004
3e770ad
3bd0994
* Mon May 22 2006 Paul Howarth <paul@city-fan.org> 1.4003-1
3bd0994
- Update to 1.4003
3bd0994
2283da6
* Thu Feb 16 2006 Paul Howarth <paul@city-fan.org> 1.4002-2
2283da6
- Rebuild
2283da6
64cb6f0
* Fri Feb 10 2006 Paul Howarth <paul@city-fan.org> 1.4002-1
64cb6f0
- Update to 1.4002
64cb6f0
- Don't use macros in build-time command paths, hardcode them instead
64cb6f0
- Add dependency on /usr/bin/diff
64cb6f0
- Tzip support removed upstream
64cb6f0
e9e9672
* Wed Oct 12 2005 Paul Howarth <paul@city-fan.org> 1.4001-1
e9e9672
- Fedora Extras submission