%define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") Summary: POP3, IMAP4 and SDPS mail retriever with Maildir delivery Name: getmail Version: 4.27.0 Release: 1 License: GPLv2 Group: Applications/Internet URL: http://pyropus.ca/software/getmail/ Source0: http://pyropus.ca/software/getmail/old-versions/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: python-devel >= 2.6.2 Requires: python >= 2.6.2 %description getmail is a secure, flexible, reliable and easy-to-use mail retriever for POP3, IMAP4 and SDPS. It delivers mail into a Maildir or mbox file. It is designed to replace other mail retrievers such as fetchmail. Getmail is written entirely in python. %prep %setup -q %patch0 %build python setup.py build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} python setup.py install --skip-build --root="${RPM_BUILD_ROOT}" rm docs/*.1 %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc docs/* %{_bindir}/getmail %{_bindir}/getmail_fetch %{_bindir}/getmail_maildir %{_bindir}/getmail_mbox %{_mandir}/man1/getmail.1 %{_mandir}/man1/getmail_fetch.1 %{_mandir}/man1/getmail_maildir.1 %{_mandir}/man1/getmail_mbox.1 %{python_sitelib}/getmail*.egg-info %{python_sitelib}/getmailcore/ %changelog * Sun May 20 2012 Michael Perzl - 4.27.0-1 - updated to version 4.27.0 * Sun Apr 15 2012 Michael Perzl - 4.26.0-1 - updated to version 4.26.0 * Thu Feb 02 2012 Michael Perzl - 4.25.0-1 - updated to version 4.25.0 * Mon Dec 12 2011 Michael Perzl - 4.24.0-1 - updated to version 4.24.0 * Sun Nov 20 2011 Michael Perzl - 4.23.0-1 - updated to version 4.23.0 * Sun Nov 13 2011 Michael Perzl - 4.22.2-1 - updated to version 4.22.2 * Sun Oct 02 2011 Michael Perzl - 4.22.1-1 - updated to version 4.22.1 * Mon Sep 26 2011 Michael Perzl - 4.22.0-1 - updated to version 4.22.0 * Sat Sep 24 2011 Michael Perzl - 4.21.0-1 - updated to version 4.21.0 * Mon Jul 18 2011 Michael Perzl - 4.20.4-1 - first version for AIX V5.1 and higher