e9e9672
Summary:	A fast and simple mbox folder reader
e9e9672
Name:		perl-Mail-Mbox-MessageParser
bad0fc3
Version:	1.5105
71448e8
Release:	9%{?dist}
fa7b2df
License:	GPLv2
fa7b2df
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
b4976bf
Source1:	perl-module-version-filter
866d6f4
Patch0:         Mail-Mbox-MessageParser-1.5105-Fix-building-on-Perl-without-dot-in-INC.patch
e9e9672
BuildArch:	noarch
e0dd7da
# Module Build
aa87cc4
BuildRequires:	coreutils
aa87cc4
BuildRequires:	findutils
fa7b2df
BuildRequires:	grep, gzip, bzip2, lzip >= 1.3, xz, /usr/bin/diff
aa87cc4
BuildRequires:	make
e0dd7da
BuildRequires:	perl
2d931be
BuildRequires:	perl-generators
e0dd7da
BuildRequires:	perl(Config)
e0dd7da
BuildRequires:	perl(Cwd)
db2f61d
BuildRequires:	perl(ExtUtils::MakeMaker)
e0dd7da
BuildRequires:	perl(ExtUtils::Manifest)
e0dd7da
BuildRequires:	perl(Fcntl)
e0dd7da
BuildRequires:	perl(File::Find)
e0dd7da
BuildRequires:	perl(FindBin)
fa7b2df
BuildRequires:	perl(URI::Escape)
e0dd7da
BuildRequires:	perl(warnings)
e0dd7da
# Module Runtime
e0dd7da
BuildRequires:	perl(Carp)
e0dd7da
BuildRequires:	perl(File::Spec)
e0dd7da
BuildRequires:	perl(File::Temp)
db2f61d
BuildRequires:	perl(FileHandle::Unget)
e0dd7da
BuildRequires:	perl(Storable)
e0dd7da
BuildRequires:	perl(strict)
e0dd7da
BuildRequires:	perl(vars)
e0dd7da
# Test Suite
e0dd7da
BuildRequires:	perl(Exporter)
fa7b2df
BuildRequires:	perl(File::Path) >= 2.08
9379931
BuildRequires:	perl(File::Slurp)
e0dd7da
BuildRequires:	perl(File::Spec::Functions)
e0dd7da
BuildRequires:	perl(FileHandle)
e0dd7da
BuildRequires:	perl(lib)
db2f61d
BuildRequires:	perl(Test::More)
db2f61d
BuildRequires:	perl(Text::Diff)
e0dd7da
# Optional Tests
e0dd7da
BuildRequires:	perl(Test::Pod) >= 1.00
e0dd7da
# Runtime
2c6750c
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
fa7b2df
Requires:	grep, gzip, bzip2, lzip >= 1.3, xz, /usr/bin/diff
e0dd7da
Requires:	perl(Storable)
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}
866d6f4
%patch0 -p1
e9e9672
b4976bf
# Auto provides aren't clever enough for what Mail::Mbox::MessageParser does
2c6750c
%if 0%{?__perllib_provides:1}
2c6750c
%global provfilt /bin/sh -c "%{__perllib_provides} | perl -n -s %{SOURCE1} -lib=%{_builddir}/%{buildsubdir}/lib"
aa87cc4
%global __perllib_provides %{provfilt}
2c6750c
%else
2c6750c
%global provfilt /bin/sh -c "%{__perl_provides} | perl -n -s %{SOURCE1} -lib=%{_builddir}/%{buildsubdir}/lib"
aa87cc4
%global __perl_provides %{provfilt}
2c6750c
%endif
b4976bf
e9e9672
%build
2c6750c
perl Makefile.PL INSTALLDIRS=vendor \
2c6750c
	BZIP=/usr/bin/bzip2 \
2c6750c
	BZIP2=/usr/bin/bzip2 \
9379931
	CAT=/bin/cat \
e0dd7da
	DIFF=/usr/bin/diff \
2c6750c
	GREP=/bin/grep \
2c6750c
	GZIP=/bin/gzip \
e0dd7da
	LZIP=/usr/bin/lzip \
e0dd7da
	XZ=/usr/bin/xz
2c6750c
make %{?_smp_mflags}
e9e9672
e9e9672
%install
e0dd7da
make pure_install DESTDIR=%{buildroot}
2c6750c
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
b4976bf
%{_fixperms} %{buildroot}
b4976bf
b4976bf
%check
2c6750c
make test
e9e9672
e9e9672
%files
e0dd7da
%if 0%{?_licensedir:1}
e0dd7da
%license LICENSE
e0dd7da
%else
e0dd7da
%doc LICENSE
e0dd7da
%endif
fa7b2df
%doc anonymize_mailbox CHANGES README TODO
e9e9672
%{perl_vendorlib}/Mail/
e0dd7da
%{_mandir}/man3/Mail::Mbox::MessageParser.3*
e0dd7da
%{_mandir}/man3/Mail::Mbox::MessageParser::Cache.3*
e0dd7da
%{_mandir}/man3/Mail::Mbox::MessageParser::Grep.3*
e0dd7da
%{_mandir}/man3/Mail::Mbox::MessageParser::MetaInfo.3*
e0dd7da
%{_mandir}/man3/Mail::Mbox::MessageParser::Perl.3*
e9e9672
e9e9672
%changelog
71448e8
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.5105-9
71448e8
- Perl 5.26 rebuild
71448e8
866d6f4
* Wed May 17 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.5105-8
866d6f4
- Fix building on Perl without '.' in @INC
866d6f4
6439955
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5105-7
6439955
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6439955
2c17cca
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.5105-6
2c17cca
- Perl 5.24 rebuild
2c17cca
f0a5a42
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5105-5
f0a5a42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f0a5a42
aa87cc4
* Tue Jan 26 2016 Paul Howarth <paul@city-fan.org> - 1.5105-4
aa87cc4
- Prefer %%global over %%define
aa87cc4
- Drop EL-5 build support as File::Path version is too old there
aa87cc4
4721897
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5105-3
4721897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4721897
e29af44
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.5105-2
e29af44
- Perl 5.22 rebuild
e29af44
bad0fc3
* Sun May  3 2015 Paul Howarth <paul@city-fan.org> - 1.5105-1
bad0fc3
- Update to 1.5105
bad0fc3
  - Prevent CPAN from indexing private-lib
bad0fc3
9379931
* Mon Apr 20 2015 Paul Howarth <paul@city-fan.org> - 1.5104-1
9379931
- Update to 1.5104
9379931
  - Add File::Path dependency for testing (CPAN RT#103482)
9379931
  - Don't install private Module::Install extension (CPAN RT#103482)
9379931
  - Clarify licensing terms
9379931
  - Move verbose testing to a private module, and implement it in a way that
9379931
    doesn't require editing the Makefile after it is generated
9379931
  - Require File::Slurp instead of including it, to avoid potential problems
9379931
    like this:
9379931
    http://www.cpantesters.org/cpan/report/86a0145a-e52b-11e4-a1d1-8536eb4f9f07
9379931
  - Improve the ability of the test suite to be run in parallel
9379931
  - Fix Windows test incompatibilities, such as:
9379931
    http://www.cpantesters.org/cpan/report/12187014-af8d-1014-92d8-fdf72a825c07
9379931
    http://www.cpantesters.org/cpan/report/12187014-af8d-1014-92d8-fdf72a825c07
9379931
fa7b2df
* Mon Apr 13 2015 Paul Howarth <paul@city-fan.org> - 1.5102-1
fa7b2df
- Update to 1.5102
fa7b2df
  - Add a version check for lzip, to make sure the .lz file can be decompressed
fa7b2df
    properly during testing
fa7b2df
  - Fix warning about deleting nonexistent test cache
fa7b2df
  - Enhance "make test TEST_VERBOSE=1" to dump debug information
fa7b2df
  - Work around a POD-stripping bug that would cause module load to fail on
fa7b2df
    some platforms (CPAN RT#103025)
fa7b2df
  - Fix xz and lzip test skip for when tools are not installed
fa7b2df
  - Enable verbose testing for CPAN-testers
fa7b2df
  - Use proper temp dir instead of t/temp
fa7b2df
  - Consolidate issue tracking at rt.cpan.org
fa7b2df
- License changed to GPLv2
fa7b2df
- Remove file installed by accident (CPAN RT#103482)
fa7b2df
e0dd7da
* Mon Mar 23 2015 Paul Howarth <paul@city-fan.org> - 1.5100-1
e0dd7da
- Update to 1.5100
e0dd7da
  - Moved code to github
e0dd7da
  - Added xz support (CPAN RT#68286)
e0dd7da
  - Added lzip support (http://sourceforge.net/p/grepmail/patches/8/)
e0dd7da
  - Added POD test
e0dd7da
  - Fixed hang in pure Perl implementation for a malformed mbox file scenario
e0dd7da
  - Fixed $OLDSTDERR used only once warning (CPAN RT#58053)
e0dd7da
  - Fixed enabling of warnings (CPAN RT#79898)
e0dd7da
  - Fixed a division by zero error for malformed mbox files that start with a
e0dd7da
    newline (CPAN RT#69469)
e0dd7da
  - Fix bug in M::M::Perl documentation
e0dd7da
  - Add more cache file validation
e0dd7da
- Classify buildreqs by usage
e0dd7da
- Add patch to fix build error (CPAN RT#103025)
e0dd7da
- Use %%license where possible
e0dd7da
- Drop %%defattr, redundant since rpm 4.4
e0dd7da
b7c4127
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.5002-17
b7c4127
- Perl 5.20 rebuild
b7c4127
b69adaa
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5002-16
b69adaa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b69adaa
6acbc44
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5002-15
6acbc44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6acbc44
ddb8b8c
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.5002-14
ddb8b8c
- Perl 5.18 rebuild
ddb8b8c
72fa0bf
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5002-13
72fa0bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
72fa0bf
1bcc874
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5002-12
1bcc874
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1bcc874
d16d4a4
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 1.5002-11
d16d4a4
- Perl 5.16 rebuild
d16d4a4
db2f61d
* Sat Jan  7 2012 Paul Howarth <paul@city-fan.org> - 1.5002-10
db2f61d
- Fedora 17 Mass Rebuild
db2f61d
2c6750c
* Tue Jun 28 2011 Paul Howarth <paul@city-fan.org> - 1.5002-9
2c6750c
- Fix provides filter to work with rpm 4.9 onwards
2c6750c
- Nobody else likes macros for commands
2c6750c
a060694
* Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.5002-8
a060694
- Perl mass rebuild
a060694
41325be
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5002-7
41325be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
41325be
4a50b97
* Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.5002-6
4fe4856
- Rebuild to fix problems with vendorarch/lib (#661697)
4a50b97
50e0c26
* Tue Jun  1 2010 Paul Howarth <paul@city-fan.org> 1.5002-5
50e0c26
- Fix used-only-once warning that breaks grepmail with perl 5.12.0
50e0c26
2674aaf
* Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.5002-4
2674aaf
- Mass rebuild with perl-5.12.0
2674aaf
b4976bf
* Fri Feb 19 2010 Paul Howarth <paul@city-fan.org> 1.5002-3
b4976bf
- Fix versioned provides for perl modules
b4976bf
- Use %%{_fixperms} macro instead of our own %%{__chmod} incantation
b4976bf
b4976bf
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> 1.5002-2
b4976bf
- 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