]> git.pld-linux.org Git - packages/fetchmail.git/blob - fetchmail.spec
cc9e04efda9f7de80f7c759deec1349d7a125e65
[packages/fetchmail.git] / fetchmail.spec
1 # TODO: kerberos5/gssapi support?
2 #
3 # Conditional build:
4 %bcond_without  ssl     # build without SSL support
5 %bcond_without  ipv6    # build without IPv6 support
6 #
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 电子邮件收取守护进程
18 Name:           fetchmail
19 Version:        6.3.6
20 Release:        2
21 License:        GPL
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
28 Source3:        %{name}.init
29 Source4:        %{name}.logrotate
30 Patch0:         %{name}-pl.po-update.patch
31 URL:            http://fetchmail.berlios.de/
32 BuildRequires:  automake
33 BuildRequires:  bison
34 BuildRequires:  flex
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)
40
41 %description
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).
46
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.
56
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.
67
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.
76
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).
82
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.
88
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).
94
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 прочитать ее своим любимым почтовым клиентом.
103
104 %description -l tr.UTF-8
105 fetchmail yazılımı, POP veya IMAP desteği veren bir sunucuda yer alan
106 mektuplarınızı alır.
107
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, щоб ви могли прочитати її своїм улюбленим
115 поштовим клієнтом.
116
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}
127 Requires:       python
128 Requires:       python-tkinter
129
130 %description -n fetchmailconf
131 A GUI configurator for generating fetchmail configuration file written
132 in python.
133
134 %description -n fetchmailconf -l de.UTF-8
135 Ein interaktiver GUI-Konfigurator für fetchmail in python.
136
137 %description -n fetchmailconf -l es.UTF-8
138 Configurador gráfico para fetchmail escrito en python.
139
140 %description -n fetchmailconf -l pl.UTF-8
141 Konfigurator GUI do fetchmaila napisany w pythonie.
142
143 %description -n fetchmailconf -l pt.UTF-8
144 Um configurador gráfico para a criação de arquivos de configuração
145 para o fetchmail.
146
147 %description -n fetchmailconf -l ru.UTF-8
148 Fetchmailconf - это программа на Tcl/Tk для конфигурации вашего файла
149 предпочтений ~/.fetchmailrc.
150
151 %description -n fetchmailconf -l uk.UTF-8
152 Fetchmailconf - це програма на Tcl/Tk для конфігурації вашого файла
153 вподобань ~/.fetchmailrc.
154
155 %package daemon
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}
161 Requires:       rc-scripts
162
163 %description daemon
164 SysV init script for demonize fetchmail for sucking emails.
165
166 %description daemon -l pl.UTF-8
167 Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako
168 demona.
169
170 %prep
171 %setup -q
172 %patch0 -p1
173
174 # to rebuild po/pl.gmo
175 rm -f po/stamp-po
176
177 %build
178 cp -f /usr/share/automake/config.* .
179 %configure \
180         --enable-nls \
181         --without-included-gettext \
182         %{?with_ipv6:--enable-inet6} \
183         --enable-RPA \
184         --enable-NTLM \
185         --enable-SDPS \
186         %{?with_ssl:--with-ssl=%{_prefix}} \
187         %{!?with_ssl:--without-ssl} \
188         --without-kerberos
189 %{__make}
190
191 %install
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
196
197 %{__make} install \
198         DESTDIR=$RPM_BUILD_ROOT
199
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}
204
205 sed 's,\.py,\.pyc,' fetchmailconf > $RPM_BUILD_ROOT%{_bindir}/fetchmailconf
206
207 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
208 echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
209
210 > $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc
211
212 %find_lang %{name}
213
214 %py_postclean
215
216 %clean
217 rm -rf $RPM_BUILD_ROOT
218
219 %post daemon
220 /sbin/chkconfig --add fetchmail
221 %service fetchmail restart "fetchmail daemon"
222
223 %preun daemon
224 if [ "$1" = "0" ]; then
225         %service fetchmail stop
226         /sbin/chkconfig --del fetchmail
227 fi
228
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*
234
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]
241
242 %files daemon
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
This page took 0.078478 seconds and 2 git commands to generate.