]> git.pld-linux.org Git - packages/fetchmail.git/blob - fetchmail.spec
rebuild with openssl 3.0.0
[packages/fetchmail.git] / fetchmail.spec
1 # TODO: kerberos5/gssapi support?
2 #
3 # Conditional build:
4 %bcond_without  ssl     # build without SSL support
5 #
6 Summary:        Remote mail fetch daemon for POP2, POP3, APOP, IMAP
7 Summary(da.UTF-8):      Alsidig POP/IMAP post-afhentnings dæmon
8 Summary(de.UTF-8):      Dämon zum Laden entfernter Mail (POP2, POP3, APOP, IMAP)
9 Summary(es.UTF-8):      Recolector de correo via POP/IMAP
10 Summary(fr.UTF-8):      Démon de récupération du mail pour POP2, POP3, APOP, IMAP
11 Summary(pl.UTF-8):      Zdalny demon pocztowy do protokołów POP2, POP3, APOP, IMAP
12 Summary(pt.UTF-8):      Busca mensagens de um servidor usando POP ou IMAP
13 Summary(ru.UTF-8):      Утилита извлечения почты с удаленной машины по протоколам POP/IMAP
14 Summary(tr.UTF-8):      POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazılımı
15 Summary(uk.UTF-8):      Утиліта отримання пошти з віддаленої машини по протоколам POP/IMAP
16 Summary(zh_CN.UTF-8):   功能强大的 POP/IMAP 电子邮件收取守护进程
17 Name:           fetchmail
18 Version:        6.4.20
19 Release:        2
20 License:        GPL v2 with OpenSSL exception
21 Group:          Applications/Mail
22 Source0:        http://downloads.sourceforge.net/fetchmail/%{name}-%{version}.tar.xz
23 # Source0-md5:  01f1e16772933fc4833e7cf4f42284ba
24 Source1:        %{name}conf.desktop
25 Source2:        %{name}.sysconfig
26 Source3:        %{name}.init
27 Source4:        %{name}.logrotate
28 URL:            http://www.fetchmail.info/
29 BuildRequires:  automake
30 BuildRequires:  flex
31 BuildRequires:  gettext-tools >= 0.14.6
32 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7l}
33 BuildRequires:  python >= 2.0
34 BuildRequires:  python-modules >= 2.0
35 BuildRequires:  rpm-pythonprov
36 BuildRequires:  rpmbuild(macros) >= 1.268
37 BuildRequires:  tar >= 1:1.22
38 BuildRequires:  xz
39 Requires:       setup >= 2.3
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 Fetchmail is a program that is used to retrieve mail from a remote
44 mail server. It can use the Post Office Protocol (POP) or IMAP
45 (Internet Mail Access Protocol) for this, and delivers the mail
46 through the local SMTP server (normally sendmail).
47
48 %description -l da.UTF-8
49 Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj
50 til afhentning og videresending af elektronisk post via TCP/IP
51 baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser). Den
52 henter post fra en ekstern post-server, og videresender den til din
53 lokale klient-maskines post-system, så den kan læses af almindelige
54 mail klienter såsom mutt, elm, pine, (x)emacs/gnus, eller mailx. Der
55 medfølger også et interaktivt GUI-baseret konfigurations-program, som
56 kan bruges af almindelige brugere.
57
58 %description -l de.UTF-8
59 Fetchmail ist ein freies, vollständiges, robustes und
60 wohldokumentiertes Werkzeug zum Abholen und Weiterreichen von E-Mail,
61 gedacht zum Gebrauchüber temporäre TCP/IP-Verbindungen (wie z.B. SLIP-
62 oder PPP-Verbindungen). Es holt E-Mail von (weit) entfernten
63 Mail-Servern abund reicht sie an das Auslieferungssystem der lokalen
64 Client-Maschine weiter, damit sie dann von normalen MUAs ("mail user
65 agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx gelesen werden
66 kann. Ein interaktiver GUI-Konfigurator auch gut geeignet zum Gebrauch
67 durch Endbenutzer wird mitgeliefert.
68
69 %description -l es.UTF-8
70 Fetchmail es una utilidad gratis, completa, robusta y bien documentada
71 para la recepción y reeenvío de correo pensada para ser usada en co-
72 nexiones TCP/IP por demanda (como SLIP y PPP). Recibe el correo de
73 servidores remotos y lo reenvía al sistema de entrega local, siendo de
74 ese modo posible leerlo con programas como mutt, elm, pine,
75 (x)emacs/gnus o mailx. Contiene un configurador GUI interactivo
76 pensado para usuarios.
77
78 %description -l fr.UTF-8
79 Fetchmail est un programme utilisé pour récupérer le mail depuis un
80 serveur distant. Il peut utiliser POP (Post Office Protocol) ou IMAP
81 (Internet Mail Access Protocol) pour cela, et achemine le courrier à
82 travers le serveur SMTP local (sendmail normal).
83
84 %description -l pl.UTF-8
85 Fetchmail jest programem do ściągania poczty ze zdalnych serwerów
86 pocztowych. Do ściągania poczty może on używać protokołów POP (Post
87 Office Protocol) lub IMAP (Internet Mail Access Protocol). Ściągniętą
88 pocztę dostarcza odbiorcom poprzez lokalny serwer SMTP.
89
90 %description -l pt.UTF-8
91 fetchmail é um programa que é usado para recuperar mensagens de um
92 servidor de mail remoto. Ele pode usar Post Office Protocol (POP) ou
93 IMAP (Internet Mail Access Protocol) para isso, e entrega o mail
94 através do servidor local SMTP (normalmente sendmail).
95
96 %description -l ru.UTF-8
97 Fetchmail - это утилита извлечения почты с удаленной машины и
98 форвардинга, предназначенная для использования на on-demand TCP/IP
99 соединениях, таких как SLIP или PPP соеднения. Fetchmail поддерживает
100 все используемые в настоящее время в Инернете протоколы удаленной
101 почты (POP2, POP3, RPOP, APOP, KPOP, все IMAPы, ESMTP ETRN). Затем
102 Fetchmail форвардит извлеченную почту через SMTP, чтобы ви могли
103 прочитать ее своим любимым почтовым клиентом.
104
105 %description -l tr.UTF-8
106 fetchmail yazılımı, POP veya IMAP desteği veren bir sunucuda yer alan
107 mektuplarınızı alır.
108
109 %description -l uk.UTF-8
110 Fetchmail - це утиліта отримання пошти з віддаленої машини та
111 форвардингу, призначена для використання на on-demand TCP/IP
112 з'єднаннях, таких як SLIP чи PPP з'єднання. Fetchmail підтримує всі
113 використовувані на сьогодні протоколи віддаленої пошти (POP2, POP3,
114 RPOP, APOP, KPOP, всі IMAPи, ESMTP ETRN). Після отримання Fetchmail
115 форвардить пошту через SMTP, щоб ви могли прочитати її своїм улюбленим
116 поштовим клієнтом.
117
118 %package -n fetchmailconf
119 Summary:        A GUI configurator for generating fetchmail configuration files
120 Summary(es.UTF-8):      Configurador GUI interactivo por fetchmail
121 Summary(fr.UTF-8):      GUI configurateur pour fetchmail
122 Summary(pl.UTF-8):      Konfigurator GUI do fetchmaila
123 Summary(pt.UTF-8):      Um configurador gráfico para a criação de arquivos de configuração para o fetchmail
124 Summary(ru.UTF-8):      Графическая утилита для конфигурации предпочтений для fetchmail
125 Summary(uk.UTF-8):      Графічна утиліта для конфігурації вподобань для fetchmail
126 Group:          Applications/System
127 Requires:       %{name} = %{version}-%{release}
128 Requires:       python
129 Requires:       python-tkinter
130
131 %description -n fetchmailconf
132 A GUI configurator for generating fetchmail configuration file written
133 in python.
134
135 %description -n fetchmailconf -l de.UTF-8
136 Ein interaktiver GUI-Konfigurator für fetchmail in python.
137
138 %description -n fetchmailconf -l es.UTF-8
139 Configurador gráfico para fetchmail escrito en python.
140
141 %description -n fetchmailconf -l pl.UTF-8
142 Konfigurator GUI do fetchmaila napisany w pythonie.
143
144 %description -n fetchmailconf -l pt.UTF-8
145 Um configurador gráfico para a criação de arquivos de configuração
146 para o fetchmail.
147
148 %description -n fetchmailconf -l ru.UTF-8
149 Fetchmailconf - это программа на Tcl/Tk для конфигурации вашего файла
150 предпочтений ~/.fetchmailrc.
151
152 %description -n fetchmailconf -l uk.UTF-8
153 Fetchmailconf - це програма на Tcl/Tk для конфігурації вашого файла
154 вподобань ~/.fetchmailrc.
155
156 %package daemon
157 Summary:        SysV init script for demonize fetchmail for sucking emails
158 Summary(pl.UTF-8):      Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona
159 Group:          Applications/System
160 Requires(post,preun):   /sbin/chkconfig
161 Requires:       %{name} = %{version}-%{release}
162 Requires:       rc-scripts
163
164 %description daemon
165 SysV init script for demonize fetchmail for sucking emails.
166
167 %description daemon -l pl.UTF-8
168 Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako
169 demona.
170
171 %prep
172 %setup -q
173
174 %build
175 cp -f /usr/share/automake/config.* .
176 %configure \
177         ac_cv_header_md5_h=no \
178         ac_cv_search_MD5Init=no \
179         --enable-nls \
180         --enable-RPA \
181         --enable-NTLM \
182         --enable-SDPS \
183         %{?with_ssl:--with-ssl=%{_prefix}} \
184         %{!?with_ssl:--without-ssl} \
185         --without-kerberos
186 %{__make}
187
188 %install
189 rm -rf $RPM_BUILD_ROOT
190 install -d $RPM_BUILD_ROOT%{_desktopdir} \
191         $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
192         $RPM_BUILD_ROOT/etc/logrotate.d
193
194 %{__make} install \
195         DESTDIR=$RPM_BUILD_ROOT
196
197 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
198 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/fetchmail
199 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/fetchmail
200 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
201
202 sed 's,\.py,\.pyc,' fetchmailconf > $RPM_BUILD_ROOT%{_bindir}/fetchmailconf
203
204 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
205 echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
206
207 > $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc
208
209 %find_lang %{name}
210
211 %py_postclean
212
213 %clean
214 rm -rf $RPM_BUILD_ROOT
215
216 %post daemon
217 /sbin/chkconfig --add fetchmail
218 %service fetchmail restart "fetchmail daemon"
219
220 %preun daemon
221 if [ "$1" = "0" ]; then
222         %service fetchmail stop
223         /sbin/chkconfig --del fetchmail
224 fi
225
226 %files -f %{name}.lang
227 %defattr(644,root,root,755)
228 # COPYING contains detailed description of licenses
229 %doc COPYING FEATURES README NEWS NOTES README.NTLM *.html FAQ
230 %attr(755,root,root) %{_bindir}/fetchmail
231 %{_mandir}/man1/fetchmail.1*
232
233 %files -n fetchmailconf
234 %defattr(644,root,root,755)
235 %attr(755,root,root) %{_bindir}/fetchmailconf
236 %{_desktopdir}/fetchmailconf.desktop
237 %{_mandir}/man1/fetchmailconf.1*
238 %{py_sitescriptdir}/*.py[co]
239
240 %files daemon
241 %defattr(644,root,root,755)
242 %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/fetchmailrc
243 %attr(754,root,root) /etc/rc.d/init.d/fetchmail
244 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/fetchmail
245 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/fetchmail
This page took 0.130579 seconds and 4 git commands to generate.