Summary: Search mailboxes for a particular email Name: grepmail Version: 5.3034 Release: 4%{?dist} License: GPL+ Group: Applications/Text Url: http://search.cpan.org/dist/grepmail/ Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCOPPIT/grepmail-%{version}.tar.gz Patch0: grepmail-5.3034-revert-recursive-test-change.patch Patch1: grepmail-5.3034-empty-file-not-error.patch Patch2: grepmail-5.3034-date-manip-6.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Mail::Mbox::MessageParser) >= 1.4001 BuildRequires: perl(Mail::Mbox::MessageParser) >= 1.4001, perl(Date::Parse), perl(Date::Manip) BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More) # AutoInstall.pm should have been bundled but wasn't # http://code.google.com/p/grepmail/issues/detail?id=1 BuildRequires: perl(Module::AutoInstall) # The following module requirements are optional and hence not picked up by RPM automatically. # Adding manual deps for them improves grepmail's functionality. Requires: perl(Date::Parse), perl(Date::Manip) # perl(Date::Parse) can be found in the perl-TimeDate package %description Grepmail searches a normal or compressed mailbox for a given regular expression, and returns those emails that match it. Piped input is allowed, and date and size restrictions are supported, as are searches using logical operators. %prep %setup -q -n %{name}-%{version} # Revert recursive test change in 5.3034 that breaks test suite # http://code.google.com/p/grepmail/issues/detail?id=2 %patch0 -p1 # Empty files are not treated as errors by Mail::Mbox::MessageParser >= 1.5002 # http://code.google.com/p/grepmail/issues/detail?id=2 %patch1 -p1 # Fix incompatibilities with Date::Manip 6.x # http://rt.cpan.org/Public/Bug/Display.html?id=54621 %patch2 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor --default %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' /usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null %{__chmod} -R u+w %{buildroot} %check export LANG=C export TZ=GMT0 %{__make} test %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc README* CHANGES LICENSE TODO %{_bindir}/grepmail %{_mandir}/man1/grepmail.1* %changelog * Tue Jun 01 2010 Marcela Maslanova - 5.3034-4 - Mass rebuild with perl-5.12.0 * Mon Feb 15 2010 Paul Howarth 5.3034-3 - Fix incompatibilities with Date::Manip 6.x (#564839, CPAN RT#54621) * Fri Dec 4 2009 Stepan Kasal 5.3034-2 - Rebuild against perl 5.10.1 * Wed Sep 2 2009 Paul Howarth 5.3034-1 - Update to 5.3034 - fix man page year typo (Debian bug #428973) - updated to the latest version of Module::Install - added TODO to the distribution - fix a bug where grepmail could abort with -L - fix a bug in the -R test that could cause a false test failure - fix uninitialized variable warnings for emails missing certain headers - URLs moved back to search.cpan.org - Buildreq perl(Test::More) - Buildreq perl(Module::AutoInstall), should have been bundled - Revert change to t/recursive.t from 5.3033 that causes test failure - Patch t/nonexistent_mailbox.t to support changed behaviour of Mail::Mbox::MessageParser >= 1.5002 * Fri Jul 24 2009 Fedora Release Engineering 5.3033-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering 5.3033-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Feb 7 2008 Tom "spot" Callaway 5.3033-4 - Rebuild for new perl * Wed Apr 18 2007 Paul Howarth 5.3033-3 - Buildrequire perl(ExtUtils::MakeMaker) instead of perl-devel * Thu Mar 8 2007 Paul Howarth 5.3033-2 - Buildrequire perl-devel for Fedora 7 onwards * Fri Mar 2 2007 Paul Howarth 5.3033-1 - Update to 5.3033 - CPAN RT#24341 fixed upstream, remove patch - Permissions fixes in %%prep no longer needed - Changed download host from dl.sf.net to downloads.sf.net * Tue Feb 27 2007 Paul Howarth 5.3032-5 - Add patch to fix CPAN RT#24341 (test suite failures with recent Mail::Mbox::MessageParser) - Fix argument order for find with -depth * Tue Aug 29 2006 Paul Howarth 5.3032-4 - FE6 rebuild * Thu Feb 16 2006 Paul Howarth 5.3032-3 - Don't use macros in command paths, hardcode them instead * Wed Oct 12 2005 Paul Howarth 5.3032-2 - Remove spec file comments about package naming (#170506) * Wed Oct 12 2005 Paul Howarth 5.3032-1 - Fedora Extras submission