Blob Blame Raw
Summary:	Search mailboxes for a particular email
Name:		grepmail
Version:	5.3033
Release:	3%{?dist}
License:	GPL
Group:		Applications/Text
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)
# 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

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

%setup -q -n %{name}-%{version}

%{__perl} Makefile.PL INSTALLDIRS=vendor --default
%{__make} %{?_smp_mflags}

%{__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}/*

export LANG=C
export TZ=GMT0
%{__make} test

%{__rm} -rf %{buildroot}


* 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 to

* Tue Feb 27 2007 Paul Howarth <> 5.3032-5
- Add patch to fix CPAN RT#24341 (test suite failures with recent
- 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