]>
Commit | Line | Data |
---|---|---|
250b7340 | 1 | # TODO: kerberos5/gssapi support? |
da9c144b | 2 | # |
3 | # Conditional build: | |
4 | %bcond_without ssl # build without SSL support | |
5 | %bcond_without ipv6 # build without IPv6 support | |
35adbe06 | 6 | # |
9450acc5 | 7 | Summary: Remote mail fetch daemon for POP2, POP3, APOP, IMAP |
cb48536f ER |
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 电子邮件收取守护进程 | |
9450acc5 | 18 | Name: fetchmail |
c4d56e28 AM |
19 | Version: 6.3.7 |
20 | Release: 1 | |
a8b0d105 | 21 | License: GPL |
9450acc5 | 22 | Group: Applications/Mail |
f3cd7b3d JB |
23 | #Source0Download: http://developer.berlios.de/project/showfiles.php?group_id=1824 |
24 | Source0: http://download2.berlios.de/fetchmail/%{name}-%{version}.tar.bz2 | |
c4d56e28 | 25 | # Source0-md5: 9ef60ab06661108c3c6605aad97e8325 |
8453a08e | 26 | Source1: %{name}conf.desktop |
27 | Source2: %{name}.sysconfig | |
28 | Source3: %{name}.init | |
233866a9 | 29 | Source4: %{name}.logrotate |
18fdc0ce | 30 | URL: http://fetchmail.berlios.de/ |
7bc7e607 | 31 | BuildRequires: automake |
c4d2ad30 | 32 | BuildRequires: bison |
7bc7e607 | 33 | BuildRequires: flex |
34 | BuildRequires: gettext-devel | |
fa0d56f5 | 35 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7l} |
9aca716b | 36 | BuildRequires: rpmbuild(macros) >= 1.268 |
1a417665 | 37 | Requires: setup >= 2.3 |
9d33bdb6 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3eeb7f55 | 39 | |
40 | %description | |
06b78117 | 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). | |
3eeb7f55 | 45 | |
9a62c593 JR |
46 | %description -l da.UTF-8 |
47 | Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj | |
06b78117 | 48 | til afhentning og videresending af elektronisk post via TCP/IP |
9a62c593 | 49 | baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser). Den |
06b78117 | 50 | henter post fra en ekstern post-server, og videresender den til din |
9a62c593 JR |
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 | |
06b78117 | 54 | kan bruges af almindelige brugere. |
508cd0ae | 55 | |
9a62c593 JR |
56 | %description -l de.UTF-8 |
57 | Fetchmail ist ein freies, vollständiges, robustes und | |
06b78117 | 58 | wohldokumentiertes Werkzeug zum Abholen und Weiterreichen von E-Mail, |
9a62c593 | 59 | gedacht zum Gebrauchüber temporäre TCP/IP-Verbindungen (wie z.B. SLIP- |
06b78117 | 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. | |
3eeb7f55 | 66 | |
9a62c593 | 67 | %description -l es.UTF-8 |
06b78117 | 68 | Fetchmail es una utilidad gratis, completa, robusta y bien documentada |
9a62c593 | 69 | para la recepción y reeenvío de correo pensada para ser usada en co- |
06b78117 | 70 | nexiones TCP/IP por demanda (como SLIP y PPP). Recibe el correo de |
9a62c593 | 71 | servidores remotos y lo reenvía al sistema de entrega local, siendo de |
06b78117 | 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. | |
508cd0ae | 75 | |
9a62c593 JR |
76 | %description -l fr.UTF-8 |
77 | Fetchmail est un programme utilisé pour récupérer le mail depuis un | |
06b78117 | 78 | serveur distant. Il peut utiliser POP (Post Office Protocol) ou IMAP |
9a62c593 | 79 | (Internet Mail Access Protocol) pour cela, et achemine le courrier à |
06b78117 | 80 | travers le serveur SMTP local (sendmail normal). |
3eeb7f55 | 81 | |
9a62c593 JR |
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. | |
3eeb7f55 | 87 | |
9a62c593 JR |
88 | %description -l pt.UTF-8 |
89 | fetchmail é um programa que é usado para recuperar mensagens de um | |
06b78117 | 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 | |
9a62c593 JR |
92 | através do servidor local SMTP (normalmente sendmail). |
93 | ||
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 | прочитать ее своим любимым почтовым клиентом. | |
102 | ||
103 | %description -l tr.UTF-8 | |
104 | fetchmail yazılımı, POP veya IMAP desteği veren bir sunucuda yer alan | |
105 | mektuplarınızı alır. | |
106 | ||
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, щоб ви могли прочитати її своїм улюбленим | |
114 | поштовим клієнтом. | |
bd1ff90b | 115 | |
3eeb7f55 | 116 | %package -n fetchmailconf |
9450acc5 | 117 | Summary: A GUI configurator for generating fetchmail configuration files |
cb48536f ER |
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 | |
009b1c9e | 124 | Group: Applications/System |
11148396 | 125 | Requires: %{name} = %{version}-%{release} |
3c0a3c3c | 126 | Requires: python |
51d02ff8 | 127 | Requires: python-tkinter |
3eeb7f55 | 128 | |
129 | %description -n fetchmailconf | |
83987afc | 130 | A GUI configurator for generating fetchmail configuration file written |
06b78117 | 131 | in python. |
3eeb7f55 | 132 | |
9a62c593 JR |
133 | %description -n fetchmailconf -l de.UTF-8 |
134 | Ein interaktiver GUI-Konfigurator für fetchmail in python. | |
2669bc97 | 135 | |
9a62c593 JR |
136 | %description -n fetchmailconf -l es.UTF-8 |
137 | Configurador gráfico para fetchmail escrito en python. | |
2669bc97 | 138 | |
9a62c593 | 139 | %description -n fetchmailconf -l pl.UTF-8 |
83987afc | 140 | Konfigurator GUI do fetchmaila napisany w pythonie. |
3eeb7f55 | 141 | |
9a62c593 JR |
142 | %description -n fetchmailconf -l pt.UTF-8 |
143 | Um configurador gráfico para a criação de arquivos de configuração | |
f9a20aca | 144 | para o fetchmail. |
145 | ||
9a62c593 JR |
146 | %description -n fetchmailconf -l ru.UTF-8 |
147 | Fetchmailconf - это программа на Tcl/Tk для конфигурации вашего файла | |
148 | предпочтений ~/.fetchmailrc. | |
bd1ff90b | 149 | |
9a62c593 JR |
150 | %description -n fetchmailconf -l uk.UTF-8 |
151 | Fetchmailconf - це програма на Tcl/Tk для конфігурації вашого файла | |
152 | вподобань ~/.fetchmailrc. | |
bd1ff90b | 153 | |
a8b0d105 | 154 | %package daemon |
83987afc | 155 | Summary: SysV init script for demonize fetchmail for sucking emails |
cb48536f | 156 | Summary(pl.UTF-8): Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona |
009b1c9e | 157 | Group: Applications/System |
749c83f0 | 158 | Requires(post,preun): /sbin/chkconfig |
d44a0243 ER |
159 | Requires: %{name} = %{version}-%{release} |
160 | Requires: rc-scripts | |
a8b0d105 | 161 | |
162 | %description daemon | |
83987afc | 163 | SysV init script for demonize fetchmail for sucking emails. |
a8b0d105 | 164 | |
9a62c593 | 165 | %description daemon -l pl.UTF-8 |
d44a0243 ER |
166 | Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako |
167 | demona. | |
a8b0d105 | 168 | |
3eeb7f55 | 169 | %prep |
387e3244 | 170 | %setup -q |
3eeb7f55 | 171 | |
c5c28a4a JB |
172 | # to rebuild po/pl.gmo |
173 | rm -f po/stamp-po | |
174 | ||
3eeb7f55 | 175 | %build |
86cbd65d | 176 | cp -f /usr/share/automake/config.* . |
cd966eab | 177 | %configure \ |
3eeb7f55 | 178 | --enable-nls \ |
8689f7f8 | 179 | --without-included-gettext \ |
da9c144b | 180 | %{?with_ipv6:--enable-inet6} \ |
5bdb5715 AF |
181 | --enable-RPA \ |
182 | --enable-NTLM \ | |
183 | --enable-SDPS \ | |
da9c144b | 184 | %{?with_ssl:--with-ssl=%{_prefix}} \ |
185 | %{!?with_ssl:--without-ssl} \ | |
c4d2ad30 | 186 | --without-kerberos |
4750c757 | 187 | %{__make} |
3eeb7f55 | 188 | |
189 | %install | |
190 | rm -rf $RPM_BUILD_ROOT | |
14ceb279 | 191 | install -d $RPM_BUILD_ROOT%{_desktopdir} \ |
382a4000 | 192 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ |
233866a9 | 193 | $RPM_BUILD_ROOT/etc/logrotate.d |
3eeb7f55 | 194 | |
860e7d9c PG |
195 | %{__make} install \ |
196 | DESTDIR=$RPM_BUILD_ROOT | |
3eeb7f55 | 197 | |
14ceb279 | 198 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
a61d1677 | 199 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/fetchmail |
200 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/fetchmail | |
701d4d32 | 201 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
3eeb7f55 | 202 | |
e796b687 MB |
203 | sed 's,\.py,\.pyc,' fetchmailconf > $RPM_BUILD_ROOT%{_bindir}/fetchmailconf |
204 | ||
ea8cff5a | 205 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1 |
19e454dc | 206 | echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1 |
ea8cff5a | 207 | |
83987afc | 208 | > $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc |
3eeb7f55 | 209 | |
3f8b67c9 | 210 | %find_lang %{name} |
9450acc5 | 211 | |
d44a0243 ER |
212 | %py_postclean |
213 | ||
04b21785 JB |
214 | %clean |
215 | rm -rf $RPM_BUILD_ROOT | |
216 | ||
a8b0d105 | 217 | %post daemon |
023856a4 | 218 | /sbin/chkconfig --add fetchmail |
9aca716b | 219 | %service fetchmail restart "fetchmail daemon" |
21b6ca3c | 220 | |
a8b0d105 | 221 | %preun daemon |
023856a4 | 222 | if [ "$1" = "0" ]; then |
9aca716b | 223 | %service fetchmail stop |
023856a4 | 224 | /sbin/chkconfig --del fetchmail |
225 | fi | |
21b6ca3c | 226 | |
3f8b67c9 | 227 | %files -f %{name}.lang |
6625d954 | 228 | %defattr(644,root,root,755) |
a55aad73 | 229 | %doc FEATURES README NEWS NOTES README.NTLM *.html FAQ |
39df3a54 | 230 | %attr(755,root,root) %{_bindir}/fetchmail |
d80c7939 | 231 | %{_mandir}/man1/fetchmail.1* |
6625d954 | 232 | |
3eeb7f55 | 233 | %files -n fetchmailconf |
6625d954 | 234 | %defattr(644,root,root,755) |
39df3a54 | 235 | %attr(755,root,root) %{_bindir}/fetchmailconf |
14ceb279 | 236 | %{_desktopdir}/fetchmailconf.desktop |
9450acc5 | 237 | %{_mandir}/man1/fetchmailconf.1* |
16a12675 | 238 | %{py_sitescriptdir}/*.py[co] |
30ae3b37 | 239 | |
a8b0d105 | 240 | %files daemon |
43f5a066 | 241 | %defattr(644,root,root,755) |
11148396 | 242 | %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/fetchmailrc |
a61d1677 | 243 | %attr(754,root,root) /etc/rc.d/init.d/fetchmail |
11148396 JB |
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 |