Summary: search mailboxes for a particular e-mail Name: grepmail Version: 5.30 Release: 1 License: GPL Group: Applications/Text Source: http://prdownloads.sourceforge.net/grepmail/%{name}-%{version}.tar.gz URL: http://grepmail.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: perl Requires: perl, perl-TimeDate, perl-DateManip %description Grepmail searches a normal, gzip'd, bzip'd, or tzip'd 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 %build echo -e '1\n' | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL \ PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor make %install rm -rf $RPM_BUILD_ROOT eval `perl '-V:installarchlib'` mkdir -p $RPM_BUILD_ROOT$installarchlib make install find $RPM_BUILD_ROOT%{_prefix} -type f -print | sed -e "s@^$RPM_BUILD_ROOT@@g" -e 's/\(\.[1-9]\(pm\)\?\)$/\1*/' | grep -Ev 'perllocal\.pod|\.packlist' > %{name}-%{version}-filelist rm -f `find $RPM_BUILD_ROOT%{_prefix} -type f -print | grep -E 'perllocal\.pod|\.packlist'` %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}-filelist %defattr(-,root,root,0755) %doc CHANGES LICENSE README %changelog * Tue Sep 7 2004 William Stearns 5.30-1 - 5.30 * Wed Oct 22 2003 Ian Macdonald 5.22-1 - 5.22 * Sat Jul 12 2003 Ian Macdonald 5.00-1 - 5.00 * Wed Jan 1 2003 Ian Macdonald 4.91-1 - 4.91