File offlineimap.spec of Package offlineimap

# spec file for package offlineimap (Version 6.2.0)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           offlineimap
BuildRequires:  docbook-utils python-devel
Version:        6.2.0
Release:        2
Source:         %{name}_%{version}.orig.tar.gz
Source100:      offlineimap-rpmlintrc
Patch0:         %{name}-fix-deprecation-warning.diff
Summary:        Powerful IMAP/Maildir synchronization and reader support
Group:          Productivity/Networking/Email/Utilities
License:        GPLv2+
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch:      noarch

OfflineIMAP is a tool to simplify your e-mail reading. With
OfflineIMAP, you can:

* Read the same mailbox from multiple computers, and have your
   changes (deletions, etc.) be automatically reflected on all

* Use various mail clients to read a single mail box

* Read mail while offline (on a laptop) and have all changes
   synchronized when you get connected again

* Read IMAP mail with mail readers that do not support IMAP

* Use SSL (secure connections) to read IMAP mail even if your reader
   doesn't support SSL

* Synchronize your mail using a completely safe and fault-tolerant
   algorithm.  (At least I think it is!)

* Customize which mailboxes to synchronize with regular expressions
   or lists.

* Synchronize your mail two to four times faster than with other tools
or other mail readers' internal IMAP support.

    John Goerzen <>

%setup -q -n %{name}
%patch0 -p1

python build

python install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
make doc
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
install -m 644 %{name}.1 $RPM_BUILD_ROOT/%{_mandir}/man1/


%doc COPYING COPYRIGHT FAQ.html UPGRADING offlineimap.conf*
%if %{suse_version} > 1010