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