%define name getmail %define version 4.7.5 %define release 1 Summary: a mail retrieval, sorting, and delivering system Name: %{name} Version: %{version} Release: %{release}%{?dist} Source0: %{name}-%{version}.tar.gz License: GNU GPL version 2 Group: Applications/Email BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} BuildArchitectures: noarch Requires: python >= 2.3.3 Url: http://pyropus.ca/software/getmail/ %description getmail is a multi-protocol mail retrieval system with support for simple and domain POP3 and IMAP4 mailboxes, domain SDPS mailboxes, POP3-over-SSL and IMAP-over-SSL, mail sorting, message filtering, and delivery to Maildirs, Mboxrd files, external MDAs, and other advanced features. %prep %setup %build python setup.py build %install python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES sed -i 's|\(man/.*\)|\1.gz|' INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root)