%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: offlineimap Version: 4.0.16 Release: 3%{?dist} Summary: Powerful IMAP/Maildir synchronization and reader support License: GPL Group: Applications/Internet URL: http://software.complete.org/offlineimap/ Source0: http://software.complete.org/offlineimap/static/download_area/%{version}/%{name}_%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildArch: noarch %description OfflineIMAP is a tool to simplify your e-mail reading. With OfflineIMAP, you can read the same mailbox from multiple computers. You get a current copy of your messages on each computer, and changes you make one place will be visible on all other systems. For instance, you can delete a message on your home computer, and it will appear deleted on your work computer as well. OfflineIMAP is also useful if you want to use a mail reader that does not have IMAP support, has poor IMAP support, or does not provide disconnected operation. %prep %setup -q -n %name %build python setup.py build cp -p debian/changelog ChangeLog %install rm -rf $RPM_BUILD_ROOT python setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 install -p offlineimap.1 $RPM_BUILD_ROOT/%{_mandir}/man1/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc manual.* README COPY* UPGRADING offlineimap.conf* FAQ.html todo %doc ChangeLog %{_bindir}/offlineimap %{python_sitelib}/offlineimap/ %{_mandir}/man1/offlineimap.1.gz %changelog * Sat Dec 09 2006 Till Maas - 4.0.16-3 - rebuild for python2.5 - added BR: python-devel, which is needed now * Mon Dec 04 2006 Till Maas - 4.0.16-2 - added -p to cp to preserve timestamp of ChangeLog * Sun Dec 03 2006 Till Maas - 4.0.16-1 - version bump - added one more %%{version} to Source0 - added FAQ.html, todo to %%doc - added debian/changelog as ChangeLog to %%doc * Sat Dec 02 2006 Till Maas - 4.0.15-1 - added %%{?dist} tag - made Source0 a valid URL - rearranged tag order and changed whitespace - added -q -n %%name to %%setup - removed ChangeLog* from %%doc (not in archive) - added offlineimap.conf* to %%doc - Use %%{_bindir} and %%{python_sitelib} - removed directory docs from %%doc - added BuildArch: noarch - added manpage * Tue May 16 2006 Adam Spiers 4.0.13-3 - Force prefix to /usr * Mon May 15 2006 Adam Spiers 4.0.13-2 - Finally get savemessage_searchforheader right? * Sun May 14 2006 Adam Spiers 4.0.13-1 - Updated for 4.0.13 * Sat Apr 29 2006 Adam Spiers 4.0.11-2 - Add patch for Groupwise IMAP servers. * Fri Apr 28 2006 Adam Spiers 4.0.11-1 - Initial build.