]> git.pld-linux.org Git - packages/imapsync.git/blob - imapsync.spec
Up to 2.229
[packages/imapsync.git] / imapsync.spec
1 %bcond_with     tests
2 Summary:        Mailboxes synchronization tool
3 Summary(pl.UTF-8):      Narzędzie do synchroniczacji skrzynek pocztowych
4 Name:           imapsync
5 Version:        2.229
6 Release:        1
7 License:        NOLIMIT Public License
8 Group:          Applications/Mail
9 Source0:        https://github.com/imapsync/imapsync/archive/%{name}-%{version}.tar.gz
10 # Source0-md5:  efae792ba984469ec106573a0141f56c
11 Patch0:         no-prereq-install.patch
12 URL:            http://imapsync.lamiral.info/
13 BuildRequires:  cpanminus
14 BuildRequires:  perl-Authen-NTLM
15 BuildRequires:  perl-Crypt-OpenSSL-RSA
16 BuildRequires:  perl-Data-Uniqid
17 BuildRequires:  perl-Date-Manip
18 BuildRequires:  perl-Dist-CheckConflicts
19 BuildRequires:  perl-File-Copy-Recursive
20 BuildRequires:  perl-IO-Socket-INET6
21 BuildRequires:  perl-IO-Socket-SSL
22 BuildRequires:  perl-IO-Tee
23 BuildRequires:  perl-JSON-WebToken
24 BuildRequires:  perl-Mail-IMAPClient >= 3.29
25 BuildRequires:  perl-Module-ScanDeps
26 BuildRequires:  perl-Net-SSLeay
27 BuildRequires:  perl-PAR-Packer
28 BuildRequires:  perl-Package-Stash-XS
29 BuildRequires:  perl-Readonly
30 BuildRequires:  perl-Regexp-Common
31 BuildRequires:  perl-Sys-MemInfo
32 BuildRequires:  perl-Term-ReadKey
33 BuildRequires:  perl-Test-Deep
34 BuildRequires:  perl-Test-Fatal
35 BuildRequires:  perl-Test-MockObject
36 BuildRequires:  perl-Test-NoWarnings
37 BuildRequires:  perl-Test-Pod
38 BuildRequires:  perl-Test-Requires
39 BuildRequires:  perl-Test-Warn
40 BuildRequires:  perl-Unicode-String
41 BuildRequires:  rpm-perlprov >= 4.1-13
42 BuildRequires:  rpmbuild(macros) >= 1.202
43 %if %{with tests}
44 BuildRequires:  perl-Encode-IMAPUTF7
45 BuildRequires:  time
46 %endif
47 Requires:       perl-Authen-NTLM
48 Requires:       perl-Data-Uniqid
49 Requires:       perl-Date-Manip
50 Requires:       perl-Digest-HMAC
51 Requires:       perl-File-Copy-Recursive
52 Requires:       perl-HTML-Parser
53 Requires:       perl-IO-Tee
54 Requires:       perl-JSON
55 Requires:       perl-JSON-WebToken
56 Requires:       perl-Mail-IMAPClient >= 3.29
57 Requires:       perl-Term-ReadKey
58 Requires:       perl-Test-MockObject
59 Requires:       perl-URI
60 Requires:       perl-Unicode-String
61 Requires:       perl-libwww
62 BuildArch:      noarch
63 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64
65 %description
66 imapsync is a tool for facilitating incremental recursive IMAP
67 transfers from one mailbox to another. It is useful for mailbox
68 migration, and reduces the amount of data transferred by only copying
69 messages that are not present on both servers. Read, unread, and
70 deleted flags are preserved, and the process can be stopped and
71 resumed. The original messages can optionally be deleted after a
72 successful transfer.
73
74 %description -l pl.UTF-8
75 imapsync to narzędzie ułatwiające przyrostowe rekurencyjne transfery
76 IMAP z jednej skrzynki do drugiej. Jest przydatne do migracji skrzynek
77 pocztowych i zmniajsza ilość przesyłanych danych kopiując tylko
78 wiadomości nie obecne na obu serwerach. Flagi oznaczające wiadomości
79 przeczytane, nieprzeczytane i usunięte są zachowywane, a proces może
80 być zatrzymany i wznowiony. Oryginalne wiadomości opcjonalnie mogą być
81 usunięte po udanym przesłaniu.
82
83 %prep
84 %setup -q -n %{name}-%{name}-%{version}
85 %patch0 -p1
86
87 sed -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \
88       imapsync
89
90 %build
91 %{__make}
92
93 %{?with_tests:%{__make} tests}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT%{_bindir}
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %files
106 %defattr(644,root,root,755)
107 %doc CREDITS ChangeLog FAQ README TODO
108 %attr(755,root,root) %{_bindir}/imapsync
109 %{_mandir}/man1/imapsync.1*
This page took 0.048819 seconds and 3 git commands to generate.