Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37882545
en ru br
ALT Linux repos
S:5.30.34-alt2
5.0: 5.30.32-alt2
4.1: 5.30.32-alt2
4.0: 5.30.32-alt2
3.0: 5.30.30-alt1

Other repositories
Upstream:5.3033

Group :: File tools
RPM: grepmail

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define version 5.30.30
%define realver 5.3030

Name: grepmail
Version: %version
Release: alt1

Summary: Search mailboxes for a particular email
License: GPL
Group: File tools

URL: http://grepmail.sourceforge.net/
Source0: %name-%realver.tar.bz2
Source1: nnir-%name.el
Source2: vm-%name.el

BuildArch: noarch

# Added by buildreq2 on Tue May 03 2005

BuildRequires: perl-DateManip perl-Mail-Mbox-MessageParser perl-TimeDate perl-devel

%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 -q -n %name-%realver
%__rm -rfv inc/Test
%__install -p -m644 %SOURCE1 %SOURCE2 .

# clarify dependencies

%__perl -pi.orig -e 's/\beval\s+(["'\''])require\s+([\w:]+);?\1/require $2/g' grepmail
! diff -u grepmail{.orig,}

%build
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=302703
# Force TZ=UTC during build to avoid test suite failure with other timezone settings.
export TZ=UTC
%perl_vendor_build

%install
%perl_vendor_install

%files
%doc CHANGES README *.el
%_bindir/%name
%_man1dir/%name.*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin