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: 4fab7ca100ca36e41a2e8dbf5b32a3cf
26 Source1: %{name}conf.desktop
27 Source2: %{name}.sysconfig
29 Source4: %{name}.logrotate
30 Patch0: %{name}-pl.po-update.patch
31 URL: http://fetchmail.berlios.de/
32 BuildRequires: automake
35 BuildRequires: gettext-devel
36 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7l}
37 BuildRequires: rpmbuild(macros) >= 1.268
38 Requires: setup >= 2.3
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Fetchmail is a program that is used to retrieve mail from a remote
43 mail server. It can use the Post Office Protocol (POP) or IMAP
44 (Internet Mail Access Protocol) for this, and delivers the mail
45 through the local SMTP server (normally sendmail).
47 %description -l da.UTF-8
48 Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj
49 til afhentning og videresending af elektronisk post via TCP/IP
50 baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser). Den
51 henter post fra en ekstern post-server, og videresender den til din
52 lokale klient-maskines post-system, så den kan læses af almindelige
53 mail klienter såsom mutt, elm, pine, (x)emacs/gnus, eller mailx. Der
54 medfølger også et interaktivt GUI-baseret konfigurations-program, som
55 kan bruges af almindelige brugere.
57 %description -l de.UTF-8
58 Fetchmail ist ein freies, vollständiges, robustes und
59 wohldokumentiertes Werkzeug zum Abholen und Weiterreichen von E-Mail,
60 gedacht zum Gebrauchüber temporäre TCP/IP-Verbindungen (wie z.B. SLIP-
61 oder PPP-Verbindungen). Es holt E-Mail von (weit) entfernten
62 Mail-Servern abund reicht sie an das Auslieferungssystem der lokalen
63 Client-Maschine weiter, damit sie dann von normalen MUAs ("mail user
64 agents") wie mutt, elm, pine, (x)emacs/gnus oder mailx gelesen werden
65 kann. Ein interaktiver GUI-Konfigurator auch gut geeignet zum Gebrauch
66 durch Endbenutzer wird mitgeliefert.
68 %description -l es.UTF-8
69 Fetchmail es una utilidad gratis, completa, robusta y bien documentada
70 para la recepción y reeenvío de correo pensada para ser usada en co-
71 nexiones TCP/IP por demanda (como SLIP y PPP). Recibe el correo de
72 servidores remotos y lo reenvía al sistema de entrega local, siendo de
73 ese modo posible leerlo con programas como mutt, elm, pine,
74 (x)emacs/gnus o mailx. Contiene un configurador GUI interactivo
75 pensado para usuarios.
77 %description -l fr.UTF-8
78 Fetchmail est un programme utilisé pour récupérer le mail depuis un
79 serveur distant. Il peut utiliser POP (Post Office Protocol) ou IMAP
80 (Internet Mail Access Protocol) pour cela, et achemine le courrier à
81 travers le serveur SMTP local (sendmail normal).
83 %description -l pl.UTF-8
84 Fetchmail jest programem do ściągania poczty ze zdalnych serwerów
85 pocztowych. Do ściągania poczty może on używać protokołów POP (Post
86 Office Protocol) lub IMAP (Internet Mail Access Protocol). Ściągniętą
87 pocztę dostarcza odbiorcom poprzez lokalny serwer SMTP.
89 %description -l pt.UTF-8
90 fetchmail é um programa que é usado para recuperar mensagens de um
91 servidor de mail remoto. Ele pode usar Post Office Protocol (POP) ou
92 IMAP (Internet Mail Access Protocol) para isso, e entrega o mail
93 através do servidor local SMTP (normalmente sendmail).
95 %description -l ru.UTF-8
96 Fetchmail - это утилита извлечения почты с удаленной машины и
97 форвардинга, предназначенная для использования на on-demand TCP/IP
98 соединениях, таких как SLIP или PPP соеднения. Fetchmail поддерживает
99 все используемые в настоящее время в Инернете протоколы удаленной
100 почты (POP2, POP3, RPOP, APOP, KPOP, все IMAPы, ESMTP ETRN). Затем
101 Fetchmail форвардит извлеченную почту через SMTP, чтобы ви могли
102 прочитать ее своим любимым почтовым клиентом.
104 %description -l tr.UTF-8
105 fetchmail yazılımı, POP veya IMAP desteği veren bir sunucuda yer alan
108 %description -l uk.UTF-8
109 Fetchmail - це утиліта отримання пошти з віддаленої машини та
110 форвардингу, призначена для використання на on-demand TCP/IP
111 з'єднаннях, таких як SLIP чи PPP з'єднання. Fetchmail підтримує всі
112 використовувані на сьогодні протоколи віддаленої пошти (POP2, POP3,
113 RPOP, APOP, KPOP, всі IMAPи, ESMTP ETRN). Після отримання Fetchmail
114 форвардить пошту через SMTP, щоб ви могли прочитати її своїм улюбленим
117 %package -n fetchmailconf
118 Summary: A GUI configurator for generating fetchmail configuration files
119 Summary(es.UTF-8): Configurador GUI interactivo por fetchmail
120 Summary(fr.UTF-8): GUI configurateur pour fetchmail
121 Summary(pl.UTF-8): Konfigurator GUI do fetchmaila
122 Summary(pt.UTF-8): Um configurador gráfico para a criação de arquivos de configuração para o fetchmail
123 Summary(ru.UTF-8): Графическая утилита для конфигурации предпочтений для fetchmail
124 Summary(uk.UTF-8): Графічна утиліта для конфігурації вподобань для fetchmail
125 Group: Applications/System
126 Requires: %{name} = %{version}-%{release}
128 Requires: python-tkinter
130 %description -n fetchmailconf
131 A GUI configurator for generating fetchmail configuration file written
134 %description -n fetchmailconf -l de.UTF-8
135 Ein interaktiver GUI-Konfigurator für fetchmail in python.
137 %description -n fetchmailconf -l es.UTF-8
138 Configurador gráfico para fetchmail escrito en python.
140 %description -n fetchmailconf -l pl.UTF-8
141 Konfigurator GUI do fetchmaila napisany w pythonie.
143 %description -n fetchmailconf -l pt.UTF-8
144 Um configurador gráfico para a criação de arquivos de configuração
147 %description -n fetchmailconf -l ru.UTF-8
148 Fetchmailconf - это программа на Tcl/Tk для конфигурации вашего файла
149 предпочтений ~/.fetchmailrc.
151 %description -n fetchmailconf -l uk.UTF-8
152 Fetchmailconf - це програма на Tcl/Tk для конфігурації вашого файла
153 вподобань ~/.fetchmailrc.
156 Summary: SysV init script for demonize fetchmail for sucking emails
157 Summary(pl.UTF-8): Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona
158 Group: Applications/System
159 Requires(post,preun): /sbin/chkconfig
160 Requires: %{name} = %{version}-%{release}
164 SysV init script for demonize fetchmail for sucking emails.
166 %description daemon -l pl.UTF-8
167 Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako
174 # to rebuild po/pl.gmo
178 cp -f /usr/share/automake/config.* .
181 --without-included-gettext \
182 %{?with_ipv6:--enable-inet6} \
186 %{?with_ssl:--with-ssl=%{_prefix}} \
187 %{!?with_ssl:--without-ssl} \
192 rm -rf $RPM_BUILD_ROOT
193 install -d $RPM_BUILD_ROOT%{_desktopdir} \
194 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
195 $RPM_BUILD_ROOT/etc/logrotate.d
198 DESTDIR=$RPM_BUILD_ROOT
200 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
201 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/fetchmail
202 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/fetchmail
203 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
205 sed 's,\.py,\.pyc,' fetchmailconf > $RPM_BUILD_ROOT%{_bindir}/fetchmailconf
207 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
208 echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
210 > $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc
217 rm -rf $RPM_BUILD_ROOT
220 /sbin/chkconfig --add fetchmail
221 %service fetchmail restart "fetchmail daemon"
224 if [ "$1" = "0" ]; then
225 %service fetchmail stop
226 /sbin/chkconfig --del fetchmail
229 %files -f %{name}.lang
230 %defattr(644,root,root,755)
231 %doc FEATURES README NEWS NOTES README.NTLM *.html FAQ
232 %attr(755,root,root) %{_bindir}/fetchmail
233 %{_mandir}/man1/fetchmail.1*
235 %files -n fetchmailconf
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_bindir}/fetchmailconf
238 %{_desktopdir}/fetchmailconf.desktop
239 %{_mandir}/man1/fetchmailconf.1*
240 %{py_sitescriptdir}/*.py[co]
243 %defattr(644,root,root,755)
244 %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/fetchmailrc
245 %attr(754,root,root) /etc/rc.d/init.d/fetchmail
246 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/fetchmail
247 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/fetchmail