%bcond_without doc # Summary: Mailboxes synchronization tool Summary(pl.UTF-8): Narzędzie do synchroniczacji skrzynek pocztowych Name: offlineimap Version: 7.0.8 Release: 1 License: GPL v2 Group: Applications/Mail Source0: http://github.com/OfflineIMAP/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz # Source0-md5: 50bbf1aadfdcd8beab9b9f11f1e5c5bb Patch0: %{name}-docs.patch URL: https://offlineimap.org BuildRequires: rpm-pythonprov >= 4.1-13 BuildRequires: rpmbuild(macros) >= 1.710 %if %{with doc} BuildRequires: docutils BuildRequires: sphinx-pdg-2 %endif Requires: python-modules-sqlite BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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. %description -l pl.UTF-8 OfflineIMAP to narzędzie upraszczające czytanie poczty elektronicznej. Za jego pomocą można czytać tą samą skrzynkę z wielu komputerów. Pobiera się aktualną kopię wiadomości na każdym komputerze, a zmiany dokonywane w jednym miejscu będą widoczne na wszystkich innych systemach. Na przyklad, można usunąć wiadomość na swoim domowym komputerze i zostanie ona usunięta także na komputerze w pracy. OfflineIMAP jest przydatne także jeśli chcemy używać czytnika poczty bez obsługi IMAP, z kiepską obsługą IMAP albo nie działającego bez połączenia. %prep %setup -q %patch0 -p1 %build %if %{with doc} %{__make} -C docs SPHINXBUILD=%{_bindir}/sphinx-build-2 %endif %install rm -rf $RPM_BUILD_ROOT %py_install find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm install %{name}.py $RPM_BUILD_ROOT%{_bindir}/%{name} %if %{with doc} install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_mandir}/man7} install docs/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1 install docs/offlineimapui.7 $RPM_BUILD_ROOT%{_mandir}/man7 %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc CONTRIBUTING.rst Changelog.md MAINTAINERS.rst README.md offlineimap.conf* %if %{with doc} %doc docs/html/*.html %{_mandir}/man1/offlineimap.1* %{_mandir}/man7/offlineimapui.7* %endif %attr(755,root,root) %{_bindir}/* %{py_sitescriptdir}/%{name} %{py_sitescriptdir}/*.egg-info