]>
Commit | Line | Data |
---|---|---|
250b7340 | 1 | # TODO: kerberos5/gssapi support? |
da9c144b | 2 | # |
3 | # Conditional build: | |
4 | %bcond_without ssl # build without SSL support | |
35adbe06 | 5 | # |
9450acc5 | 6 | Summary: Remote mail fetch daemon for POP2, POP3, APOP, IMAP |
cb48536f ER |
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 电子邮件收取守护进程 | |
9450acc5 | 17 | Name: fetchmail |
044fe0db | 18 | Version: 6.4.20 |
2ba60a79 | 19 | Release: 1 |
5b498eb7 | 20 | License: GPL v2 with OpenSSL exception |
9450acc5 | 21 | Group: Applications/Mail |
46a2a680 | 22 | Source0: http://downloads.sourceforge.net/fetchmail/%{name}-%{version}.tar.xz |
044fe0db | 23 | # Source0-md5: 01f1e16772933fc4833e7cf4f42284ba |
8453a08e | 24 | Source1: %{name}conf.desktop |
25 | Source2: %{name}.sysconfig | |
26 | Source3: %{name}.init | |
233866a9 | 27 | Source4: %{name}.logrotate |
6330b1d6 | 28 | URL: http://www.fetchmail.info/ |
7bc7e607 | 29 | BuildRequires: automake |
7bc7e607 | 30 | BuildRequires: flex |
dd163608 | 31 | BuildRequires: gettext-tools >= 0.14.6 |
fa0d56f5 | 32 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7l} |
5b498eb7 JB |
33 | BuildRequires: python >= 2.0 |
34 | BuildRequires: python-modules >= 2.0 | |
705e7861 | 35 | BuildRequires: rpm-pythonprov |
9aca716b | 36 | BuildRequires: rpmbuild(macros) >= 1.268 |
5b498eb7 JB |
37 | BuildRequires: tar >= 1:1.22 |
38 | BuildRequires: xz | |
1a417665 | 39 | Requires: setup >= 2.3 |
9d33bdb6 | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3eeb7f55 | 41 | |
42 | %description | |
06b78117 | 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). | |
3eeb7f55 | 47 | |
9a62c593 JR |
48 | %description -l da.UTF-8 |
49 | Fetchmail er et gratis, robust, alsidigt og vel-dokumenteret værktøj | |
06b78117 | 50 | til afhentning og videresending af elektronisk post via TCP/IP |
9a62c593 | 51 | baserede opkalds-forbindelser (såsom SLIP eller PPP forbindelser). Den |
06b78117 | 52 | henter post fra en ekstern post-server, og videresender den til din |
9a62c593 JR |
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 | |
06b78117 | 56 | kan bruges af almindelige brugere. |
508cd0ae | 57 | |
9a62c593 JR |
58 | %description -l de.UTF-8 |
59 | Fetchmail ist ein freies, vollständiges, robustes und | |
06b78117 | 60 | wohldokumentiertes Werkzeug zum Abholen und Weiterreichen von E-Mail, |
9a62c593 | 61 | gedacht zum Gebrauchüber temporäre TCP/IP-Verbindungen (wie z.B. SLIP- |
06b78117 | 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. | |
3eeb7f55 | 68 | |
9a62c593 | 69 | %description -l es.UTF-8 |
06b78117 | 70 | Fetchmail es una utilidad gratis, completa, robusta y bien documentada |
9a62c593 | 71 | para la recepción y reeenvío de correo pensada para ser usada en co- |
06b78117 | 72 | nexiones TCP/IP por demanda (como SLIP y PPP). Recibe el correo de |
9a62c593 | 73 | servidores remotos y lo reenvía al sistema de entrega local, siendo de |
06b78117 | 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. | |
508cd0ae | 77 | |
9a62c593 JR |
78 | %description -l fr.UTF-8 |
79 | Fetchmail est un programme utilisé pour récupérer le mail depuis un | |
06b78117 | 80 | serveur distant. Il peut utiliser POP (Post Office Protocol) ou IMAP |
9a62c593 | 81 | (Internet Mail Access Protocol) pour cela, et achemine le courrier à |
06b78117 | 82 | travers le serveur SMTP local (sendmail normal). |
3eeb7f55 | 83 | |
9a62c593 JR |
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. | |
3eeb7f55 | 89 | |
9a62c593 JR |
90 | %description -l pt.UTF-8 |
91 | fetchmail é um programa que é usado para recuperar mensagens de um | |
06b78117 | 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 | |
9a62c593 JR |
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 | поштовим клієнтом. | |
bd1ff90b | 117 | |
3eeb7f55 | 118 | %package -n fetchmailconf |
9450acc5 | 119 | Summary: A GUI configurator for generating fetchmail configuration files |
cb48536f ER |
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 | |
009b1c9e | 126 | Group: Applications/System |
11148396 | 127 | Requires: %{name} = %{version}-%{release} |
3c0a3c3c | 128 | Requires: python |
51d02ff8 | 129 | Requires: python-tkinter |
3eeb7f55 | 130 | |
131 | %description -n fetchmailconf | |
83987afc | 132 | A GUI configurator for generating fetchmail configuration file written |
06b78117 | 133 | in python. |
3eeb7f55 | 134 | |
9a62c593 JR |
135 | %description -n fetchmailconf -l de.UTF-8 |
136 | Ein interaktiver GUI-Konfigurator für fetchmail in python. | |
2669bc97 | 137 | |
9a62c593 JR |
138 | %description -n fetchmailconf -l es.UTF-8 |
139 | Configurador gráfico para fetchmail escrito en python. | |
2669bc97 | 140 | |
9a62c593 | 141 | %description -n fetchmailconf -l pl.UTF-8 |
83987afc | 142 | Konfigurator GUI do fetchmaila napisany w pythonie. |
3eeb7f55 | 143 | |
9a62c593 JR |
144 | %description -n fetchmailconf -l pt.UTF-8 |
145 | Um configurador gráfico para a criação de arquivos de configuração | |
f9a20aca | 146 | para o fetchmail. |
147 | ||
9a62c593 JR |
148 | %description -n fetchmailconf -l ru.UTF-8 |
149 | Fetchmailconf - это программа на Tcl/Tk для конфигурации вашего файла | |
150 | предпочтений ~/.fetchmailrc. | |
bd1ff90b | 151 | |
9a62c593 JR |
152 | %description -n fetchmailconf -l uk.UTF-8 |
153 | Fetchmailconf - це програма на Tcl/Tk для конфігурації вашого файла | |
154 | вподобань ~/.fetchmailrc. | |
bd1ff90b | 155 | |
a8b0d105 | 156 | %package daemon |
83987afc | 157 | Summary: SysV init script for demonize fetchmail for sucking emails |
cb48536f | 158 | Summary(pl.UTF-8): Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona |
009b1c9e | 159 | Group: Applications/System |
749c83f0 | 160 | Requires(post,preun): /sbin/chkconfig |
d44a0243 ER |
161 | Requires: %{name} = %{version}-%{release} |
162 | Requires: rc-scripts | |
a8b0d105 | 163 | |
164 | %description daemon | |
83987afc | 165 | SysV init script for demonize fetchmail for sucking emails. |
a8b0d105 | 166 | |
9a62c593 | 167 | %description daemon -l pl.UTF-8 |
d44a0243 ER |
168 | Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako |
169 | demona. | |
a8b0d105 | 170 | |
3eeb7f55 | 171 | %prep |
387e3244 | 172 | %setup -q |
c5c28a4a | 173 | |
3eeb7f55 | 174 | %build |
86cbd65d | 175 | cp -f /usr/share/automake/config.* . |
cd966eab | 176 | %configure \ |
6ff0b625 JB |
177 | ac_cv_header_md5_h=no \ |
178 | ac_cv_search_MD5Init=no \ | |
3eeb7f55 | 179 | --enable-nls \ |
5bdb5715 AF |
180 | --enable-RPA \ |
181 | --enable-NTLM \ | |
182 | --enable-SDPS \ | |
da9c144b | 183 | %{?with_ssl:--with-ssl=%{_prefix}} \ |
184 | %{!?with_ssl:--without-ssl} \ | |
c4d2ad30 | 185 | --without-kerberos |
4750c757 | 186 | %{__make} |
3eeb7f55 | 187 | |
188 | %install | |
189 | rm -rf $RPM_BUILD_ROOT | |
14ceb279 | 190 | install -d $RPM_BUILD_ROOT%{_desktopdir} \ |
382a4000 | 191 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ |
233866a9 | 192 | $RPM_BUILD_ROOT/etc/logrotate.d |
3eeb7f55 | 193 | |
860e7d9c PG |
194 | %{__make} install \ |
195 | DESTDIR=$RPM_BUILD_ROOT | |
3eeb7f55 | 196 | |
14ceb279 | 197 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
a61d1677 | 198 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/fetchmail |
199 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/fetchmail | |
701d4d32 | 200 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
3eeb7f55 | 201 | |
e796b687 MB |
202 | sed 's,\.py,\.pyc,' fetchmailconf > $RPM_BUILD_ROOT%{_bindir}/fetchmailconf |
203 | ||
ea8cff5a | 204 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1 |
19e454dc | 205 | echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1 |
ea8cff5a | 206 | |
83987afc | 207 | > $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc |
3eeb7f55 | 208 | |
3f8b67c9 | 209 | %find_lang %{name} |
9450acc5 | 210 | |
d44a0243 ER |
211 | %py_postclean |
212 | ||
04b21785 JB |
213 | %clean |
214 | rm -rf $RPM_BUILD_ROOT | |
215 | ||
a8b0d105 | 216 | %post daemon |
023856a4 | 217 | /sbin/chkconfig --add fetchmail |
9aca716b | 218 | %service fetchmail restart "fetchmail daemon" |
21b6ca3c | 219 | |
a8b0d105 | 220 | %preun daemon |
023856a4 | 221 | if [ "$1" = "0" ]; then |
9aca716b | 222 | %service fetchmail stop |
023856a4 | 223 | /sbin/chkconfig --del fetchmail |
224 | fi | |
21b6ca3c | 225 | |
3f8b67c9 | 226 | %files -f %{name}.lang |
6625d954 | 227 | %defattr(644,root,root,755) |
5b498eb7 JB |
228 | # COPYING contains detailed description of licenses |
229 | %doc COPYING 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 |