1 # TODO: kerberos5/gssapi support?
4 %bcond_without ssl # build without SSL support
5 %bcond_without ipv6 # build without IPv6 support
7 Summary: Remote mail fetch daemon for POP2, POP3, APOP, IMAP
8 Summary(da.UTF-8): Alsidig POP/IMAP post-afhentnings dæmon
9 Summary(de.UTF-8): Dämon zum Laden entfernter Mail (POP2, POP3, APOP, IMAP)
10 Summary(es.UTF-8): Recolector de correo via POP/IMAP
11 Summary(fr.UTF-8): Démon de récupération du mail pour POP2, POP3, APOP, IMAP
12 Summary(pl.UTF-8): Zdalny demon pocztowy do protokołów POP2, POP3, APOP, IMAP
13 Summary(pt.UTF-8): Busca mensagens de um servidor usando POP ou IMAP
14 Summary(ru.UTF-8): Утилита извлечения почты с удаленной машины по протоколам POP/IMAP
15 Summary(tr.UTF-8): POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazılımı
16 Summary(uk.UTF-8): Утиліта отримання пошти з віддаленої машини по протоколам POP/IMAP
17 Summary(zh_CN.UTF-8): 功能强大的 POP/IMAP 电子邮件收取守护进程
22 Group: Applications/Mail
23 #Source0Download: http://developer.berlios.de/project/showfiles.php?group_id=1824
24 Source0: http://download2.berlios.de/fetchmail/%{name}-%{version}.tar.bz2
25 # Source0-md5: 9ef60ab06661108c3c6605aad97e8325
26 Source1: %{name}conf.desktop
27 Source2: %{name}.sysconfig
29 Source4: %{name}.logrotate
30 URL: http://fetchmail.berlios.de/
31 BuildRequires: automake
34 BuildRequires: gettext-devel
35 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7l}
36 BuildRequires: rpmbuild(macros) >= 1.268
37 Requires: setup >= 2.3
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Fetchmail is a program that is used to retrieve mail from a remote
42 mail server. It can use the Post Office Protocol (POP) or IMAP
43 (Internet Mail Access Protocol) for this, and delivers the mail
44 through the local SMTP server (normally sendmail).
46 %description -l da.UTF-8
47 Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj
48 til afhentning og videresending af elektronisk post via TCP/IP
49 baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser). Den
50 henter post fra en ekstern post-server, og videresender den til din
51 lokale klient-maskines post-system, så den kan læses af almindelige
52 mail klienter såsom mutt, elm, pine, (x)emacs/gnus, eller mailx. Der
53 medfølger også et interaktivt GUI-baseret konfigurations-program, som
54 kan bruges af almindelige brugere.
56 %description -l de.UTF-8
57 Fetchmail ist ein freies, vollständiges, robustes und
58 wohldokumentiertes Werkzeug zum Abholen und Weiterreichen von E-Mail,
59 gedacht zum Gebrauchüber temporäre TCP/IP-Verbindungen (wie z.B. SLIP-
60 oder PPP-Verbindungen). Es holt E-Mail von (weit) entfernten
61 Mail-Servern abund reicht sie an das Auslieferungssystem der lokalen
62 Client-Maschine weiter, damit sie dann von normalen MUAs ("mail user
63 agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx gelesen werden
64 kann. Ein interaktiver GUI-Konfigurator auch gut geeignet zum Gebrauch
65 durch Endbenutzer wird mitgeliefert.
67 %description -l es.UTF-8
68 Fetchmail es una utilidad gratis, completa, robusta y bien documentada
69 para la recepción y reeenvío de correo pensada para ser usada en co-
70 nexiones TCP/IP por demanda (como SLIP y PPP). Recibe el correo de
71 servidores remotos y lo reenvía al sistema de entrega local, siendo de
72 ese modo posible leerlo con programas como mutt, elm, pine,
73 (x)emacs/gnus o mailx. Contiene un configurador GUI interactivo
74 pensado para usuarios.
76 %description -l fr.UTF-8
77 Fetchmail est un programme utilisé pour récupérer le mail depuis un
78 serveur distant. Il peut utiliser POP (Post Office Protocol) ou IMAP
79 (Internet Mail Access Protocol) pour cela, et achemine le courrier à
80 travers le serveur SMTP local (sendmail normal).
82 %description -l pl.UTF-8
83 Fetchmail jest programem do ściągania poczty ze zdalnych serwerów
84 pocztowych. Do ściągania poczty może on używać protokołów POP (Post
85 Office Protocol) lub IMAP (Internet Mail Access Protocol). Ściągniętą
86 pocztę dostarcza odbiorcom poprzez lokalny serwer SMTP.
88 %description -l pt.UTF-8
89 fetchmail é um programa que é usado para recuperar mensagens de um
90 servidor de mail remoto. Ele pode usar Post Office Protocol (POP) ou
91 IMAP (Internet Mail Access Protocol) para isso, e entrega o mail
92 através do servidor local SMTP (normalmente sendmail).
94 %description -l ru.UTF-8
95 Fetchmail - это утилита извлечения почты с удаленной машины и
96 форвардинга, предназначенная для использования на on-demand TCP/IP
97 соединениях, таких как SLIP или PPP соеднения. Fetchmail поддерживает
98 все используемые в настоящее время в Инернете протоколы удаленной
99 почты (POP2, POP3, RPOP, APOP, KPOP, все IMAPы, ESMTP ETRN). Затем
100 Fetchmail форвардит извлеченную почту через SMTP, чтобы ви могли
101 прочитать ее своим любимым почтовым клиентом.
103 %description -l tr.UTF-8
104 fetchmail yazılımı, POP veya IMAP desteği veren bir sunucuda yer alan
107 %description -l uk.UTF-8
108 Fetchmail - це утиліта отримання пошти з віддаленої машини та
109 форвардингу, призначена для використання на on-demand TCP/IP
110 з'єднаннях, таких як SLIP чи PPP з'єднання. Fetchmail підтримує всі
111 використовувані на сьогодні протоколи віддаленої пошти (POP2, POP3,
112 RPOP, APOP, KPOP, всі IMAPи, ESMTP ETRN). Після отримання Fetchmail
113 форвардить пошту через SMTP, щоб ви могли прочитати її своїм улюбленим
116 %package -n fetchmailconf
117 Summary: A GUI configurator for generating fetchmail configuration files
118 Summary(es.UTF-8): Configurador GUI interactivo por fetchmail
119 Summary(fr.UTF-8): GUI configurateur pour fetchmail
120 Summary(pl.UTF-8): Konfigurator GUI do fetchmaila
121 Summary(pt.UTF-8): Um configurador gráfico para a criação de arquivos de configuração para o fetchmail
122 Summary(ru.UTF-8): Графическая утилита для конфигурации предпочтений для fetchmail
123 Summary(uk.UTF-8): Графічна утиліта для конфігурації вподобань для fetchmail
124 Group: Applications/System
125 Requires: %{name} = %{version}-%{release}
127 Requires: python-tkinter
129 %description -n fetchmailconf
130 A GUI configurator for generating fetchmail configuration file written
133 %description -n fetchmailconf -l de.UTF-8
134 Ein interaktiver GUI-Konfigurator für fetchmail in python.
136 %description -n fetchmailconf -l es.UTF-8
137 Configurador gráfico para fetchmail escrito en python.
139 %description -n fetchmailconf -l pl.UTF-8
140 Konfigurator GUI do fetchmaila napisany w pythonie.
142 %description -n fetchmailconf -l pt.UTF-8
143 Um configurador gráfico para a criação de arquivos de configuração
146 %description -n fetchmailconf -l ru.UTF-8
147 Fetchmailconf - это программа на Tcl/Tk для конфигурации вашего файла
148 предпочтений ~/.fetchmailrc.
150 %description -n fetchmailconf -l uk.UTF-8
151 Fetchmailconf - це програма на Tcl/Tk для конфігурації вашого файла
152 вподобань ~/.fetchmailrc.
155 Summary: SysV init script for demonize fetchmail for sucking emails
156 Summary(pl.UTF-8): Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona
157 Group: Applications/System
158 Requires(post,preun): /sbin/chkconfig
159 Requires: %{name} = %{version}-%{release}
163 SysV init script for demonize fetchmail for sucking emails.
165 %description daemon -l pl.UTF-8
166 Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako
172 # to rebuild po/pl.gmo
176 cp -f /usr/share/automake/config.* .
179 --without-included-gettext \
180 %{?with_ipv6:--enable-inet6} \
184 %{?with_ssl:--with-ssl=%{_prefix}} \
185 %{!?with_ssl:--without-ssl} \
190 rm -rf $RPM_BUILD_ROOT
191 install -d $RPM_BUILD_ROOT%{_desktopdir} \
192 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
193 $RPM_BUILD_ROOT/etc/logrotate.d
196 DESTDIR=$RPM_BUILD_ROOT
198 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
199 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/fetchmail
200 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/fetchmail
201 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
203 sed 's,\.py,\.pyc,' fetchmailconf > $RPM_BUILD_ROOT%{_bindir}/fetchmailconf
205 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
206 echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
208 > $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc
215 rm -rf $RPM_BUILD_ROOT
218 /sbin/chkconfig --add fetchmail
219 %service fetchmail restart "fetchmail daemon"
222 if [ "$1" = "0" ]; then
223 %service fetchmail stop
224 /sbin/chkconfig --del fetchmail
227 %files -f %{name}.lang
228 %defattr(644,root,root,755)
229 %doc FEATURES README NEWS NOTES README.NTLM *.html FAQ
230 %attr(755,root,root) %{_bindir}/fetchmail
231 %{_mandir}/man1/fetchmail.1*
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]
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