Summary: POP3 mail retriever with reliable Maildir and external MDA delivery Name: getmail Version: 3.2.5 Release: 3 Url: http://pyropus.ca/software/getmail/ Source0: http://pyropus.ca/software/getmail/old-versions/%{name}-%{version}.tar.gz Patch0: getmail-3.2.5-utf8.patch Patch1: getmail-3.2.5-shellbang.patch License: GPLv2 Group: Applications/Internet BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: python >= 1.5.2 BuildRequires: python >= 1.5.2, sed %description getmail is a powerful, full-featured, easy to configure mail retriever for POP3 mailboxes. It supports normal and domain (multidrop) mailboxes, and delivers reliably to Maildirs and external MDAs (commands). Install the getmail package if you need to retrieve mail from your ISP's mail server to read locally. %prep %setup -q # Recode CHANGELOG as UTF-8 %patch0 -p0 # Remove redundant shellbangs %patch1 -p0 %build %install %{__rm} -rf %{buildroot} %{__install} -d -m 755 %{buildroot}%{_libexecdir}/getmail %{__install} -d -m 755 %{buildroot}%{_mandir}/man1 %{__install} -d -m 755 %{buildroot}%{_bindir} for f in *.py; do %{__install} -p -m 644 $f %{buildroot}%{_libexecdir}/getmail done %{__install} -p -m 644 getmail.1 %{buildroot}%{_mandir}/man1 %{__sed} -e 's#/usr/lib/getmail#%{_libexecdir}/getmail#' \ -e 's#`which python`#%{__python}#' getmail > getmail.adj %{__install} -p -m 755 getmail.adj %{buildroot}%{_bindir}/getmail %{__install} -p -m 755 getmail_maildir %{buildroot}%{_bindir} %{__install} -p -m 755 getmail_mbox %{buildroot}%{_bindir} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc BUGS CHANGELOG COPYING docs.* faq.* getmailrc-example getmail.txt THANKS TODO %{_bindir}/getmail %{_bindir}/getmail_maildir %{_bindir}/getmail_mbox %{_libexecdir}/getmail/ %{_mandir}/man1/getmail.1* %changelog * Wed Jun 17 2009 Paul Howarth 3.2.5-3 - Clarify license as GPL version 2 (only) - Clean up spec file - Use %%{__install} -p to maintain some file timestamps - Add intentionally empty %%build section - Recode docs as UTF-8 - Remove redundant shellbangs from python modules not called directly * Fri Feb 18 2005 Paul Howarth 3.2.5-2 - Update URLs * Mon Sep 20 2004 Paul Howarth 3.2.5-1 - Security update to 3.2.5 * Mon Aug 9 2004 Paul Howarth 3.2.4-1 - initial RPM build for getmail 3.x