]> git.pld-linux.org Git - SPECS.git/blob - offlineimap.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / offlineimap.spec
1 %bcond_without  doc
2 #
3 Summary:        Mailboxes synchronization tool
4 Summary(pl.UTF-8):      Narzędzie do synchroniczacji skrzynek pocztowych
5 Name:           offlineimap
6 Version:        7.0.8
7 Release:        1
8 License:        GPL v2
9 Group:          Applications/Mail
10 Source0:        http://github.com/OfflineIMAP/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
11 # Source0-md5:  50bbf1aadfdcd8beab9b9f11f1e5c5bb
12 Patch0:         %{name}-docs.patch
13 URL:            https://offlineimap.org
14 BuildRequires:  rpm-pythonprov >= 4.1-13
15 BuildRequires:  rpmbuild(macros) >= 1.710
16 %if %{with doc}
17 BuildRequires:  docutils
18 BuildRequires:  sphinx-pdg-2
19 %endif
20 Requires:       python-modules-sqlite
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 OfflineIMAP is a tool to simplify your e-mail reading. With
26 OfflineIMAP, you can read the same mailbox from multiple computers.
27 You get a current copy of your messages on each computer, and changes
28 you make one place will be visible on all other systems. For instance,
29 you can delete a message on your home computer, and it will appear
30 deleted on your work computer as well. OfflineIMAP is also useful if
31 you want to use a mail reader that does not have IMAP support, has
32 poor IMAP support, or does not provide disconnected operation.
33
34 %description -l pl.UTF-8
35 OfflineIMAP to narzędzie upraszczające czytanie poczty elektronicznej.
36 Za jego pomocą można czytać tą samą skrzynkę z wielu komputerów.
37 Pobiera się aktualną kopię wiadomości na każdym komputerze, a zmiany
38 dokonywane w jednym miejscu będą widoczne na wszystkich innych
39 systemach. Na przyklad, można usunąć wiadomość na swoim domowym
40 komputerze i zostanie ona usunięta także na komputerze w pracy.
41 OfflineIMAP jest przydatne także jeśli chcemy używać czytnika poczty
42 bez obsługi IMAP, z kiepską obsługą IMAP albo nie działającego bez
43 połączenia.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48
49 %build
50 %if %{with doc}
51 %{__make} -C docs SPHINXBUILD=%{_bindir}/sphinx-build-2
52 %endif
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 %py_install
57
58 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
59 install %{name}.py $RPM_BUILD_ROOT%{_bindir}/%{name}
60
61 %if %{with doc}
62 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_mandir}/man7}
63 install docs/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
64 install docs/offlineimapui.7 $RPM_BUILD_ROOT%{_mandir}/man7
65 %endif
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc CONTRIBUTING.rst Changelog.md MAINTAINERS.rst README.md offlineimap.conf*
73 %if %{with doc}
74 %doc docs/html/*.html
75 %{_mandir}/man1/offlineimap.1*
76 %{_mandir}/man7/offlineimapui.7*
77 %endif
78 %attr(755,root,root) %{_bindir}/*
79 %{py_sitescriptdir}/%{name}
80 %{py_sitescriptdir}/*.egg-info
This page took 0.174665 seconds and 3 git commands to generate.